OGS
ConstantFluidProperty.h
Go to the documentation of this file.
1
13#pragma once
14
15#include "FluidProperty.h"
16
17namespace MaterialLib
18{
19namespace Fluid
20{
23{
24public:
25 explicit ConstantFluidProperty(const double value) : _value(value) {}
26
28 std::string getName() const override { return "Constant"; }
32 double getValue(const ArrayType& var_vals) const override
33 {
34 (void)var_vals;
35 return _value;
36 }
37
42 double getdValue(const ArrayType& var_vals,
43 const PropertyVariableType var) const override
44 {
45 (void)var_vals;
46 (void)var;
47 return 0.;
48 }
49
50private:
51 const double _value;
52};
53
54} // namespace Fluid
55} // namespace MaterialLib
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
Base class of fluid properties.
std::array< double, PropertyVariableNumber > ArrayType
PropertyVariableType
Variable that determine the property.