Class to specify constraints for a finite volume spatial discretization.
More...
#include <fvbaseconstraints.hh>
|
| | FvBaseConstraints () |
| |
| void | reset () |
| | Reset the constraints types. More...
|
| |
| bool | isConstraint () const |
| | Returns true if constraints for any equation have been specified. More...
|
| |
| bool | isConstraint (int eqIdx) const |
| | Returns true if constraints for given equation have been specified. More...
|
| |
| void | setAllConstraint () |
| | Set all to be constraint. More...
|
| |
| void | setConstraint (int eqIdx, int pvIdx, Scalar value) |
| | Set a constraint for single equation. More...
|
| |
| void | setConstraint (int eqIdx, int pvIdx) |
| | Set a constraint for single equation. More...
|
| |
| unsigned | pvToEqIndex (unsigned pvIdx) const |
| | Returns the index of the equation which should be used to constrain the pvIdx's primary variable. More...
|
| |
| unsigned | eqToPvIndex (unsigned eqIdx) const |
| | Returns the index of the primary variable for which a given equation should be used as a constraint. More...
|
| |
template<class TypeTag>
class Ewoms::FvBaseConstraints< TypeTag >
Class to specify constraints for a finite volume spatial discretization.
Returns the index of the primary variable for which a given equation should be used as a constraint.
- Parameters
-
| eqIdx | The index of the equation which is used to set the constraint. |
Returns true if constraints for any equation have been specified.
Returns true if constraints for given equation have been specified.
- Parameters
-
| eqIdx | The index of the equation |
Returns the index of the equation which should be used to constrain the pvIdx's primary variable.
- Parameters
-
| pvIdx | The index of the primary variable which is be set by the constraint. |
Set all to be constraint.
(with equation index == primary variable index)
Set a constraint for single equation.
- Parameters
-
| eqIdx | The index of the equation which should used to set the constraint |
| pvIdx | The index of the primary variable which should be set. |
| value | The value of the constraint DOF |
Set a constraint for single equation.
- Parameters
-
| eqIdx | The index of the equation which should used to set the constraint |
| pvIdx | The index of the primary variable which should be set. |
The documentation for this class was generated from the following file: