OGS
Viscosity.cpp
Go to the documentation of this file.
1
10#include "Viscosity.h"
11
12namespace ProcessLib::TH2M
13{
14namespace ConstitutiveRelations
15{
16void 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{
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 =
31 .template value<double>(variables, x_t.x, x_t.t, x_t.dt);
32
33 viscosity_data.mu_LR =
35 .template value<double>(variables, x_t.x, x_t.t, x_t.dt);
36}
37} // namespace ConstitutiveRelations
38} // namespace ProcessLib::TH2M
ParameterLib::SpatialPosition x
Definition Base.h:74
MaterialPropertyLib::Phase const & liquid
Definition Base.h:47
MaterialPropertyLib::Phase const & gas
Definition Base.h:48
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