OGS
TEquation.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "Base.h"
13#include "ConstitutiveDensity.h"
14#include "DarcyVelocity.h"
15#include "DiffusionVelocity.h"
16#include "Enthalpy.h"
17#include "FluidDensity.h"
18#include "InternalEnergy.h"
19#include "PermeabilityData.h"
20#include "Viscosity.h"
21
22namespace ProcessLib::TH2M
23{
24namespace ConstitutiveRelations
25{
26struct FT1Data
27{
28 double m = nan;
29};
30
32{
33 double dp_GR = nan;
34 double dp_cap = nan;
35 double dT = nan;
36};
37
39{
40 void eval(double const dt,
41 InternalEnergyData const& internal_energy_data,
42 PrevState<InternalEnergyData> const& internal_energy_data_prev,
43 FT1Data& fT_1) const;
44
45 void dEval(double const dt,
47 effective_volumetric_internal_energy_d_data,
48 FT1DerivativeData& dfT_1) const;
49};
50
51template <int DisplacementDim>
56
57template <int DisplacementDim>
66
67template <int DisplacementDim>
69{
70 void eval(DarcyVelocityData<DisplacementDim> const& darcy_velocity_data,
71 FluidDensityData const& fluid_density_data,
72 FluidEnthalpyData const& fluid_enthalpy_data,
73 FT2Data<DisplacementDim>& fT_2) const;
74
75 void dEval(
76 DarcyVelocityData<DisplacementDim> const& darcy_velocity_data,
77 FluidDensityData const& fluid_density_data,
78 FluidEnthalpyData const& fluid_enthalpy_data,
79 PermeabilityData<DisplacementDim> const& permeability_data,
80 PhaseTransitionData const& phase_transition_data,
81 SpecificBodyForceData<DisplacementDim> const& specific_body_force,
82 ViscosityData const& viscosity_data,
84};
85
86extern template struct FT2Model<2>;
87extern template struct FT2Model<3>;
88
89template <int DisplacementDim>
95
96template <int DisplacementDim>
98{
99 void eval(
100 ConstituentDensityData const& constituent_density_data,
101 DarcyVelocityData<DisplacementDim> const& darcy_velocity_data,
102 DiffusionVelocityData<DisplacementDim> const& diffusion_velocity_data,
103 FluidDensityData const& fluid_density_data,
104 PhaseTransitionData const& phase_transition_data,
105 SpecificBodyForceData<DisplacementDim> const& specific_body_force,
106 FT3Data<DisplacementDim>& fT_3) const;
107};
108
109extern template struct FT3Model<2>;
110extern template struct FT3Model<3>;
111} // namespace ConstitutiveRelations
112} // namespace ProcessLib::TH2M
static constexpr double nan
Convenience alias for not a number.
Definition Base.h:80
Eigen::Vector< double, DisplacementDim > GlobalDimVector
Definition Base.h:36
Eigen::Matrix< double, DisplacementDim, DisplacementDim, Eigen::RowMajor > GlobalDimMatrix
Definition Base.h:32
Represents a previous state of type T.
Definition Base.h:21
void dEval(double const dt, EffectiveVolumetricInternalEnergyDerivatives const &effective_volumetric_internal_energy_d_data, FT1DerivativeData &dfT_1) const
Definition TEquation.cpp:33
void eval(double const dt, InternalEnergyData const &internal_energy_data, PrevState< InternalEnergyData > const &internal_energy_data_prev, FT1Data &fT_1) const
Definition TEquation.cpp:16
GlobalDimVector< DisplacementDim > A
Definition TEquation.h:54
GlobalDimMatrix< DisplacementDim > dp_cap_gradNpart
Definition TEquation.h:63
GlobalDimMatrix< DisplacementDim > dp_GR_gradNpart
Definition TEquation.h:61
GlobalDimVector< DisplacementDim > dp_cap_Npart
Definition TEquation.h:62
GlobalDimVector< DisplacementDim > dp_GR_Npart
Definition TEquation.h:60
void eval(DarcyVelocityData< DisplacementDim > const &darcy_velocity_data, FluidDensityData const &fluid_density_data, FluidEnthalpyData const &fluid_enthalpy_data, FT2Data< DisplacementDim > &fT_2) const
Definition TEquation.cpp:56
void dEval(DarcyVelocityData< DisplacementDim > const &darcy_velocity_data, FluidDensityData const &fluid_density_data, FluidEnthalpyData const &fluid_enthalpy_data, PermeabilityData< DisplacementDim > const &permeability_data, PhaseTransitionData const &phase_transition_data, SpecificBodyForceData< DisplacementDim > const &specific_body_force, ViscosityData const &viscosity_data, FT2DerivativeData< DisplacementDim > &dfT_2) const
Definition TEquation.cpp:69
GlobalDimVector< DisplacementDim > gradN
Definition TEquation.h:93