OGS
ProcessLib::TH2M::ConstitutiveRelations::ViscosityModel Struct Reference

Detailed Description

Definition at line 25 of file Viscosity.h.

#include <Viscosity.h>

Public Member Functions

void eval (SpaceTimeData const &x_t, MediaData const &media_data, TemperatureData const &T_data, MassMoleFractionsData const &mass_mole_fractions_data, ViscosityData &viscosity_data) const
 

Member Function Documentation

◆ eval()

void ProcessLib::TH2M::ConstitutiveRelations::ViscosityModel::eval ( SpaceTimeData const & x_t,
MediaData const & media_data,
TemperatureData const & T_data,
MassMoleFractionsData const & mass_mole_fractions_data,
ViscosityData & viscosity_data ) const

Definition at line 16 of file Viscosity.cpp.

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}

References ProcessLib::ConstitutiveRelations::SpaceTimeData::dt, ProcessLib::TH2M::ConstitutiveRelations::MediaData::gas, ProcessLib::TH2M::ConstitutiveRelations::MediaData::liquid, MaterialPropertyLib::VariableArray::molar_fraction, ProcessLib::TH2M::ConstitutiveRelations::ViscosityData::mu_GR, ProcessLib::TH2M::ConstitutiveRelations::ViscosityData::mu_LR, ProcessLib::ConstitutiveRelations::SpaceTimeData::t, ProcessLib::TH2M::ConstitutiveRelations::TemperatureData::T, MaterialPropertyLib::VariableArray::temperature, MaterialPropertyLib::viscosity, ProcessLib::ConstitutiveRelations::SpaceTimeData::x, and ProcessLib::TH2M::ConstitutiveRelations::MassMoleFractionsData::xnCG.

Referenced by ProcessLib::TH2M::TH2MLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::updateConstitutiveVariables().


The documentation for this struct was generated from the following files: