The primary variable switch controlling the phase presence state variable.
#include <dumux/porousmediumflow/2pnc/primaryvariableswitch.hh>
|
bool | wasSwitched (std::size_t dofIdxGlobal) const |
| If the primary variables were recently switched. More...
|
|
void | reset (const std::size_t numDofs) |
| Reset all flags. More...
|
|
bool | update (SolutionVector &curSol, GridVariables &gridVariables, const Problem &problem, const typename GridVariables::GridGeometry &gridGeometry) |
| Updates the variable switch / phase presence. More...
|
|
void | updateSwitchedVolVars (const Problem &problem, const typename GridVariables::GridGeometry::GridView::template Codim< 0 >::Entity &element, const typename GridVariables::GridGeometry &gridGeometry, GridVariables &gridVariables, const SolutionVector &sol) |
| Updates the volume variables whose primary variables were switched. More...
|
|
void | updateSwitchedFluxVarsCache (const Problem &problem, const typename GridVariables::GridGeometry::GridView::template Codim< 0 >::Entity &element, const typename GridVariables::GridGeometry &gridGeometry, GridVariables &gridVariables, const SolutionVector &sol) |
| Updates the fluxVars cache for dof whose primary variables were switched. More...
|
|
void | updateDirichletConstraints (const Problem &problem, const typename GridVariables::GridGeometry &gridGeometry, GridVariables &gridVariables, SolutionVector &sol) |
| Updates the the primary variables state at the boundary. More...
|
|
int | verbosity () const |
| The verbosity level. More...
|
|
|
template<class VolumeVariables , class IndexType , class GlobalPosition > |
bool | update_ (typename VolumeVariables::PrimaryVariables &priVars, const VolumeVariables &volVars, IndexType dofIdxGlobal, const GlobalPosition &globalPos) |
|
TwoPNCPrimaryVariableSwitch & | asImp_ () |
| Return actual implementation (static polymorphism) More...
|
|
const TwoPNCPrimaryVariableSwitch & | asImp_ () const |
| Return actual implementation (static polymorphism) More...
|
|
bool | update_ (typename VolumeVariables::PrimaryVariables &priVars, const VolumeVariables &volVars, std::size_t dofIdxGlobal, const GlobalPosition &globalPos) |
|
bool | skipDof_ (const typename Geometry::GridGeometry::GridView::template Codim< 0 >::Entity &element, const Geometry &fvGeometry, const typename Geometry::SubControlVolume &scv, const Problem &problem) |
|
bool | isConstrainedDof_ (const typename Geometry::GridGeometry::GridView::template Codim< 0 >::Entity &element, const Geometry &fvGeometry, const typename Geometry::SubControlVolume &scv, const Problem &problem) |
|
bool | handleDirichletBoundaryCondition_ (const Problem &problem, const Element &element, const SubControlVolume &scv, SolutionVector &sol) |
|
bool | handleInternalDirichletConstraint_ (const Problem &problem, const Element &element, const SubControlVolume &scv, SolutionVector &sol) |
|
◆ asImp_() [1/2]
◆ asImp_() [2/2]
◆ handleDirichletBoundaryCondition_()
◆ handleInternalDirichletConstraint_()
◆ isConstrainedDof_()
bool Dumux::PrimaryVariableSwitch< TwoPNCPrimaryVariableSwitch >::isConstrainedDof_ |
( |
const typename Geometry::GridGeometry::GridView::template Codim< 0 >::Entity & |
element, |
|
|
const Geometry & |
fvGeometry, |
|
|
const typename Geometry::SubControlVolume & |
scv, |
|
|
const Problem & |
problem |
|
) |
| |
|
inlineprotectedinherited |
◆ reset()
◆ skipDof_()
◆ update()
- Parameters
-
curSol | The current solution to be updated / modified |
gridVariables | The secondary variables on the grid |
problem | The problem |
gridGeometry | The finite-volume grid geometry |
◆ update_() [1/2]
template<class VolumeVariables , class IndexType , class GlobalPosition >
bool Dumux::TwoPNCPrimaryVariableSwitch::update_ |
( |
typename VolumeVariables::PrimaryVariables & |
priVars, |
|
|
const VolumeVariables & |
volVars, |
|
|
IndexType |
dofIdxGlobal, |
|
|
const GlobalPosition & |
globalPos |
|
) |
| |
|
inlineprotected |
◆ update_() [2/2]
◆ updateDirichletConstraints()
Required when a Dirichlet constraint (at a boundary or internal) differs from the initial condition.
◆ updateSwitchedFluxVarsCache()
void Dumux::PrimaryVariableSwitch< TwoPNCPrimaryVariableSwitch >::updateSwitchedFluxVarsCache |
( |
const Problem & |
problem, |
|
|
const typename GridVariables::GridGeometry::GridView::template Codim< 0 >::Entity & |
element, |
|
|
const typename GridVariables::GridGeometry & |
gridGeometry, |
|
|
GridVariables & |
gridVariables, |
|
|
const SolutionVector & |
sol |
|
) |
| |
|
inlineinherited |
Required when flux variables are cached globally (not for box method).
◆ updateSwitchedVolVars()
void Dumux::PrimaryVariableSwitch< TwoPNCPrimaryVariableSwitch >::updateSwitchedVolVars |
( |
const Problem & |
problem, |
|
|
const typename GridVariables::GridGeometry::GridView::template Codim< 0 >::Entity & |
element, |
|
|
const typename GridVariables::GridGeometry & |
gridGeometry, |
|
|
GridVariables & |
gridVariables, |
|
|
const SolutionVector & |
sol |
|
) |
| |
|
inlineinherited |
Required when volume variables are cached globally.
◆ verbosity()
◆ wasSwitched()
◆ visited_
◆ wasSwitched_
The documentation for this class was generated from the following file: