OGS
Gravity.cpp
Go to the documentation of this file.
1
11
#include "
Gravity.h
"
12
13
namespace
ProcessLib::ThermoRichardsMechanics
14
{
15
template
<
int
DisplacementDim>
16
void
GravityModel<DisplacementDim>::eval
(
17
PorosityData
const
& poro_data,
SolidDensityData
const
& rho_S_data,
18
LiquidDensityData
const
& rho_L_data,
SaturationData
const
& S_L_data,
19
SaturationDataDeriv
const
& dS_L_data,
20
GravityData<DisplacementDim>
& out)
const
21
{
22
auto
const
rho_SR = rho_S_data.
rho_SR
;
23
auto
const
phi = poro_data.
phi
;
24
auto
const
S_L = S_L_data.
S_L
;
25
auto
const
rho_LR = rho_L_data.
rho_LR
;
26
auto
const
b = specific_body_force_;
27
28
double
const
rho = rho_SR * (1 - phi) + S_L * phi * rho_LR;
29
out.
volumetric_body_force
= rho * b;
30
31
// There is no minus in the Jacobian block, because volumetric_body_force is
32
// subtracted from the residual vector.
33
out.
J_up_HT_V_N
=
34
poro_data.
phi
* rho_L_data.
rho_LR
* dS_L_data.
dS_L_dp_cap
* b;
35
}
36
37
template
struct
GravityModel<2>
;
38
template
struct
GravityModel<3>
;
39
}
// namespace ProcessLib::ThermoRichardsMechanics
Gravity.h
ProcessLib::ThermoRichardsMechanics
Definition
Base.h:20
ProcessLib::ThermoRichardsMechanics::GravityData
Definition
Gravity.h:22
ProcessLib::ThermoRichardsMechanics::GravityData::volumetric_body_force
GlobalDimVector< DisplacementDim > volumetric_body_force
Definition
Gravity.h:23
ProcessLib::ThermoRichardsMechanics::GravityData::J_up_HT_V_N
GlobalDimVector< DisplacementDim > J_up_HT_V_N
Definition
Gravity.h:24
ProcessLib::ThermoRichardsMechanics::GravityModel
Definition
Gravity.h:29
ProcessLib::ThermoRichardsMechanics::GravityModel::eval
void eval(PorosityData const &poro_data, SolidDensityData const &rho_S_data, LiquidDensityData const &rho_L_data, SaturationData const &S_L_data, SaturationDataDeriv const &dS_L_data, GravityData< DisplacementDim > &out) const
Definition
Gravity.cpp:16
ProcessLib::ThermoRichardsMechanics::LiquidDensityData
Definition
LiquidDensity.h:18
ProcessLib::ThermoRichardsMechanics::LiquidDensityData::rho_LR
double rho_LR
Definition
LiquidDensity.h:19
ProcessLib::ThermoRichardsMechanics::PorosityData
Definition
Porosity.h:21
ProcessLib::ThermoRichardsMechanics::PorosityData::phi
double phi
Definition
Porosity.h:22
ProcessLib::ThermoRichardsMechanics::SaturationDataDeriv
Definition
Saturation.h:29
ProcessLib::ThermoRichardsMechanics::SaturationDataDeriv::dS_L_dp_cap
double dS_L_dp_cap
Definition
Saturation.h:30
ProcessLib::ThermoRichardsMechanics::SaturationData
Definition
Saturation.h:18
ProcessLib::ThermoRichardsMechanics::SaturationData::S_L
double S_L
Definition
Saturation.h:19
ProcessLib::ThermoRichardsMechanics::SolidDensityData
Definition
SolidDensity.h:19
ProcessLib::ThermoRichardsMechanics::SolidDensityData::rho_SR
double rho_SR
Definition
SolidDensity.h:20
ProcessLib
ThermoRichardsMechanics
ConstitutiveCommon
Gravity.cpp
Generated by
1.11.0