Skip to content
Snippets Groups Projects
Unverified Commit 26033c2a authored by Tom Fischer's avatar Tom Fischer Committed by GitHub
Browse files

Merge pull request #2830 from endJunction/RichardsMechanicsFemFixes

Richards mechanics FEM fixes
parents 09c46646 f6e53cc7
No related branches found
No related tags found
No related merge requests found
...@@ -715,29 +715,17 @@ void RichardsMechanicsLocalAssembler<ShapeFunctionDisplacement, ...@@ -715,29 +715,17 @@ void RichardsMechanicsLocalAssembler<ShapeFunctionDisplacement,
.noalias() += N_p.transpose() * rho_LR * p_cap_dot_ip * .noalias() += N_p.transpose() * rho_LR * p_cap_dot_ip *
dspecific_storage_dp_cap * N_p * w; dspecific_storage_dp_cap * N_p * w;
/* In the derivation there is a div(du/dt) term in the Jacobian, but
* this implementation increases the total runtime by 1%. Maybe a very
* large step is needed to see the increase of efficiency.
double div_u_dot = 0;
for (int i = 0; i < DisplacementDim; ++i)
{
div_u_dot +=
(dNdx_u *
u_dot.template segment<ShapeFunctionDisplacement::NPOINTS>(
i * ShapeFunctionDisplacement::NPOINTS))[i];
}
local_Jac local_Jac
.template block<pressure_size, pressure_size>(pressure_index, .template block<pressure_size, pressure_size>(pressure_index,
pressure_index) pressure_index)
.noalias() -= N_p.transpose() * rho_LR * dS_L_dp_cap * alpha * .noalias() -= N_p.transpose() * rho_LR * dS_L_dp_cap * alpha *
div_u_dot * N_p * w; identity2.transpose() * B * u_dot * N_p * w;
*/
double const dk_rel_dS_l =
double const dk_rel_dS_l = 0; medium->property(MPL::PropertyType::relative_permeability)
/* .template dValue<double>(variables,
_process_data.flow_material->getRelativePermeabilityDerivative( MPL::Variable::liquid_saturation,
t, x_position, -p_cap_ip, temperature, S_L); x_position, t, dt);
*/
typename ShapeMatricesTypeDisplacement::GlobalDimVectorType const typename ShapeMatricesTypeDisplacement::GlobalDimVectorType const
grad_p_cap = -dNdx_p * p_L; grad_p_cap = -dNdx_p * p_L;
local_Jac local_Jac
......
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