OGS
LiquidViscosity.cpp
Go to the documentation of this file.
1
11#include "LiquidViscosity.h"
12
14{
15template <int DisplacementDim>
17 SpaceTimeData const& x_t, MediaData const& media_data,
18 LiquidDensityData const& rho_L_data,
20 LiquidViscosityData& out) const
21{
22 namespace MPL = MaterialPropertyLib;
23 MPL::VariableArray variables;
24 variables.temperature = T_data.T;
25 variables.density = rho_L_data.rho_LR;
26
27 *out = media_data.liquid.property(MPL::PropertyType::viscosity)
28 .template value<double>(variables, x_t.x, x_t.t, x_t.dt);
29}
30
31template struct LiquidViscosityModel<2>;
32template struct LiquidViscosityModel<3>;
33} // namespace ProcessLib::ThermoRichardsMechanics
Property const & property(PropertyType const &p) const
Definition Phase.cpp:53
ParameterLib::SpatialPosition x
Definition Base.h:74
void eval(SpaceTimeData const &x_t, MediaData const &media_data, LiquidDensityData const &rho_L_data, TemperatureData< DisplacementDim > const &T_data, LiquidViscosityData &out) const
MaterialPropertyLib::Phase const & liquid
Definition Base.h:62