Skip to content

Commit

Permalink
[HM] Renamed HydroMechanicsProcessData::phase_pressure to
Browse files Browse the repository at this point in the history
HydroMechanicsProcessData::phase_variable
  • Loading branch information
wenqing authored and TomFischer committed Oct 15, 2024
1 parent 48f7999 commit 1d5d4c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ std::unique_ptr<Process> createHydroMechanicsProcess(

// The uniqueness of phase has already been checked in
// `checkMPLPhasesForSinglePhaseFlow`.
MaterialPropertyLib::Variable const phase_pressure =
MaterialPropertyLib::Variable const phase_variable =
(*ranges::begin(media_map.media()))->hasPhase("Gas")
? MaterialPropertyLib::Variable::gas_phase_pressure
: MaterialPropertyLib::Variable::liquid_phase_pressure;
Expand Down Expand Up @@ -252,7 +252,7 @@ std::unique_ptr<Process> createHydroMechanicsProcess(
hydraulic_process_id,
mechanics_related_process_id,
use_taylor_hood_elements,
phase_pressure};
phase_variable};

SecondaryVariableCollection secondary_variables;

Expand Down
4 changes: 2 additions & 2 deletions ProcessLib/HydroMechanics/HydroMechanicsFEM-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ void HydroMechanicsLocalAssembler<ShapeFunctionDisplacement,

auto const beta_p =
fluid.property(MPL::PropertyType::density)
.template dValue<double>(vars, _process_data.phase_pressure,
.template dValue<double>(vars, _process_data.phase_variable,
x_position, t, dt) /
rho_fr;

Expand Down Expand Up @@ -616,7 +616,7 @@ void HydroMechanicsLocalAssembler<ShapeFunctionDisplacement,
.template value<double>(vars, x_position, t, dt);
auto const beta_p =
fluid.property(MPL::PropertyType::density)
.template dValue<double>(vars, _process_data.phase_pressure,
.template dValue<double>(vars, _process_data.phase_variable,
x_position, t, dt) /
rho_fr;

Expand Down
2 changes: 1 addition & 1 deletion ProcessLib/HydroMechanics/HydroMechanicsProcessData.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct HydroMechanicsProcessData

const bool use_taylor_hood_elements;

MaterialPropertyLib::Variable const phase_pressure;
MaterialPropertyLib::Variable const phase_variable;

MeshLib::PropertyVector<double>* pressure_interpolated = nullptr;
std::array<MeshLib::PropertyVector<double>*, 3> principal_stress_vector = {
Expand Down

0 comments on commit 1d5d4c6

Please sign in to comment.