OGS
FluidThermalExpansion.cpp
Go to the documentation of this file.
1
12
14
16{
17template <int DisplacementDim>
19 SpaceTimeData const& x_t, MediaData const& media_data,
22 SolidThermalExpansionData<DisplacementDim> const& s_therm_exp_data,
23 PorosityData const& poro_data, LiquidDensityData const& rho_L_data,
24 BiotData const& biot_data, FluidThermalExpansionData& out) const
25{
26 static constexpr int kelvin_vector_size =
29
30 namespace MPL = MaterialPropertyLib;
31 MPL::VariableArray variables;
32 variables.liquid_phase_pressure = -p_cap_data.p_cap;
33 variables.temperature = T_data.T;
34
35 double const phi = poro_data.phi;
36
37 double const fluid_volumetric_thermal_expansion =
38 phi * MPL::getLiquidThermalExpansivity(media_data.liquid, variables,
39 rho_L_data.rho_LR, x_t.x, x_t.t,
40 x_t.dt);
41
43 (biot_data() - phi) *
44 Invariants::trace(
46 fluid_volumetric_thermal_expansion;
47}
48
49template struct FluidThermalExpansionModel<2>;
50template struct FluidThermalExpansionModel<3>;
51} // namespace ProcessLib::ThermoRichardsMechanics
double getLiquidThermalExpansivity(Phase const &phase, VariableArray const &vars, const double density, ParameterLib::SpatialPosition const &pos, double const t, double const dt)
constexpr int kelvin_vector_dimensions(int const displacement_dim)
Kelvin vector dimensions for given displacement dimension.
ParameterLib::SpatialPosition x
Definition Base.h:74
void eval(SpaceTimeData const &x_t, MediaData const &media_data, CapillaryPressureData< DisplacementDim > const &p_cap_data, TemperatureData< DisplacementDim > const &T_data, SolidThermalExpansionData< DisplacementDim > const &s_therm_exp_data, PorosityData const &poro_data, LiquidDensityData const &rho_L_data, BiotData const &biot_data, FluidThermalExpansionData &out) const
MaterialPropertyLib::Phase const & liquid
Definition Base.h:62