OGS
Viscosity.cpp
Go to the documentation of this file.
1
10
#include "
Viscosity.h
"
11
12
namespace
ProcessLib::TH2M
13
{
14
namespace
ConstitutiveRelations
15
{
16
void
ViscosityModel::eval
(
SpaceTimeData
const
& x_t,
MediaData
const
& media_data,
17
TemperatureData
const
& T_data,
18
MassMoleFractionsData
const
& mass_mole_fractions_data,
19
ViscosityData
& viscosity_data)
const
20
{
21
MaterialPropertyLib::VariableArray
variables;
22
23
variables.
temperature
= T_data.
T
;
24
variables.
molar_fraction
= mass_mole_fractions_data.
xnCG
;
25
26
auto
const
& liquid_phase = media_data.
liquid
;
27
auto
const
& gas_phase = media_data.
gas
;
28
29
viscosity_data.
mu_GR
=
30
gas_phase[
MaterialPropertyLib::PropertyType::viscosity
]
31
.template value<double>(variables, x_t.
x
, x_t.
t
, x_t.
dt
);
32
33
viscosity_data.
mu_LR
=
34
liquid_phase[
MaterialPropertyLib::PropertyType::viscosity
]
35
.template value<double>(variables, x_t.
x
, x_t.
t
, x_t.
dt
);
36
}
37
}
// namespace ConstitutiveRelations
38
}
// namespace ProcessLib::TH2M
Viscosity.h
MaterialPropertyLib::VariableArray
Definition
VariableType.h:97
MaterialPropertyLib::VariableArray::molar_fraction
double molar_fraction
Definition
VariableType.h:183
MaterialPropertyLib::VariableArray::temperature
double temperature
Definition
VariableType.h:188
MaterialPropertyLib::viscosity
@ viscosity
Definition
PropertyType.h:112
ProcessLib::TH2M
Definition
Advection.cpp:13
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::TH2M::ConstitutiveRelations::MassMoleFractionsData
Definition
MassMoleFractions.h:20
ProcessLib::TH2M::ConstitutiveRelations::MassMoleFractionsData::xnCG
double xnCG
Definition
MassMoleFractions.h:21
ProcessLib::TH2M::ConstitutiveRelations::MediaData
Definition
Base.h:39
ProcessLib::TH2M::ConstitutiveRelations::MediaData::liquid
MaterialPropertyLib::Phase const & liquid
Definition
Base.h:47
ProcessLib::TH2M::ConstitutiveRelations::MediaData::gas
MaterialPropertyLib::Phase const & gas
Definition
Base.h:48
ProcessLib::TH2M::ConstitutiveRelations::TemperatureData
Definition
Base.h:52
ProcessLib::TH2M::ConstitutiveRelations::TemperatureData::T
double T
Definition
Base.h:53
ProcessLib::TH2M::ConstitutiveRelations::ViscosityData
Definition
Viscosity.h:20
ProcessLib::TH2M::ConstitutiveRelations::ViscosityData::mu_GR
double mu_GR
Definition
Viscosity.h:21
ProcessLib::TH2M::ConstitutiveRelations::ViscosityData::mu_LR
double mu_LR
Definition
Viscosity.h:22
ProcessLib::TH2M::ConstitutiveRelations::ViscosityModel::eval
void eval(SpaceTimeData const &x_t, MediaData const &media_data, TemperatureData const &T_data, MassMoleFractionsData const &mass_mole_fractions_data, ViscosityData &viscosity_data) const
Definition
Viscosity.cpp:16
ProcessLib
TH2M
ConstitutiveRelations
Viscosity.cpp
Generated by
1.11.0