OGS
Gravity.cpp
Go to the documentation of this file.
1
10#include "Gravity.h"
11
12namespace ProcessLib::TH2M
13{
14namespace ConstitutiveRelations
15{
16template <int DisplacementDim>
18 FluidDensityData const& fluid_density_data,
19 PorosityData const& porosity_data,
20 SaturationData const& S_L_data,
21 SolidDensityData const& solid_density_data,
22 SpecificBodyForceData<DisplacementDim> const& specific_body_force,
23 VolumetricBodyForce<DisplacementDim>& volumetric_body_force) const
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}
35
36template struct GravityModel<2>;
37template struct GravityModel<3>;
38} // namespace ConstitutiveRelations
39} // namespace ProcessLib::TH2M
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
Definition Gravity.cpp:17