Skip to content
Snippets Groups Projects
Commit 3900054a authored by wenqing's avatar wenqing Committed by Dmitri Naumov
Browse files

[HT/THM] Pass porosity via the variable array to material properties

parent 6ddd6430
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,8 @@ public:
auto const porosity =
medium.property(MaterialPropertyLib::PropertyType::porosity)
.template value<double>(vars, pos, t, dt);
vars[static_cast<int>(MaterialPropertyLib::Variable::porosity)] =
porosity;
auto const intrinsic_permeability =
MaterialPropertyLib::formEigenTensor<GlobalDim>(
......
......@@ -238,6 +238,8 @@ void StaggeredHTFEM<ShapeFunction, IntegrationMethod, GlobalDim>::
auto const porosity =
medium.property(MaterialPropertyLib::PropertyType::porosity)
.template value<double>(vars, pos, t, dt);
vars[static_cast<int>(MaterialPropertyLib::Variable::porosity)] =
porosity;
// Use the fluid density model to compute the density
auto const fluid_density =
......
......@@ -247,6 +247,8 @@ void ThermoHydroMechanicsLocalAssembler<ShapeFunctionDisplacement,
auto const porosity =
medium->property(MaterialPropertyLib::PropertyType::porosity)
.template value<double>(vars, x_position, t, dt);
vars[static_cast<int>(MaterialPropertyLib::Variable::porosity)] =
porosity;
auto const alpha =
medium
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment