Skip to content

Commit

Permalink
[Mass coefficients of LiquidFlow] scaled drho_dp with who_w
Browse files Browse the repository at this point in the history
  • Loading branch information
wenqing committed Jul 8, 2019
1 parent 8b235b2 commit 6ad06f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions FEM/fem_ele_std.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1578,17 +1578,17 @@ double CFiniteElementStd::CalCoefMass()
val = MediaProp->StorageFunction(Index, unit, pcs->m_num->ls_theta);
double drho_dp_rho = 0.0;
// get drho/dp/rho from material model or direct input
const double rho_val = FluidProp->Density();
if (FluidProp->compressibility_model_pressure > 0)
{
const double rho_val = FluidProp->Density();
double arg[2];
arg[0] = interpolate(NodalVal1); // p
arg[1] = interpolate(NodalValC1); // T
drho_dp_rho = FluidProp->drhodP(arg) / rho_val;
}
else
{
drho_dp_rho = FluidProp->drho_dp;
drho_dp_rho = FluidProp->drho_dp / rho_val;
}

const double poro_val =
Expand All @@ -1603,7 +1603,7 @@ double CFiniteElementStd::CalCoefMass()
h_fem = this;
storage_effstress =
MediaProp->StorageFunctionEffStress(Index, nnodes, h_fem);
val *= storage_effstress;
val += storage_effstress;
}

// val /= time_unit_factor;
Expand Down
2 changes: 1 addition & 1 deletion FEM/rf_mmp_new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8001,7 +8001,7 @@ double CMediumProperties::StorageFunction(long index, double* gp, double theta)
return storage;
}

// AS:08.2012 storgae function eff stress
// AS:08.2012 storage function of effective stress
double CMediumProperties::StorageFunctionEffStress(long index, int nnodes,
CFiniteElementStd* h_fem)
{
Expand Down

0 comments on commit 6ad06f1

Please sign in to comment.