OGS
LiquidViscosity.cpp
Go to the documentation of this file.
1
11
#include "
LiquidViscosity.h
"
12
13
namespace
ProcessLib::ThermoRichardsMechanics
14
{
15
template
<
int
DisplacementDim>
16
void
LiquidViscosityModel<DisplacementDim>::eval
(
17
SpaceTimeData
const
& x_t,
MediaData
const
& media_data,
18
LiquidDensityData
const
& rho_L_data,
19
TemperatureData<DisplacementDim>
const
& T_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
31
template
struct
LiquidViscosityModel<2>
;
32
template
struct
LiquidViscosityModel<3>
;
33
}
// namespace ProcessLib::ThermoRichardsMechanics
LiquidViscosity.h
MaterialPropertyLib::Phase::property
Property const & property(PropertyType const &p) const
Definition
Phase.cpp:53
MaterialPropertyLib::VariableArray
Definition
VariableType.h:97
MaterialPropertyLib::VariableArray::temperature
double temperature
Definition
VariableType.h:188
MaterialPropertyLib::VariableArray::density
double density
Definition
VariableType.h:172
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
ProcessLib::ThermoRichardsMechanics
Definition
Base.h:20
BaseLib::StrongType
Definition
StrongType.h:25
ProcessLib::ConstitutiveRelations::SpaceTimeData
Definition
Base.h:73
ProcessLib::ConstitutiveRelations::SpaceTimeData::x
ParameterLib::SpatialPosition x
Definition
Base.h:74
ProcessLib::ConstitutiveRelations::SpaceTimeData::t
double t
Definition
Base.h:75
ProcessLib::ConstitutiveRelations::SpaceTimeData::dt
double dt
Definition
Base.h:76
ProcessLib::ThermoRichardsMechanics::LiquidDensityData
Definition
LiquidDensity.h:18
ProcessLib::ThermoRichardsMechanics::LiquidDensityData::rho_LR
double rho_LR
Definition
LiquidDensity.h:19
ProcessLib::ThermoRichardsMechanics::LiquidViscosityModel
Definition
LiquidViscosity.h:29
ProcessLib::ThermoRichardsMechanics::LiquidViscosityModel::eval
void eval(SpaceTimeData const &x_t, MediaData const &media_data, LiquidDensityData const &rho_L_data, TemperatureData< DisplacementDim > const &T_data, LiquidViscosityData &out) const
Definition
LiquidViscosity.cpp:16
ProcessLib::ThermoRichardsMechanics::MediaData
Definition
Base.h:53
ProcessLib::ThermoRichardsMechanics::MediaData::liquid
MaterialPropertyLib::Phase const & liquid
Definition
Base.h:62
ProcessLib::ThermoRichardsMechanics::TemperatureData
Definition
Base.h:68
ProcessLib::ThermoRichardsMechanics::TemperatureData::T
double T
Definition
Base.h:69
ProcessLib
ThermoRichardsMechanics
ConstitutiveCommon
LiquidViscosity.cpp
Generated by
1.10.0