21 #ifndef GEOS_PHYSICSSOLVERS_FLUIDFLOW_WELLS_WELLLIQUIDRATECONSTRAINT_HPP
22 #define GEOS_PHYSICSSOLVERS_FLUIDFLOW_WELLS_WELLLIQUIDRATECONSTRAINT_HPP
27 #include "WellConstraintsBase.hpp"
95 return "LiquidRateConstraint";
143 template<
typename T >
144 void validateLiquidType( T
const & fluidModel )
152 ": Invalid Liquid type for simulation fluid model " <<
m_phaseNames[ip],
#define GEOS_THROW_IF(EXP, msg, TYPE)
Conditionally throw an exception.
This class describes a Liquid rate constraint used to control of type WellConstraintType.
array1d< integer > m_phaseIndices
Indices of the phases defining the fluid.
virtual bool checkViolation(WellConstraintBase const ¤tConstraint, real64 const ¤tTime) const override
Check if this constraint is violated.
void setPhaseNames(const string_array &phaseNames)
Set phases associated with liquid constraint.
string_array m_phaseNames
Name of the targeted phase.
LiquidRateConstraint(LiquidRateConstraint const &)=delete
Deleted copy constructor.
LiquidRateConstraint(LiquidRateConstraint &&)=delete
Deleted move constructor.
const string_array & getPhaseNames() const
Get the target phase name.
virtual void postInputInitialization() override
LiquidRateConstraint(string const &name, dataRepository::Group *const parent)
Constructor for WellControls Objects.
LiquidRateConstraint & operator=(LiquidRateConstraint &&)=delete
Deleted move operator.
const array1d< integer > & getPhaseIndices() const
Get the phase indices.
LiquidRateConstraint & operator=(LiquidRateConstraint const &)=delete
Deleted assignment operator.
~LiquidRateConstraint() override
Default destructor.
LiquidRateConstraint()=delete
Deleted default constructor.
static string catalogName()
name of the node manager in the object catalog
stdVector< string > string_array
A 1-dimensional array of geos::string types.
double real64
64-bit floating point type.
int integer
Signed integer type.
Array< T, 1 > array1d
Alias for 1D array.
Struct to serve as a container for variable strings and keys.
static constexpr char const * phaseNamesString()
String key for the phases names.
static constexpr char const * liquidRateString()
String key for the liquid rate.