• Flux conditions specify how the surroundings affect and interact with the model at the boundary, often expressed as an applied force, flux, or current. This type of boundary condition is also called a Neumann boundary condition.
• Constraints specify the result of the interaction between the model and its surroundings, expressed as expected values of the dependent variables. This type of boundary condition is also called a Dirichlet boundary condition.
• A Boundary Load in a solid model, which prescribes the stress acting on the boundary.
• Heat Flux in a heat transfer model, which prescribes the heat per unit area flowing into (or out of) the model across the boundary.
• A Normal Current Density in an AC/DC model, which prescribes the electrical current per unit area entering (or exiting) the model at the boundary.There are also more advanced types of flux conditions, where the flux or force is calculated based on local values of dependent variables and other parameters. For example, a Convective Heat Flux boundary condition on a heated body computes the heat flux based on a heat transfer coefficient and the temperature difference to the surroundings.
In COMSOL Multiphysics, by convention, the force acting on the model or the flux into the model is specified. That is, specify how the surroundings affect the model and not how the model affects its surroundings.
• A Prescribed Displacement of the boundary of a solid object.
• That the velocity is zero on a Wall boundary in a CFD model.
• The Temperature at the boundary of a heated solid.
• The Electric Potential on an electrode in an AC/DC model.Examples specifying a relation between dependent variables include Roller conditions on solids and Wall conditions for slip flow.Therefore it is often necessary to apply at least one constraint condition in a model, to provide a global reference value for the dependent variables. For example, it is common to designate one of the electrodes in an AC/DC model as Ground, which constrains the electric potential there to zero and gives a reference with which to compare other parts of the model.
In most physics features, the default boundary condition is of flux type and does not fix a reference level for the dependent variable. Therefore when solving certain study types, notably Stationary studies, you must manually add at least one boundary condition of constraint type (or a point constraint) for the model to be well-defined.If you want to model a constraint that is active only for a certain period of time in a time-dependent simulation, for example, you can use the fact that a 0 constraint (or a Dirichlet boundary condition u = u) means that there is no constraint; instead, the boundary condition becomes a “no flux” or “insulation” condition. To implement such a time-limited constraint you can use the if operator: for example, for a Dirichlet boundary condition, if(t<2,1,u) means that for t < 2, u is equal to 1 but at t = 2 the boundary condition is turned off by setting u = u. For a Constraint node, the corresponding if statement is if(t<2,1-u,0).