OGS
MaterialLib::Fluid::ConstantFluidProperty Class Referencefinal

Detailed Description

Constant fluid properties.

Definition at line 22 of file ConstantFluidProperty.h.

#include <ConstantFluidProperty.h>

Inheritance diagram for MaterialLib::Fluid::ConstantFluidProperty:
[legend]
Collaboration diagram for MaterialLib::Fluid::ConstantFluidProperty:
[legend]

Public Member Functions

 ConstantFluidProperty (const double value)
 
std::string getName () const override
 Get model name.
 
double getValue (const ArrayType &var_vals) const override
 
double getdValue (const ArrayType &var_vals, const PropertyVariableType var) const override
 
- Public Member Functions inherited from MaterialLib::Fluid::FluidProperty
virtual ~FluidProperty ()=default
 

Private Attributes

const double _value
 

Additional Inherited Members

- Public Types inherited from MaterialLib::Fluid::FluidProperty
using ArrayType = std::array<double, PropertyVariableNumber>
 

Constructor & Destructor Documentation

◆ ConstantFluidProperty()

MaterialLib::Fluid::ConstantFluidProperty::ConstantFluidProperty ( const double value)
inlineexplicit

Definition at line 25 of file ConstantFluidProperty.h.

Member Function Documentation

◆ getdValue()

double MaterialLib::Fluid::ConstantFluidProperty::getdValue ( const ArrayType & var_vals,
const PropertyVariableType var ) const
inlineoverridevirtual

Get the partial differential of the property value

Parameters
var_valsVariable values in an array. The order of its elements is given in enum class PropertyVariableType.
varVariable type.

Implements MaterialLib::Fluid::FluidProperty.

Definition at line 42 of file ConstantFluidProperty.h.

44 {
45 (void)var_vals;
46 (void)var;
47 return 0.;
48 }

◆ getName()

std::string MaterialLib::Fluid::ConstantFluidProperty::getName ( ) const
inlineoverridevirtual

Get model name.

Implements MaterialLib::Fluid::FluidProperty.

Definition at line 28 of file ConstantFluidProperty.h.

28{ return "Constant"; }

◆ getValue()

double MaterialLib::Fluid::ConstantFluidProperty::getValue ( const ArrayType & var_vals) const
inlineoverridevirtual

Get property value.

Parameters
var_valsVariable values in an array. The order of its elements is given in enum class PropertyVariableType.

Implements MaterialLib::Fluid::FluidProperty.

Definition at line 32 of file ConstantFluidProperty.h.

33 {
34 (void)var_vals;
35 return _value;
36 }

References _value.

Member Data Documentation

◆ _value

const double MaterialLib::Fluid::ConstantFluidProperty::_value
private

Definition at line 51 of file ConstantFluidProperty.h.

Referenced by getValue().


The documentation for this class was generated from the following file: