Opm::PvsModel< TypeTag > Class Template Reference A generic compositional multi-phase model using primary-variable switching. More...
Inheritance diagram for Opm::PvsModel< TypeTag >:
![]()
Detailed Descriptiontemplate<class TypeTag> class Opm::PvsModel< TypeTag > A generic compositional multi-phase model using primary-variable switching. This model assumes a flow of By default, the standard multi-phase Darcy approach is used to determine the velocity, i.e.
although the actual approach which is used can be specified via the template<class TypeTag>
struct FluxModule<TypeTag, TTag::MyProblemTypeTag> { using type = Opm::ForchheimerFluxModule<TypeTag>; };
Specifies a flux module which uses the Forchheimer relation. Definition: forchheimerfluxmodule.hh:62 The core of the model is the conservation mass of each component by means of the equation
To close the system mathematically,
To make this approach applicable, a pseudo primary variable phase presence has to be introduced. Its purpose is to specify for each phase whether it is present or not. It is a pseudo primary variable because it is not directly considered when linearizing the system in the Newton method, but after each Newton iteration, it gets updated like the "real" primary variables. The following rules are used for this update procedure:
The model always requires
Constructor & Destructor Documentation◆ PvsModel()
template<class TypeTag >
Member Function Documentation◆ advanceTimeLevel()
template<class TypeTag >
Called by the problem if a time integration was successful, post processing of the solution is done and the result has been written to disk. This should prepare the model for the next time integration. References Opm::PvsModel< TypeTag >::numSwitched_. ◆ deserializeEntity()
template<class TypeTag >
template<class DofEntity >
Reads the current solution variables for a degree of freedom from a restart file.
◆ eqName()
template<class TypeTag >
Given an equation index, return a human readable name.
◆ eqWeight()
template<class TypeTag >
Returns the relative weight of an equation.
◆ globalPhaseStorage()
template<class TypeTag >
Compute the total storage inside one phase of all conservation quantities.
References Opm::ThreadedEntityIterator< GridView, codim >::beginParallel(), Opm::ThreadedEntityIterator< GridView, codim >::increment(), Opm::ThreadedEntityIterator< GridView, codim >::isFinished(), and Opm::ThreadManager< TypeTag >::threadId(). ◆ name()
template<class TypeTag >
◆ phaseIsConsidered()
template<class TypeTag >
Returns true iff a fluid phase is used by the model.
◆ primaryVarName()
template<class TypeTag >
Given an primary variable index, return a human readable name.
◆ primaryVarWeight()
template<class TypeTag >
Returns the relative weight of a primary variable for calculating relative errors.
References Opm::PvsModel< TypeTag >::referencePressure_. ◆ printSwitchedPhases_()
template<class TypeTag >
template<class FluidState >
Referenced by Opm::PvsModel< TypeTag >::switchPrimaryVars_(). ◆ registerOutputModules_()
template<class TypeTag >
◆ registerParameters()
template<class TypeTag >
Register all run-time parameters for the PVS compositional model. References Opm::MultiPhaseBaseModel< TypeTag >::registerParameters(), Opm::VtkCompositionModule< TypeTag >::registerParameters(), Opm::VtkDiffusionModule< TypeTag >::registerParameters(), Opm::VtkEnergyModule< TypeTag >::registerParameters(), and Opm::VtkPhasePresenceModule< TypeTag >::registerParameters(). ◆ serializeEntity()
template<class TypeTag >
template<class DofEntity >
Write the current solution for a degree of freedom to a restart file.
◆ switched()
template<class TypeTag >
Return true if the primary variables were switched for at least one vertex after the last timestep. References Opm::PvsModel< TypeTag >::numSwitched_. ◆ switchPrimaryVars_()
template<class TypeTag >
◆ updateBegin()
template<class TypeTag >
Called by the update() method before it tries to apply the newton method. This is primary a hook which the actual model can overload. References Opm::PvsModel< TypeTag >::referencePressure_. ◆ updateFailed()
template<class TypeTag >
Called by the update() method if it was unsuccessful. This is primary a hook which the actual model can overload. References Opm::PvsModel< TypeTag >::numSwitched_. Member Data Documentation◆ numSwitched_
template<class TypeTag >
◆ referencePressure_
template<class TypeTag >
Referenced by Opm::PvsModel< TypeTag >::primaryVarWeight(), and Opm::PvsModel< TypeTag >::updateBegin(). ◆ verbosity_
template<class TypeTag >
Referenced by Opm::PvsModel< TypeTag >::PvsModel(), and Opm::PvsModel< TypeTag >::switchPrimaryVars_(). The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||