This class updates the invasion state for the two-phase PNM. More...
#include <dumux/porenetwork/2p/invasionstate.hh>
This class updates the invasion state for the two-phase PNM.
Public Member Functions | |
TwoPInvasionState (const Problem &problem) | |
template<class Element > | |
bool | invaded (const Element &element) const |
Return whether a given throat is invaded or not. More... | |
std::size_t | numThroatsInvaded () const |
Return the number of currently invaded throats. More... | |
template<class SolutionVector , class GridVolumeVariables , class GridFluxVariablesCache > | |
bool | update (const SolutionVector &sol, const GridVolumeVariables &gridVolVars, GridFluxVariablesCache &gridFluxVarsCache) |
Update the invasion state of all throats. This is done after each Newton step by a call from the Newton solver. More... | |
void | reset () |
Restore the old invasion state after a Newton iteration has failed. More... | |
bool | hasChanged () const |
Return whether an invasion or snap-off occurred anywhere. Can be used, e.g., for output file writing control. More... | |
bool | hasChangedInCurrentIteration () const |
Return whether an invasion or snap-off occurred anywhere during the current Newton iteration. More... | |
void | advance () |
This is called after the Newton method has successfully finished one time step. More... | |
template<class SolutionVector , class GridVolumeVariables , class GridFluxVariablesCache > | |
void | checkIfCapillaryPressureIsCloseToEntryPressure (const SolutionVector &sol, const GridVolumeVariables &gridVolVars, const GridFluxVariablesCache &gridFluxVarsCache) const |
|
inline |
|
inline |
This is called after the Newton method has successfully finished one time step.
|
inline |
|
inline |
Return whether an invasion or snap-off occurred anywhere. Can be used, e.g., for output file writing control.
|
inline |
Return whether an invasion or snap-off occurred anywhere during the current Newton iteration.
|
inline |
Return whether a given throat is invaded or not.
|
inline |
Return the number of currently invaded throats.
|
inline |
Restore the old invasion state after a Newton iteration has failed.
|
inline |
Update the invasion state of all throats. This is done after each Newton step by a call from the Newton solver.