v0.8.23
Public Types | Public Member Functions | Public Attributes | List of all members
MixTransport::CommonMaterialData Struct Reference

#include <users_modules/basic_finite_elements/mix_transport/src/MaterialUnsaturatedFlow.hpp>

Inheritance diagram for MixTransport::CommonMaterialData:
[legend]
Collaboration diagram for MixTransport::CommonMaterialData:
[legend]

Public Types

typedef boost::function< boost::shared_ptr< CommonMaterialData > const CommonMaterialData &data)> RegisterHook
 

Public Member Functions

 CommonMaterialData ()
 
double initalPcEval () const
 Initialize head. More...
 
void addOptions (po::options_description &o, const std::string &prefix)
 
void printMatParameters (const int id, const std::string &prefix) const
 
- Public Member Functions inherited from MixTransport::GenericMaterial
virtual ~GenericMaterial ()
 
virtual MoFEMErrorCode calK ()
 
virtual MoFEMErrorCode calDiffK ()
 
virtual MoFEMErrorCode calC ()
 
virtual MoFEMErrorCode calDiffC ()
 
virtual MoFEMErrorCode calTheta ()
 
virtual MoFEMErrorCode calSe ()
 

Public Attributes

int blockId
 Block Id. More...
 
std::string matName
 material name More...
 
double Ks
 Saturated hydraulic conductivity [m/day]. More...
 
double hS
 minimum capillary height [m] More...
 
double thetaS
 saturated water content More...
 
double thetaR
 residual water contents More...
 
double thetaM
 model parameter More...
 
double alpha
 model parameter More...
 
double n
 model parameter More...
 
double Ah
 Initial hydraulic head coefficient. More...
 
double AhZ
 Initial hydraulic head coefficient. More...
 
double AhZZ
 Initial hydraulic head coefficient. More...
 
- Public Attributes inherited from MixTransport::GenericMaterial
double sCale
 Scale time dependent eq. More...
 
double h
 hydraulic head More...
 
double h_t
 rate of hydraulic head More...
 
double K
 Hydraulic conductivity [L/s]. More...
 
double diffK
 Derivative of hydraulic conductivity [L/s * L^2/F]. More...
 
double C
 Capacity [S^2/L^2]. More...
 
double diffC
 Derivative of capacity [S^2/L^2 * L^2/F ]. More...
 
double tHeta
 Water content. More...
 
double Se
 Effective saturation. More...
 
Range tEts
 Elements with this material. More...
 
double x
 
double y
 
double z
 in meters (L) More...
 

Additional Inherited Members

- Static Public Attributes inherited from MixTransport::GenericMaterial
static double ePsilon0 = 0
 Regularization parameter. More...
 
static double ePsilon1 = 0
 Regularization parameter. More...
 

Detailed Description

Examples
unsaturated_transport.cpp.

Definition at line 13 of file MaterialUnsaturatedFlow.hpp.

Member Typedef Documentation

◆ RegisterHook

typedef boost::function<boost::shared_ptr<CommonMaterialData> const CommonMaterialData &data)> MixTransport::CommonMaterialData::RegisterHook

Definition at line 97 of file MaterialUnsaturatedFlow.hpp.

Constructor & Destructor Documentation

◆ CommonMaterialData()

MixTransport::CommonMaterialData::CommonMaterialData ( )

Definition at line 15 of file MaterialUnsaturatedFlow.hpp.

15  {
16  blockId = 0;
17  matName = "SimpleDarcy";
18  sCale = 1;
19  thetaS = 0.38;
20  thetaM = 0.38;
21  thetaR = 0.068;
22  alpha = 0.8;
23  n = 1.09;
24  Ks = 0.048;
25  hS = 0;
26  Ah = 0.;
27  AhZ = 0.;
28  AhZZ = 0;
29  }
double thetaS
saturated water content
double Ah
Initial hydraulic head coefficient.
double Ks
Saturated hydraulic conductivity [m/day].
double hS
minimum capillary height [m]
double AhZZ
Initial hydraulic head coefficient.
double sCale
Scale time dependent eq.
double AhZ
Initial hydraulic head coefficient.
double thetaR
residual water contents

Member Function Documentation

◆ addOptions()

void MixTransport::CommonMaterialData::addOptions ( po::options_description &  o,
const std::string &  prefix 
)

Definition at line 50 of file MaterialUnsaturatedFlow.hpp.

50  {
51  o.add_options()((prefix + ".material_name").c_str(),
52  po::value<std::string>(&matName)->default_value(matName))(
53  (prefix + ".ePsilon0").c_str(),
54  po::value<double>(&ePsilon0)->default_value(ePsilon0))(
55  (prefix + ".ePsilon1").c_str(),
56  po::value<double>(&ePsilon1)->default_value(ePsilon1))(
57  (prefix + ".sCale").c_str(),
58  po::value<double>(&sCale)->default_value(sCale))(
59  (prefix + ".thetaS").c_str(),
60  po::value<double>(&thetaS)->default_value(thetaS))(
61  (prefix + ".thetaR").c_str(),
62  po::value<double>(&thetaR)->default_value(thetaR))(
63  (prefix + ".thetaM").c_str(),
64  po::value<double>(&thetaM)->default_value(thetaM))(
65  (prefix + ".alpha").c_str(),
66  po::value<double>(&alpha)->default_value(alpha))(
67  (prefix + ".n").c_str(), po::value<double>(&n)->default_value(n))(
68  (prefix + ".hS").c_str(), po::value<double>(&hS)->default_value(hS))(
69  (prefix + ".Ks").c_str(), po::value<double>(&Ks)->default_value(Ks))(
70  (prefix + ".Ah").c_str(), po::value<double>(&Ah)->default_value(Ah))(
71  (prefix + ".AhZ").c_str(), po::value<double>(&AhZ)->default_value(AhZ))(
72  (prefix + ".AhZZ").c_str(),
73  po::value<double>(&AhZZ)->default_value(AhZZ));
74  }
double thetaS
saturated water content
static double ePsilon0
Regularization parameter.
double Ah
Initial hydraulic head coefficient.
double Ks
Saturated hydraulic conductivity [m/day].
double hS
minimum capillary height [m]
double AhZZ
Initial hydraulic head coefficient.
static double ePsilon1
Regularization parameter.
double sCale
Scale time dependent eq.
double AhZ
Initial hydraulic head coefficient.
double thetaR
residual water contents

◆ initalPcEval()

double MixTransport::CommonMaterialData::initalPcEval ( ) const
virtual

Initialize head.

Returns
value of head

Implements MixTransport::GenericMaterial.

Definition at line 48 of file MaterialUnsaturatedFlow.hpp.

48 { return Ah + AhZ * z + AhZZ * z * z; }
double Ah
Initial hydraulic head coefficient.
double AhZZ
Initial hydraulic head coefficient.
double AhZ
Initial hydraulic head coefficient.

◆ printMatParameters()

void MixTransport::CommonMaterialData::printMatParameters ( const int  id,
const std::string &  prefix 
) const
virtual

Implements MixTransport::GenericMaterial.

Examples
unsaturated_transport.cpp.

Definition at line 76 of file MaterialUnsaturatedFlow.hpp.

76  {
77  PetscPrintf(PETSC_COMM_WORLD, "Mat name %s-%s block id %d\n",
78  prefix.c_str(), matName.c_str(), id);
79  PetscPrintf(PETSC_COMM_WORLD, "Material name: %s\n", matName.c_str());
80  PetscPrintf(PETSC_COMM_WORLD, "thetaS=%6.4g\n", thetaS);
81  PetscPrintf(PETSC_COMM_WORLD, "thetaR=%6.4g\n", thetaR);
82  PetscPrintf(PETSC_COMM_WORLD, "thetaM=%6.4g\n", thetaM);
83  PetscPrintf(PETSC_COMM_WORLD, "alpha=%6.4g\n", alpha);
84  PetscPrintf(PETSC_COMM_WORLD, "n=%6.4g\n", n);
85  PetscPrintf(PETSC_COMM_WORLD, "hS=%6.4g\n", hS);
86  PetscPrintf(PETSC_COMM_WORLD, "Ks=%6.4g\n", Ks);
87  PetscPrintf(PETSC_COMM_WORLD, "Ah=%6.4g\n", Ah);
88  PetscPrintf(PETSC_COMM_WORLD, "AhZ=%6.4g\n", AhZ);
89  PetscPrintf(PETSC_COMM_WORLD, "AhZZ=%6.4g\n", AhZZ);
90  PetscPrintf(PETSC_COMM_WORLD, "ePsilon0=%6.4g\n", ePsilon0);
91  PetscPrintf(PETSC_COMM_WORLD, "ePsilon1=%6.4g\n", ePsilon1);
92  PetscPrintf(PETSC_COMM_WORLD, "sCale=%6.4g\n", sCale);
93  }
double thetaS
saturated water content
static double ePsilon0
Regularization parameter.
double Ah
Initial hydraulic head coefficient.
double Ks
Saturated hydraulic conductivity [m/day].
double hS
minimum capillary height [m]
double AhZZ
Initial hydraulic head coefficient.
static double ePsilon1
Regularization parameter.
double sCale
Scale time dependent eq.
double AhZ
Initial hydraulic head coefficient.
double thetaR
residual water contents

Member Data Documentation

◆ Ah

double MixTransport::CommonMaterialData::Ah

Initial hydraulic head coefficient.

Definition at line 44 of file MaterialUnsaturatedFlow.hpp.

◆ AhZ

double MixTransport::CommonMaterialData::AhZ

Initial hydraulic head coefficient.

Definition at line 45 of file MaterialUnsaturatedFlow.hpp.

◆ AhZZ

double MixTransport::CommonMaterialData::AhZZ

Initial hydraulic head coefficient.

Definition at line 46 of file MaterialUnsaturatedFlow.hpp.

◆ alpha

double MixTransport::CommonMaterialData::alpha

model parameter

Definition at line 39 of file MaterialUnsaturatedFlow.hpp.

◆ blockId

int MixTransport::CommonMaterialData::blockId

Block Id.

Definition at line 31 of file MaterialUnsaturatedFlow.hpp.

◆ hS

double MixTransport::CommonMaterialData::hS

minimum capillary height [m]

Definition at line 35 of file MaterialUnsaturatedFlow.hpp.

◆ Ks

double MixTransport::CommonMaterialData::Ks

Saturated hydraulic conductivity [m/day].

Definition at line 34 of file MaterialUnsaturatedFlow.hpp.

◆ matName

std::string MixTransport::CommonMaterialData::matName

material name

Definition at line 32 of file MaterialUnsaturatedFlow.hpp.

◆ n

double MixTransport::CommonMaterialData::n

model parameter

Definition at line 40 of file MaterialUnsaturatedFlow.hpp.

◆ thetaM

double MixTransport::CommonMaterialData::thetaM

model parameter

Definition at line 38 of file MaterialUnsaturatedFlow.hpp.

◆ thetaR

double MixTransport::CommonMaterialData::thetaR

residual water contents

Definition at line 37 of file MaterialUnsaturatedFlow.hpp.

◆ thetaS

double MixTransport::CommonMaterialData::thetaS

saturated water content

Definition at line 36 of file MaterialUnsaturatedFlow.hpp.


The documentation for this struct was generated from the following file: