OGS
DarcyVelocity.cpp
Go to the documentation of this file.
1
10#include "DarcyVelocity.h"
11
12namespace ProcessLib::TH2M
13{
14namespace ConstitutiveRelations
15{
16template <int DisplacementDim>
19 FluidDensityData const& fluid_density_data,
21 PermeabilityData<DisplacementDim> const& permeability_data,
22 SpecificBodyForceData<DisplacementDim> const& specific_body_force,
23 ViscosityData const& viscosity_data,
24 DarcyVelocityData<DisplacementDim>& darcy_velocity_data) const
25{
26 auto const k_over_mu_G =
27 permeability_data.Ki * permeability_data.k_rel_G / viscosity_data.mu_GR;
28 auto const k_over_mu_L =
29 permeability_data.Ki * permeability_data.k_rel_L / viscosity_data.mu_LR;
30
31 darcy_velocity_data.w_GS =
32 k_over_mu_G * fluid_density_data.rho_GR * specific_body_force() -
33 k_over_mu_G * grad_p_GR();
34 darcy_velocity_data.w_LS =
35 k_over_mu_L * grad_p_cap() +
36 k_over_mu_L * fluid_density_data.rho_LR * specific_body_force() -
37 k_over_mu_L * grad_p_GR();
38}
39
40template struct DarcyVelocityModel<2>;
41template struct DarcyVelocityModel<3>;
42} // namespace ConstitutiveRelations
43} // namespace ProcessLib::TH2M
void eval(CapillaryPressureGradientData< DisplacementDim > const &grad_p_cap, FluidDensityData const &fluid_density_data, GasPressureGradientData< DisplacementDim > const &grad_p_GR, PermeabilityData< DisplacementDim > const &permeability_data, SpecificBodyForceData< DisplacementDim > const &specific_body_force, ViscosityData const &viscosity_data, DarcyVelocityData< DisplacementDim > &darcy_velocity_data) const