OGS
SolidDensity.cpp
Go to the documentation of this file.
1
11#include "SolidDensity.h"
12
14{
15template <int DisplacementDim>
17 SpaceTimeData const& x_t,
18 MediaData const& media_data,
19 PorosityData const& poro_data,
21 SolidDensityData& out) const
22{
23 namespace MPL = MaterialPropertyLib;
24 MPL::VariableArray variables;
25 variables.temperature = T_data.T;
26
27 out.rho_SR = media_data.solid.property(MPL::PropertyType::density)
28 .template value<double>(variables, x_t.x, x_t.t, x_t.dt);
30 (1 - poro_data.phi) * out.rho_SR; // TODO only for output
31}
32
33template struct SolidDensityModel<2>;
34template struct SolidDensityModel<3>;
35} // namespace ProcessLib::ThermoRichardsMechanics
Property const & property(PropertyType const &p) const
Definition Phase.cpp:53
ParameterLib::SpatialPosition x
Definition Base.h:74
MaterialPropertyLib::Phase const & solid
Definition Base.h:63
void eval(SpaceTimeData const &x_t, MediaData const &media_data, PorosityData const &poro_data, TemperatureData< DisplacementDim > const &T_data, SolidDensityData &out) const