27#ifndef EWOMS_BASE_AUXILIARY_MODULE_HH
28#define EWOMS_BASE_AUXILIARY_MODULE_HH
38namespace Opm::Properties::Tag {
54template <
class TypeTag>
63 using NeighborSet = std::set<unsigned>;
80 { dofOffset_ = value; }
87 {
return dofOffset_; }
113 virtual void linearize(SparseMatrixAdapter& matrix, GlobalEqVector& residual) = 0;
Base class for specifying auxiliary equations.
Definition baseauxiliarymodule.hh:56
int dofOffset()
Return the offset in the global system of equations for the first degree of freedom of this auxiliary...
Definition baseauxiliarymodule.hh:86
virtual void linearize(SparseMatrixAdapter &matrix, GlobalEqVector &residual)=0
Linearize the auxiliary equation.
virtual void applyInitial()=0
Set the initial condition of the auxiliary module in the solution vector.
virtual void addNeighbors(std::vector< NeighborSet > &neighbors) const =0
Specify the additional neighboring correlations caused by the auxiliary module.
virtual unsigned numDofs() const =0
Returns the number of additional degrees of freedom required for the auxiliary module.
virtual void postSolve(GlobalEqVector &)
This method is called after the linear solver has been called but before the solution is updated for ...
Definition baseauxiliarymodule.hh:121
void setDofOffset(int value)
Set the offset in the global system of equations for the first degree of freedom of this auxiliary mo...
Definition baseauxiliarymodule.hh:79
int localToGlobalDof(unsigned localDofIdx) const
Given a degree of freedom relative to the current auxiliary equation, return the corresponding index ...
Definition baseauxiliarymodule.hh:93
Declare the properties used by the infrastructure code of the finite volume discretizations.
Declares the properties required by the black oil model.
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition propertysystem.hh:235
The Opm property system, traits with inheritance.
Definition baseauxiliarymodule.hh:40