Skip to content

Commit

Permalink
[PL/RM] Adapt to liquid viscosity type change
Browse files Browse the repository at this point in the history
  • Loading branch information
chleh committed Jun 10, 2024
1 parent c7664ec commit 2d00072
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ProcessLib/RichardsMechanics/RichardsMechanicsFEM-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -809,8 +809,8 @@ void RichardsMechanicsLocalAssembler<ShapeFunctionDisplacement,

auto const mu = liquid_phase.property(MPL::PropertyType::viscosity)
.template value<double>(variables, x_position, t, dt);
std::get<ProcessLib::ThermoRichardsMechanics::LiquidViscosityData>(CD)
.viscosity = mu;
*std::get<ProcessLib::ThermoRichardsMechanics::LiquidViscosityData>(CD) =
mu;

// Swelling and possibly volumetric strain rate update.
updateSwellingStressAndVolumetricStrain<DisplacementDim>(
Expand Down Expand Up @@ -1141,9 +1141,8 @@ void RichardsMechanicsLocalAssembler<ShapeFunctionDisplacement,
DisplacementDim>>(CD)
.Ki;
double const mu =
std::get<ProcessLib::ThermoRichardsMechanics::LiquidViscosityData>(
CD)
.viscosity;
*std::get<ProcessLib::ThermoRichardsMechanics::LiquidViscosityData>(
CD);

GlobalDimMatrixType const rho_Ki_over_mu = K_intrinsic * rho_LR / mu;

Expand Down

0 comments on commit 2d00072

Please sign in to comment.