OGS
|
Base class of fluid properties.
Definition at line 40 of file FluidProperties.h.
#include <FluidProperties.h>
Public Types | |
using | ArrayType = std::array<double, PropertyVariableNumber> |
Public Member Functions | |
FluidProperties (std::unique_ptr< MaterialLib::Fluid::FluidProperty > &&density, std::unique_ptr< MaterialLib::Fluid::FluidProperty > &&viscosity, std::unique_ptr< MaterialLib::Fluid::FluidProperty > &&heat_capacity, std::unique_ptr< MaterialLib::Fluid::FluidProperty > &&thermal_conductivity) | |
virtual | ~FluidProperties ()=default |
virtual double | getValue (const FluidPropertyType property_type, const ArrayType &variable_values) const =0 |
virtual double | getdValue (const FluidPropertyType property_type, const ArrayType &variable_values, const PropertyVariableType variable_type) const =0 |
Protected Attributes | |
const std::array< std::unique_ptr< FluidProperty >, FluidPropertyTypeNumber > | _property_models |
using MaterialLib::Fluid::FluidProperties::ArrayType = std::array<double, PropertyVariableNumber> |
Definition at line 43 of file FluidProperties.h.
|
inline |
Definition at line 45 of file FluidProperties.h.
|
virtualdefault |
|
pure virtual |
Get the partial differential of a property.
property_type | Property type. |
variable_values | An array of the primary variables. The order of its elements is temperature, pressure, concentration, which is defined in enum class PropertyVariableType. |
variable_type | Variable type |
Implemented in MaterialLib::Fluid::FluidPropertiesWithDensityDependentModels, and MaterialLib::Fluid::PrimaryVariableDependentFluidProperties.
|
pure virtual |
Get the value of a Property.
property_type | Property type. |
variable_values | An array of the primary variables. The order of its elements is temperature, pressure, concentration, which is defined in enum class PropertyVariableType. |
Implemented in MaterialLib::Fluid::FluidPropertiesWithDensityDependentModels, and MaterialLib::Fluid::PrimaryVariableDependentFluidProperties.
|
protected |
Fluid property models. 0: density; 1: viscosity; 2: specific heat capacity; 3: thermal conductivity
The index is specified via enum class PropertyType.
Definition at line 94 of file FluidProperties.h.
Referenced by MaterialLib::Fluid::PrimaryVariableDependentFluidProperties::getdValue(), and MaterialLib::Fluid::PrimaryVariableDependentFluidProperties::getValue().