28#ifndef OPM_FLASH_NEWTON_METHOD_HH
29#define OPM_FLASH_NEWTON_METHOD_HH
31#include <opm/common/Exceptions.hpp>
39namespace Opm::Properties {
41template <
class TypeTag,
class MyTypeTag>
42struct DiscNewtonMethod;
53template <
class TypeTag>
64 enum { pressure0Idx = Indices::pressure0Idx };
65 enum { z0Idx = Indices::z0Idx };
68 static constexpr bool waterEnabled = Indices::waterEnabled;
87 const EqVector& update,
130 constexpr Scalar
tol = 1
e-8;
135 if constexpr (waterEnabled) {
137 constexpr Scalar
dSwMax = 0.2;
138 if (update[Indices::water0Idx] >
dSwMax) {
A Newton solver specific to the PTFlash model.
Definition flashnewtonmethod.hh:55
FlashNewtonMethod(Simulator &simulator)
Definition flashnewtonmethod.hh:74
void updatePrimaryVariables_(unsigned, PrimaryVariables &nextValue, const PrimaryVariables ¤tValue, const EqVector &update, const EqVector &)
Update a single primary variables object.
Definition flashnewtonmethod.hh:84
The multi-dimensional Newton method.
Definition newtonmethod.hh:100
Defines the common properties required by the porous medium multi-phase models.
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240
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:233
The multi-dimensional Newton method.