OGS
ProcessLib::TH2M::ConstitutiveRelations::GravityModel< DisplacementDim > Struct Template Reference

Detailed Description

template<int DisplacementDim>
struct ProcessLib::TH2M::ConstitutiveRelations::GravityModel< DisplacementDim >

Definition at line 28 of file Gravity.h.

#include <Gravity.h>

Public Member Functions

void eval (FluidDensityData const &fluid_density_data, PorosityData const &porosity_data, SaturationData const &S_L_data, SolidDensityData const &solid_density_data, SpecificBodyForceData< DisplacementDim > const &specific_body_force, VolumetricBodyForce< DisplacementDim > &volumetric_body_force) const
 

Member Function Documentation

◆ eval()

template<int DisplacementDim>
void ProcessLib::TH2M::ConstitutiveRelations::GravityModel< DisplacementDim >::eval ( FluidDensityData const & fluid_density_data,
PorosityData const & porosity_data,
SaturationData const & S_L_data,
SolidDensityData const & solid_density_data,
SpecificBodyForceData< DisplacementDim > const & specific_body_force,
VolumetricBodyForce< DisplacementDim > & volumetric_body_force ) const

Definition at line 17 of file Gravity.cpp.

24{
25 auto const phi_G = (1. - S_L_data.S_L) * porosity_data.phi;
26 auto const phi_L = S_L_data.S_L * porosity_data.phi;
27 auto const phi_S = 1. - porosity_data.phi;
28
29 auto const rhoGR = fluid_density_data.rho_GR;
30 auto const rhoLR = fluid_density_data.rho_LR;
31 auto const rho =
32 phi_G * rhoGR + phi_L * rhoLR + phi_S * solid_density_data.rho_SR;
33 *volumetric_body_force = rho * specific_body_force();
34}
@ rho
density. For some models, rho substitutes p

References ProcessLib::TH2M::ConstitutiveRelations::PorosityData::phi, ProcessLib::TH2M::ConstitutiveRelations::FluidDensityData::rho_GR, ProcessLib::TH2M::ConstitutiveRelations::FluidDensityData::rho_LR, ProcessLib::TH2M::ConstitutiveRelations::SolidDensityData::rho_SR, and ProcessLib::TH2M::ConstitutiveRelations::SaturationData::S_L.


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