OGS
FluidProperty.h
Go to the documentation of this file.
1
13#pragma once
14
15#include <array>
16#include <string>
17
19
20namespace MaterialLib
21{
22namespace Fluid
23{
26{
27public:
28 using ArrayType = std::array<double, PropertyVariableNumber>;
29
30 virtual ~FluidProperty() = default;
32 virtual std::string getName() const = 0;
33
37 virtual double getValue(const ArrayType& /* var_vals*/) const = 0;
38
44 virtual double getdValue(const ArrayType& /* var_vals*/,
45 const PropertyVariableType /* var */) const = 0;
46};
47
48} // namespace Fluid
49} // namespace MaterialLib
Base class of fluid properties.
virtual double getValue(const ArrayType &) const =0
std::array< double, PropertyVariableNumber > ArrayType
virtual double getdValue(const ArrayType &, const PropertyVariableType) const =0
virtual std::string getName() const =0
Get model name.
PropertyVariableType
Variable that determine the property.