OGS
MaterialPropertyLib Namespace Reference

Namespaces

namespace  IAPWSIF97Region4
 

Classes

class  AverageMolarMass
 
class  BishopsPowerLaw
 Bishop's power law for effective stress. More...
 
class  BishopsSaturationCutoff
 
class  CapillaryPressureRegularizedVanGenuchten
 This class handles the computation of the capillary pressure, \( p_c(S_l) \), with the capillary pressure regularization. More...
 
class  CapillaryPressureVanGenuchten
 The van Genuchten capillary pressure model. More...
 
class  ClausiusClapeyron
 
class  Component
 This class defines components (substances). More...
 
class  Constant
 
struct  CubicLawPermeability
 
class  Curve
 
class  DupuitPermeability
 
class  EffectiveThermalConductivityPorosityMixing
 
class  EmbeddedFracturePermeability
 Permeability model as proposed by Olivella&Alonso. More...
 
struct  ExponentData
 
class  Exponential
 
struct  FormEigenTensor
 
struct  FormEigenVector
 
struct  FormKelvinVector
 
class  Function
 
class  GasPressureDependentPermeability
 A gas pressure dependent intrinsic permeability model. More...
 
struct  GetSymmetricTensor
 
class  IdealGasLaw
 Density function for ideal gases. More...
 
class  IdealGasLawBinaryMixture
 Density function for binary ideal gases. More...
 
struct  IndependentVariable
 
class  KozenyCarmanModel
 Kozeny-Carman equation. More...
 
class  Linear
 
class  LinearSaturationSwellingStress
 This class defines a linear saturation rate dependent swelling stress model for the materials that swell strongly when water content increases. More...
 
class  LinearWaterVapourLatentHeat
 An empirical function for the latent heat of vaporization of liquid water, which is given by [35] p.786f. More...
 
class  LiquidViscosityVogels
 
class  MaterialSpatialDistributionMap
 
class  Medium
 
class  OrthotropicEmbeddedFracturePermeability
 Extended Permeability model based on Olivella&Alonso. More...
 
class  Parameter
 
class  PermeabilityMohrCoulombFailureIndexModel
 A failure index dependent permeability model [42]. More...
 
class  PermeabilityOrthotropicPowerLaw
 
class  Phase
 
class  PorosityFromMassBalance
 
class  Property
 
class  RelPermBrooksCorey
 Relative permeability function of the wetting phase proposed by Brooks&Corey. More...
 
class  RelPermBrooksCoreyNonwettingPhase
 Relative permeability function of the non-wetting phase proposed by Brooks&Corey. More...
 
class  RelPermGeneralizedPower
 
class  RelPermGeneralizedPowerNonwettingPhase
 
class  RelPermLiakopoulos
 Relative permeability function for the wetting phase of the Liakopoulos experiment. More...
 
class  RelPermNonWettingPhaseVanGenuchtenMualem
 
class  RelPermUdell
 
class  RelPermUdellNonwettingPhase
 
class  RelPermVanGenuchten
 
class  SaturationBrooksCorey
 A well known soil characteristics function. More...
 
class  SaturationDependentSwelling
 
class  SaturationExponential
 A simplistic soil characteristics function. More...
 
class  SaturationLiakopoulos
 A well known soil characteristics function. More...
 
class  SaturationVanGenuchten
 The van Genuchten capillary pressure model. More...
 
class  SaturationVanGenuchtenWithVolumetricStrain
 A strain dependent bimodal water retention model. More...
 
class  SaturationWeightedThermalConductivity
 Saturation dependent thermal conductivity model for soil. More...
 
class  SigmoidFunction
 
class  SpecificHeatCapacityWithLatentHeat
 
class  StrainDependentPermeability
 A strain dependent intrinsic permeability model. More...
 
class  TemperatureDependentDiffusion
 
class  TemperatureDependentFraction
 
class  TransportPorosityFromMassBalance
 
class  VapourDiffusionDeVries
 DeVries type Vapour diffusion. More...
 
class  VapourDiffusionFEBEX
 FEBEX type Vapour diffusion. More...
 
class  VapourDiffusionPMQ
 The Penman-Millington-Quirk (PMQ) Vapour diffusion model. More...
 
class  VariableArray
 
class  VermaPruessModel
 Verma-Pruess equation [41]. More...
 
struct  VogelsViscosityConstantsCH4
 
struct  VogelsViscosityConstantsCO2
 
struct  VogelsViscosityConstantsWater
 
class  VolumeFractionAverage
 
struct  Water
 
class  WaterDensityIAPWSIF97Region1
 
class  WaterEnthalpyIAPWSIF97Region1
 
struct  WaterLiquidDensityIAPWSIF97Region4
 
struct  WaterLiquidEnthalpyIAPWSIF97Region4
 
struct  WaterSaturationTemperatureIAPWSIF97Region4
 
class  WaterTemperatureIAPWSIF97Region1
 
class  WaterThermalConductivityIAPWS
 A class for thermal conductivity model that is defined by The International Association for the Properties of Water and Steam IAPWS (File accessed at 13.01.2023) - (Daucik and Dooley, 2011) More...
 
class  WaterVapourDensity
 A model for water vapour density in the unsaturated porous media. More...
 
class  WaterVapourDensityIAPWSIF97Region4
 
class  WaterVapourEnthalpyIAPWSIF97Region4
 
class  WaterVapourLatentHeatWithCriticalTemperature
 A latent heat model of vaporisation of water considering the critical temperature. More...
 
class  WaterViscosityIAPWS
 A class for viscosity model that is defined by The International Association for the Properties of Water and Steam IAPWS More...
 
struct  ZeroInitPropertyDataType
 

Typedefs

using PropertyArray
 
using PropertyDataType
 
template<int GlobalDim>
using SymmetricTensor
 
template<int Dim>
using Tensor = Eigen::Matrix<double, tensorSize(Dim), 1>
 
using VariableType
 

Enumerations

enum class  MeanType { ARITHMETIC_LINEAR , ARITHMETIC_SQUAREROOT , GEOMETRIC }
 
enum  PropertyType : int {
  acentric_factor , binary_interaction_coefficient , biot_coefficient , bishops_effective_stress ,
  brooks_corey_exponent , bulk_modulus , capillary_pressure , critical_density ,
  critical_pressure , critical_temperature , compressibility , concentration ,
  decay_rate , density , diffusion , drhodT ,
  effective_stress , enthalpy , entry_pressure , evaporation_enthalpy ,
  fredlund_parameters , heat_capacity , henry_coefficient , longitudinal_dispersivity ,
  molality , molar_mass , molar_volume , mole_fraction ,
  molecular_diffusion , name , permeability , phase_change_expansivity ,
  phase_velocity , pore_diffusion , poissons_ratio , porosity ,
  reference_density , reference_temperature , reference_pressure , relative_permeability ,
  relative_permeability_nonwetting_phase , residual_gas_saturation , residual_liquid_saturation , retardation_factor ,
  saturation , saturation_density , saturation_enthalpy , saturation_micro ,
  saturation_temperature , specific_heat_capacity , specific_latent_heat , storage ,
  storage_contribution , swelling_stress_rate , temperature , thermal_conductivity ,
  thermal_diffusion_enhancement_factor , thermal_expansivity , thermal_expansivity_contribution , thermal_longitudinal_dispersivity ,
  thermal_osmosis_coefficient , thermal_transversal_dispersivity , tortuosity , transport_porosity ,
  transversal_dispersivity , vapour_pressure , viscosity , volume_fraction ,
  youngs_modulus , number_of_properties
}
 
enum class  Variable : int {
  capillary_pressure , concentration , deformation_gradient , density ,
  effective_pore_pressure , enthalpy , enthalpy_of_evaporation , equivalent_plastic_strain ,
  grain_compressibility , liquid_phase_pressure , liquid_saturation , mechanical_strain ,
  molar_mass , molar_mass_derivative , molar_fraction , gas_phase_pressure ,
  porosity , solid_grain_pressure , stress , temperature ,
  total_strain , total_stress , transport_porosity , vapour_pressure ,
  volumetric_strain , number_of_variables
}
 

Functions

template<typename ContainerMedium , typename ContainerSolid , typename ContainerLiquid , typename ContainerGas >
void checkMaterialSpatialDistributionMap (MeshLib::Mesh const &mesh, MaterialPropertyLib::MaterialSpatialDistributionMap const &media_map, ContainerMedium const &required_properties_medium, ContainerSolid const &required_properties_solid_phase, ContainerLiquid const &required_properties_liquid_phase, ContainerGas const &required_properties_gas_phase)
 
void checkRequiredProperties (Component const &c, std::span< PropertyType const > const required_properties)
 
std::unique_ptr< ComponentnewComponent (std::string const &component_name, bool &isCustomComponent)
 
std::vector< std::unique_ptr< Component > > createComponents (int const geometry_dimension, std::optional< BaseLib::ConfigTree > const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
 
MaterialSpatialDistributionMap createMaterialSpatialDistributionMap (std::map< int, std::shared_ptr< Medium > > const &media, MeshLib::Mesh const &mesh)
 
std::unique_ptr< MediumcreateMedium (int const material_id, int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
 
std::vector< std::unique_ptr< Phase > > createPhases (int const geometry_dimension, std::optional< BaseLib::ConfigTree > const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
 
std::unique_ptr< PropertyArraycreateProperties (int const geometry_dimension, std::optional< BaseLib::ConfigTree > const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
 
void checkRequiredProperties (Medium const &medium, std::span< PropertyType const > const required_properties)
 
Phase const & fluidPhase (Medium const &medium)
 Returns a gas or aqueous liquid phase of the given medium.
 
void checkRequiredProperties (Phase const &phase, std::span< PropertyType const > const required_properties)
 
void checkSaturationRange (const double Sl)
 
std::unique_ptr< PropertycreateCapillaryPressureRegularizedVanGenuchten (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateCapillaryPressureVanGenuchten (BaseLib::ConfigTree const &config)
 
std::unique_ptr< SaturationBrooksCoreycreateSaturationBrooksCorey (BaseLib::ConfigTree const &config)
 
std::unique_ptr< SaturationExponentialcreateSaturationExponential (BaseLib::ConfigTree const &config)
 
std::unique_ptr< SaturationLiakopouloscreateSaturationLiakopoulos (BaseLib::ConfigTree const &config)
 
std::unique_ptr< SaturationVanGenuchtencreateSaturationVanGenuchten (BaseLib::ConfigTree const &config)
 
std::unique_ptr< SaturationVanGenuchtenWithVolumetricStraincreateSaturationVanGenuchtenWithVolumetricStrain (BaseLib::ConfigTree const &config)
 
std::unique_ptr< AverageMolarMasscreateAverageMolarMass (BaseLib::ConfigTree const &config)
 
std::unique_ptr< BishopsPowerLawcreateBishopsPowerLaw (BaseLib::ConfigTree const &config)
 
std::unique_ptr< BishopsSaturationCutoffcreateBishopsSaturationCutoff (BaseLib::ConfigTree const &config)
 
std::unique_ptr< ClausiusClapeyroncreateClausiusClapeyron (BaseLib::ConfigTree const &config)
 
std::unique_ptr< ConstantcreateConstant (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateCubicLawPermeability (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< CurvecreateCurve (BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
 
std::unique_ptr< DupuitPermeabilitycreateDupuitPermeability (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< PropertycreateEffectiveThermalConductivityPorosityMixing (int const geometry_dimension, BaseLib::ConfigTree const &config, ParameterLib::CoordinateSystem const *const local_coordinate_system)
 
std::unique_ptr< PropertycreateEmbeddedFracturePermeability (int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< ExponentialcreateExponential (BaseLib::ConfigTree const &config)
 
std::unique_ptr< FunctioncreateFunction (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateGasPressureDependentPermeability (int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system)
 
std::unique_ptr< IdealGasLawcreateIdealGasLaw (BaseLib::ConfigTree const &config)
 
std::unique_ptr< IdealGasLawBinaryMixturecreateIdealGasLawBinaryMixture (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateKozenyCarmanModel (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< LinearcreateLinear (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateOrthotropicEmbeddedFracturePermeability (int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< ParametercreateParameterProperty (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< PropertycreatePermeabilityMohrCoulombFailureIndexModel (int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system)
 
std::unique_ptr< PropertycreatePermeabilityOrthotropicPowerLaw (BaseLib::ConfigTree const &config, ParameterLib::CoordinateSystem const *const local_coordinate_system)
 
std::unique_ptr< PorosityFromMassBalancecreatePorosityFromMassBalance (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< SaturationDependentSwellingcreateSaturationDependentSwelling (BaseLib::ConfigTree const &config, ParameterLib::CoordinateSystem const *const local_coordinate_system)
 
std::unique_ptr< PropertycreateSaturationDependentThermalConductivity (BaseLib::ConfigTree const &config)
 
std::unique_ptr< SpecificHeatCapacityWithLatentHeatcreateSpecificHeatCapacityWithLatentHeat (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateStrainDependentPermeability (int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system)
 
std::unique_ptr< PropertycreateTemperatureDependentDiffusion (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< TemperatureDependentFractioncreateTemperatureDependentFraction (BaseLib::ConfigTree const &config)
 
std::unique_ptr< TransportPorosityFromMassBalancecreateTransportPorosityFromMassBalance (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< PropertycreateVermaPruessModel (BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< VolumeFractionAveragecreateVolumeFractionAverage (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterSaturationTemperatureIAPWSIF97Region4 (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterTemperatureIAPWSIF97Region1 (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterDensityIAPWSIF97Region1 (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterLiquidDensityIAPWSIF97Region4 (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterVapourDensity (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterVapourDensityIAPWSIF97Region4 (BaseLib::ConfigTree const &config)
 
static double saturatedVaporDensity (double const T)
 \(\rho_{vS}\)
 
static double dsaturatedVaporDensitydT (double const T)
 \(\frac{\partial \rho_{vS}}{\partial T}\)
 
static double humidity (double const T, double const p, double const water_density)
 
std::unique_ptr< PropertycreateLinearWaterVapourLatentHeat (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterEnthalpyIAPWSIF97Region1 (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterLiquidEnthalpyIAPWSIF97Region4 (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterVapourEnthalpyIAPWSIF97Region4 (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterVapourLatentHeatWithCriticalTemperature (BaseLib::ConfigTree const &config)
 
template<typename T >
static std::vector< exprtk::expression< T > > compileExpressions (exprtk::symbol_table< T > &symbol_table, std::vector< std::string > const &string_expressions)
 
static void updateVariableArrayValues (std::vector< Variable > const &variables, VariableArray const &new_variable_array, VariableArray &variable_array)
 
static PropertyDataType evaluateExpressions (std::vector< Variable > const &variables, VariableArray const &new_variable_array, std::vector< exprtk::expression< double > > const &expressions, VariableArray &variable_array, std::mutex &mutex)
 
static std::vector< std::string > collectVariables (std::vector< std::string > const &value_string_expressions, std::vector< std::pair< std::string, std::vector< std::string > > > const &dvalue_string_expressions)
 
std::unique_ptr< RelPermBrooksCoreycreateRelPermBrooksCorey (BaseLib::ConfigTree const &config)
 
std::unique_ptr< RelPermBrooksCoreyNonwettingPhasecreateRelPermBrooksCoreyNonwettingPhase (BaseLib::ConfigTree const &config)
 
std::unique_ptr< RelPermGeneralizedPowercreateRelPermGeneralizedPower (BaseLib::ConfigTree const &config)
 
std::unique_ptr< RelPermGeneralizedPowerNonwettingPhasecreateRelPermGeneralizedPowerNonwettingPhase (BaseLib::ConfigTree const &config)
 
std::unique_ptr< RelPermLiakopouloscreateRelPermLiakopoulos (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateRelPermNonWettingPhaseVanGenuchtenMualem (BaseLib::ConfigTree const &config)
 
std::unique_ptr< RelPermUdellcreateRelPermUdell (BaseLib::ConfigTree const &config)
 
std::unique_ptr< RelPermUdellNonwettingPhasecreateRelPermUdellNonwettingPhase (BaseLib::ConfigTree const &config)
 
std::unique_ptr< RelPermVanGenuchtencreateRelPermVanGenuchten (BaseLib::ConfigTree const &config)
 
double computeVanGenuchtenMualemValue (const double S_L, const double S_L_r, const double S_L_max, const double m)
 
std::unique_ptr< PropertycreateLinearSaturationSwellingStress (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateSaturationWeightedThermalConductivity (int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters)
 
std::unique_ptr< PropertycreateSoilThermalConductivitySomerton (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterThermalConductivityIAPWS (BaseLib::ConfigTree const &config)
 
template<MeanType MeanType>
double computeAverage (const double, double const, double const)=delete
 
template<MeanType MeanType>
double computeDAverage (const double, double const, double const)=delete
 
template<>
double computeAverage< MeanType::ARITHMETIC_LINEAR > (const double S, double const k_dry, double const k_wet)
 
template<>
double computeDAverage< MeanType::ARITHMETIC_LINEAR > (const double, double const k_dry, double const k_wet)
 
template<>
double computeAverage< MeanType::ARITHMETIC_SQUAREROOT > (const double S, double const k_dry, double const k_wet)
 
template<>
double computeDAverage< MeanType::ARITHMETIC_SQUAREROOT > (const double S, double const k_dry, double const k_wet)
 
template<>
double computeAverage< MeanType::GEOMETRIC > (const double S, double const k_dry, double const k_wet)
 
template<>
double computeDAverage< MeanType::GEOMETRIC > (const double S, double const k_dry, double const k_wet)
 
static double computeBarLambda0Factor (const double barT)
 
static std::array< double, 5 > computeSeriesFactorTForLambda1 (const double barT)
 
static std::array< double, 6 > computeSeriesFactorRhoForLambda1 (const double bar_rho)
 
static double computeBarLambda1Factor (const std::array< double, 5 > &series_factorT, const std::array< double, 6 > &series_factorRho)
 
static double computedBarLambda_dbarT (const double barT, double bar_rho)
 
static double computedBarLambda_dbarRho (const double barT, double bar_rho)
 
std::unique_ptr< PropertycreateVapourDiffusionDeVries (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateVapourDiffusionFEBEX (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateVapourDiffusionPMQ (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateLiquidViscosityVogels (BaseLib::ConfigTree const &config)
 
std::unique_ptr< PropertycreateWaterViscosityIAPWS (BaseLib::ConfigTree const &config)
 
static double computeBarMu0Factor (const double barT)
 
static std::array< double, 6 > computeSeriesFactorTForMu1 (const double barT)
 
static std::array< double, 7 > computeSeriesFactorRhoForMu1 (const double bar_rho)
 
static double computeBarMu1Factor (const std::array< double, 6 > &series_factorT, const std::array< double, 7 > &series_factorRho)
 
static double computedBarMu_dbarT (const double barT, double bar_rho)
 
static double computedBarMu_dbarRho (const double barT, double bar_rho)
 
double computeTemperature (double const pi, double const eta)
 
PropertyDataType fromVector (std::vector< double > const &values)
 
void overwriteExistingProperties (PropertyArray &properties, PropertyArray &new_properties, std::variant< Medium *, Phase *, Component * > scale_pointer)
 
void updatePropertiesForAllPhases (PropertyArray &properties, std::vector< std::unique_ptr< Phase > > const &phases)
 
PropertyType convertStringToProperty (std::string const &string)
 
void checkVanGenuchtenExponentRange (const double m)
 
template<int GlobalDim>
Eigen::Matrix< double, GlobalDim, GlobalDim > formEffectiveThermalConductivity (MaterialPropertyLib::PropertyDataType const &solid_thermal_conductivity, const double fluid_thermal_conductivity, const double porosity)
 
template Eigen::Matrix< double, 1, 1 > formEffectiveThermalConductivity< 1 > (MaterialPropertyLib::PropertyDataType const &solid_thermal_conductivity, const double fluid_thermal_conductivity, const double porosity)
 
template Eigen::Matrix< double, 2, 2 > formEffectiveThermalConductivity< 2 > (MaterialPropertyLib::PropertyDataType const &solid_thermal_conductivity, const double fluid_thermal_conductivity, const double porosity)
 
template Eigen::Matrix< double, 3, 3 > formEffectiveThermalConductivity< 3 > (MaterialPropertyLib::PropertyDataType const &solid_thermal_conductivity, const double fluid_thermal_conductivity, const double porosity)
 
template<int GlobalDim>
Eigen::Matrix< double, GlobalDim, GlobalDim > formEigenTensor (MaterialPropertyLib::PropertyDataType const &values)
 
template Eigen::Matrix< double, 1, 1 > formEigenTensor< 1 > (MaterialPropertyLib::PropertyDataType const &values)
 
template Eigen::Matrix< double, 2, 2 > formEigenTensor< 2 > (MaterialPropertyLib::PropertyDataType const &values)
 
template Eigen::Matrix< double, 3, 3 > formEigenTensor< 3 > (MaterialPropertyLib::PropertyDataType const &values)
 
template Eigen::Matrix< double, 4, 4 > formEigenTensor< 4 > (MaterialPropertyLib::PropertyDataType const &values)
 
template Eigen::Matrix< double, 6, 6 > formEigenTensor< 6 > (MaterialPropertyLib::PropertyDataType const &values)
 
template<int GlobalDim>
Eigen::Matrix< double, GlobalDim, 1 > formEigenVector (MaterialPropertyLib::PropertyDataType const &values)
 
template Eigen::Matrix< double, 1, 1 > formEigenVector< 1 > (MaterialPropertyLib::PropertyDataType const &values)
 
template Eigen::Matrix< double, 2, 1 > formEigenVector< 2 > (MaterialPropertyLib::PropertyDataType const &values)
 
template Eigen::Matrix< double, 3, 1 > formEigenVector< 3 > (MaterialPropertyLib::PropertyDataType const &values)
 
template<int GlobalDim>
MathLib::KelvinVector::KelvinVectorType< GlobalDim > formKelvinVector (MaterialPropertyLib::PropertyDataType const &values)
 A function to form a Kelvin vector from strain or stress alike property like thermal expansivity for thermal strain.
 
template MathLib::KelvinVector::KelvinVectorType< 2 > formKelvinVector< 2 > (MaterialPropertyLib::PropertyDataType const &values)
 
template MathLib::KelvinVector::KelvinVectorType< 3 > formKelvinVector< 3 > (MaterialPropertyLib::PropertyDataType const &values)
 
double getLiquidThermalExpansivity (Phase const &phase, VariableArray const &vars, const double density, ParameterLib::SpatialPosition const &pos, double const t, double const dt)
 
template<int GlobalDim>
SymmetricTensor< GlobalDim > getSymmetricTensor (MaterialPropertyLib::PropertyDataType const &values)
 
template Eigen::Matrix< double, 4, 1 > getSymmetricTensor< 2 > (MaterialPropertyLib::PropertyDataType const &values)
 
template Eigen::Matrix< double, 6, 1 > getSymmetricTensor< 3 > (MaterialPropertyLib::PropertyDataType const &values)
 
constexpr int tensorSize (int dim)
 See Tensor type for details.
 
Variable convertStringToVariable (std::string const &string)
 
static VariableArray::VariablePointer dropConst (VariableArray::VariablePointerConst const const_pointer)
 

Variables

const MaterialLib::Fluid::DimensionLessGibbsFreeEnergyRegion1 gibbs_free_energy_
 
static constexpr double ref_T_ = 1386
 reference temperature in K.
 
static constexpr double ref_p_ = 1.653e7
 reference pressure in Pa.
 
constexpr double T_c
 Critical temperature.
 
constexpr double alpha = 1. / 8.
 
constexpr double beta = 1. / 3.
 
constexpr double Delta = 0.79 - beta
 
constexpr std::array c
 
static const double Li [5]
 
static const double Lij [5][6]
 
static const double Hi [4] = {1.67752, 2.20462, 0.6366564, -0.241605}
 
static const double Hij [6][7]
 
static constexpr std::array n_T
 
static constexpr std::array I_T
 
static constexpr std::array J_T
 
static const std::array< std::string, PropertyType::number_of_propertiesproperty_enum_to_string
 
static constexpr const char error_info []
 
template<int GlobalDim>
constexpr int symmetric_tensor_size
 
static const std::array< std::string, static_cast< int >(Variable::number_of_variables)> variable_enum_to_string
 
static const VariableArray EmptyVariableArray {}
 

Typedef Documentation

◆ PropertyArray

Initial value:
std::array<std::unique_ptr<Property>, PropertyType::number_of_properties>

This data type is based on a std::array. It can hold pointers to objects of class Property or its inheritors. The size of this array is determined by the number of entries of the PropertyType enumerator.

Definition at line 42 of file CreateProperty.h.

◆ PropertyDataType

Initial value:
std::variant<double, Eigen::Matrix<double, 2, 1>,
Eigen::Matrix<double, 3, 1>, Eigen::Matrix<double, 2, 2>,
Eigen::Matrix<double, 3, 3>, Eigen::Matrix<double, 4, 1>,
Eigen::Matrix<double, 6, 1>, Eigen::MatrixXd>

Definition at line 31 of file Property.h.

◆ SymmetricTensor

template<int GlobalDim>
using MaterialPropertyLib::SymmetricTensor
Initial value:
Eigen::Matrix<double, symmetric_tensor_size<GlobalDim>, 1>

Definition at line 26 of file GetSymmetricTensor.h.

◆ Tensor

template<int Dim>
using MaterialPropertyLib::Tensor = Eigen::Matrix<double, tensorSize(Dim), 1>

The tensor's components in 3D case are ordered in the usual way: (1,1), (1,2), (1,3) (2,1), (2,2), (2,3) (3,1), (3,2), (3,3).

For the 2D case the 2x2 block is as usual and is followed by the (3,3) component: (1,1), (1,2), (2,1), (2,2), (3,3).

For the 1D case only the diagonal is stored: (1,1), (2,2), (3,3).

Definition at line 52 of file Tensor.h.

◆ VariableType

Initial value:
std::variant<std::monostate,
double,
Eigen::Vector<double, 4>,
Eigen::Vector<double, 5>,
Eigen::Vector<double, 6>,
Eigen::Vector<double, 9>>

Data type for primary variables, designed to contain both scalar and vector data.

Definition at line 89 of file VariableType.h.

Enumeration Type Documentation

◆ MeanType

enum class MaterialPropertyLib::MeanType
strong
Enumerator
ARITHMETIC_LINEAR 
ARITHMETIC_SQUAREROOT 
GEOMETRIC 

Definition at line 28 of file SaturationWeightedThermalConductivity.h.

◆ PropertyType

PropertyType is an enumerator list of all known properties of a substance. This includes all properties on all scales (i.e. component, phase, and medium scales). It is used as an index for the PropertyArray of the materials. If a necessary property is not in the list, simply add a new one in alphabetical order (of course, except for the last entry). Please note that any of these entries must also appear in below convert functions.

Enumerator
acentric_factor 
binary_interaction_coefficient 
biot_coefficient 
bishops_effective_stress 
brooks_corey_exponent 
bulk_modulus 
capillary_pressure 
critical_density 
critical_pressure 
critical_temperature 
compressibility 
concentration 

used to specify decay rate of a substance.

decay_rate 
density 
diffusion 
drhodT 
effective_stress 
enthalpy 
entry_pressure 
evaporation_enthalpy 
fredlund_parameters 
heat_capacity 
henry_coefficient 
longitudinal_dispersivity 

used to compute the hydrodynamic dispersion tensor.

molality 
molar_mass 
molar_volume 
mole_fraction 
molecular_diffusion 

ion diffusivity in free water.

name 
permeability 
phase_change_expansivity 
phase_velocity 
pore_diffusion 

ion diffusivity in the porous medium with account of the effect of tortuosity and connectivity.

poissons_ratio 
porosity 
reference_density 
reference_temperature 
reference_pressure 
relative_permeability 
relative_permeability_nonwetting_phase 
residual_gas_saturation 
residual_liquid_saturation 
retardation_factor 

specify retardation factor used in component transport process.

saturation 
saturation_density 
saturation_enthalpy 
saturation_micro 

capillary pressure saturation relationship for microstructure.

saturation_temperature 
specific_heat_capacity 
specific_latent_heat 
storage 
storage_contribution 
swelling_stress_rate 
temperature 
thermal_conductivity 
thermal_diffusion_enhancement_factor 

Thermal diffusion enhancement factor for water vapor flow.

thermal_expansivity 

The thermal expansivity corresponds to the linear thermal expansion coefficient for a solid and to the volumetric thermal expansion coefficient for a fluid

thermal_expansivity_contribution 
thermal_longitudinal_dispersivity 
thermal_osmosis_coefficient 
thermal_transversal_dispersivity 
tortuosity 
transport_porosity 
transversal_dispersivity 

used to compute the hydrodynamic dispersion tensor.

vapour_pressure 
viscosity 
volume_fraction 
youngs_modulus 
number_of_properties 

Definition at line 32 of file PropertyType.h.

33{
48 density,
50 drhodT,
66 name,
92 storage,
112 viscosity,
116};
@ molecular_diffusion
ion diffusivity in free water.
@ thermal_diffusion_enhancement_factor
Thermal diffusion enhancement factor for water vapor flow.
@ saturation_micro
capillary pressure saturation relationship for microstructure.
@ relative_permeability_nonwetting_phase
@ longitudinal_dispersivity
used to compute the hydrodynamic dispersion tensor.
@ concentration
used to specify decay rate of a substance.
@ transversal_dispersivity
used to compute the hydrodynamic dispersion tensor.
@ retardation_factor
specify retardation factor used in component transport process.

◆ Variable

enum class MaterialPropertyLib::Variable : int
strong

Enum Variable is simply a list of all commonly used variables. If the variable of your choice is missing, simply add it somewhere at the list, but above the last entry.

Enumerator
capillary_pressure 
concentration 
deformation_gradient 
density 
effective_pore_pressure 
enthalpy 
enthalpy_of_evaporation 
equivalent_plastic_strain 
grain_compressibility 
liquid_phase_pressure 
liquid_saturation 
mechanical_strain 
molar_mass 
molar_mass_derivative 
molar_fraction 
gas_phase_pressure 
porosity 
solid_grain_pressure 
stress 
temperature 
total_strain 
total_stress 
transport_porosity 
vapour_pressure 
volumetric_strain 
number_of_variables 

Definition at line 29 of file VariableType.h.

30{
34 density,
49 stress,
56 number_of_variables
57};

Function Documentation

◆ checkMaterialSpatialDistributionMap()

template<typename ContainerMedium , typename ContainerSolid , typename ContainerLiquid , typename ContainerGas >
void MaterialPropertyLib::checkMaterialSpatialDistributionMap ( MeshLib::Mesh const & mesh,
MaterialPropertyLib::MaterialSpatialDistributionMap const & media_map,
ContainerMedium const & required_properties_medium,
ContainerSolid const & required_properties_solid_phase,
ContainerLiquid const & required_properties_liquid_phase,
ContainerGas const & required_properties_gas_phase )

Definition at line 23 of file CheckMaterialSpatialDistributionMap.h.

30{
31 for (auto const element_id : mesh.getElements() | MeshLib::views::ids)
32 {
33 auto const& medium = *media_map.getMedium(element_id);
34 if (!required_properties_medium.empty())
35 {
37 medium, required_properties_medium);
38 }
39 if (!required_properties_liquid_phase.empty())
40 {
42 medium.phase("AqueousLiquid"),
43 required_properties_liquid_phase);
44 }
45 if (!required_properties_gas_phase.empty())
46 {
48 medium.phase("Gas"), required_properties_gas_phase);
49 }
50 if (!required_properties_solid_phase.empty())
51 {
53 medium.phase("Solid"), required_properties_solid_phase);
54 }
55 }
56}
void checkRequiredProperties(Component const &c, std::span< PropertyType const > const required_properties)
Definition Component.cpp:60

References checkRequiredProperties(), MeshLib::Mesh::getElements(), MaterialPropertyLib::MaterialSpatialDistributionMap::getMedium(), and MeshLib::views::ids.

Referenced by ProcessLib::HeatConduction::checkMPLProperties(), ProcessLib::HT::checkMPLProperties(), ProcessLib::LiquidFlow::checkMPLProperties(), ProcessLib::RichardsFlow::checkMPLProperties(), ProcessLib::SteadyStateDiffusion::checkMPLProperties(), and ProcessLib::WellboreSimulator::checkMPLProperties().

◆ checkRequiredProperties() [1/3]

void MaterialPropertyLib::checkRequiredProperties ( Component const & c,
std::span< PropertyType const > const required_properties )

Definition at line 60 of file Component.cpp.

62{
63 for (auto const& p : required_properties)
64 {
65 if (!c.hasProperty(p))
66 {
67 OGS_FATAL("The property '{:s}' is missing in the component '{:s}'.",
68 property_enum_to_string[p], c.name);
69 }
70 }
71}
#define OGS_FATAL(...)
Definition Error.h:26

References c, OGS_FATAL, and property_enum_to_string.

Referenced by checkMaterialSpatialDistributionMap().

◆ checkRequiredProperties() [2/3]

void MaterialPropertyLib::checkRequiredProperties ( Medium const & medium,
std::span< PropertyType const > const required_properties )

Definition at line 85 of file Medium.cpp.

88{
89 for (auto const& p : required_properties)
90 {
91 if (!medium.hasProperty(p))
92 {
94 "The property '{:s}' is missing in the medium definition.",
95 property_enum_to_string[p]);
96 }
97 }
98}

References MaterialPropertyLib::Medium::hasProperty(), OGS_FATAL, and property_enum_to_string.

◆ checkRequiredProperties() [3/3]

void MaterialPropertyLib::checkRequiredProperties ( Phase const & phase,
std::span< PropertyType const > const required_properties )

Definition at line 84 of file Phase.cpp.

86{
87 for (auto const& p : required_properties)
88 {
89 if (!phase.hasProperty(p))
90 {
91 OGS_FATAL("The property '{:s}' is missing in the {:s} phase.",
92 property_enum_to_string[p], phase.name);
93 }
94 }
95}

References MaterialPropertyLib::Phase::hasProperty(), MaterialPropertyLib::Phase::name, OGS_FATAL, and property_enum_to_string.

◆ checkSaturationRange()

void MaterialPropertyLib::checkSaturationRange ( const double Sl)

Definition at line 24 of file CapillaryPressureRegularizedVanGenuchten.cpp.

25{
26 if (Sl < 0 || Sl > 1)
27 {
28 OGS_FATAL("The saturation of {:e} is out of its range of [0, 1]", Sl);
29 }
30}

References OGS_FATAL.

Referenced by MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::dValue(), and MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::value().

◆ checkVanGenuchtenExponentRange()

void MaterialPropertyLib::checkVanGenuchtenExponentRange ( const double m)

Definition at line 18 of file CheckVanGenuchtenExponentRange.cpp.

19{
20 if (m <= 0 || m >= 1)
21 {
23 "The exponent value m = {:e} of van Genuchten saturation model, is "
24 "out of its range of(0, 1) ",
25 m);
26 }
27}

References OGS_FATAL.

Referenced by MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::CapillaryPressureRegularizedVanGenuchten(), and MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::RelPermNonWettingPhaseVanGenuchtenMualem().

◆ collectVariables()

static std::vector< std::string > MaterialPropertyLib::collectVariables ( std::vector< std::string > const & value_string_expressions,
std::vector< std::pair< std::string, std::vector< std::string > > > const & dvalue_string_expressions )
static

Definition at line 293 of file Function.cpp.

297{
298 std::vector<std::string> variables;
299
300 auto collect_variables = [&](auto string_expressions)
301 {
302 for (auto const& string_expression : string_expressions)
303 {
304 if (!exprtk::collect_variables(string_expression, variables))
305 {
306 OGS_FATAL(
307 "Collecting variables from expression '{}' didn't work.",
308 string_expression);
309 }
310 }
311 };
312
313 collect_variables(value_string_expressions);
314 for (auto const& var_name_string_expression : dvalue_string_expressions)
315 {
316 collect_variables(var_name_string_expression.second);
317 }
318
319 BaseLib::makeVectorUnique(variables);
320 return variables;
321}
void makeVectorUnique(std::vector< T > &v)
Definition Algorithm.h:176

References BaseLib::makeVectorUnique(), and OGS_FATAL.

Referenced by MaterialPropertyLib::Function::Function().

◆ compileExpressions()

template<typename T >
static std::vector< exprtk::expression< T > > MaterialPropertyLib::compileExpressions ( exprtk::symbol_table< T > & symbol_table,
std::vector< std::string > const & string_expressions )
static

Definition at line 27 of file Function.cpp.

30{
31 exprtk::parser<T> parser;
32
33 std::vector<exprtk::expression<T>> expressions(string_expressions.size());
34 for (unsigned i = 0; i < string_expressions.size(); ++i)
35 {
36 expressions[i].register_symbol_table(symbol_table);
37 if (!parser.compile(string_expressions[i], expressions[i]))
38 {
39 OGS_FATAL("Error: {:s}\tExpression: {:s}\n",
40 parser.error(),
41 string_expressions[i]);
42 }
43 }
44 return expressions;
45}

References OGS_FATAL.

Referenced by MaterialPropertyLib::Function::Implementation< D >::Implementation().

◆ computeAverage()

template<MeanType MeanType>
double MaterialPropertyLib::computeAverage ( const double ,
double const ,
double const  )
delete

◆ computeAverage< MeanType::ARITHMETIC_LINEAR >()

template<>
double MaterialPropertyLib::computeAverage< MeanType::ARITHMETIC_LINEAR > ( const double S,
double const k_dry,
double const k_wet )

Definition at line 38 of file SaturationWeightedThermalConductivity.cpp.

41{
42 return k_dry * (1.0 - S) + k_wet * S;
43}

◆ computeAverage< MeanType::ARITHMETIC_SQUAREROOT >()

template<>
double MaterialPropertyLib::computeAverage< MeanType::ARITHMETIC_SQUAREROOT > ( const double S,
double const k_dry,
double const k_wet )

Definition at line 54 of file SaturationWeightedThermalConductivity.cpp.

57{
58 return k_dry + std::sqrt(S) * (k_wet - k_dry);
59}

◆ computeAverage< MeanType::GEOMETRIC >()

template<>
double MaterialPropertyLib::computeAverage< MeanType::GEOMETRIC > ( const double S,
double const k_dry,
double const k_wet )

Definition at line 70 of file SaturationWeightedThermalConductivity.cpp.

72{
73 return k_dry * std::pow(k_wet / k_dry, S);
74}

◆ computeBarLambda0Factor()

double MaterialPropertyLib::computeBarLambda0Factor ( const double barT)
static

Definition at line 88 of file WaterThermalConductivityIAPWS.cpp.

89{
90 double sum_val = 0.;
91 double barT_i = 1.;
92 for (double value : Li)
93 {
94 sum_val += (value / barT_i);
95 barT_i *= barT;
96 }
97 return sum_val;
98}

References Li.

Referenced by computedBarLambda_dbarRho(), computedBarLambda_dbarT(), and MaterialPropertyLib::WaterThermalConductivityIAPWS::value().

◆ computeBarLambda1Factor()

double MaterialPropertyLib::computeBarLambda1Factor ( const std::array< double, 5 > & series_factorT,
const std::array< double, 6 > & series_factorRho )
static

Definition at line 125 of file WaterThermalConductivityIAPWS.cpp.

127{
128 double sum_val = 0.;
129 for (int i = 0; i < 5; i++)
130 {
131 double sum_val_j = 0;
132 for (int j = 0; j < 6; j++)
133 {
134 sum_val_j += Lij[i][j] * series_factorRho[j];
135 }
136 sum_val += series_factorT[i] * sum_val_j;
137 }
138
139 return sum_val;
140}
static const double Lij[5][6]

References Lij.

Referenced by computedBarLambda_dbarRho(), computedBarLambda_dbarT(), and MaterialPropertyLib::WaterThermalConductivityIAPWS::value().

◆ computeBarMu0Factor()

double MaterialPropertyLib::computeBarMu0Factor ( const double barT)
static

Definition at line 81 of file WaterViscosityIAPWS.cpp.

82{
83 double sum_val = 0.;
84 double barT_i = 1.;
85 for (double value : Hi)
86 {
87 sum_val += (value / barT_i);
88 barT_i *= barT;
89 }
90 return sum_val;
91}
static const double Hi[4]

References Hi.

Referenced by computedBarMu_dbarRho(), computedBarMu_dbarT(), and MaterialPropertyLib::WaterViscosityIAPWS::value().

◆ computeBarMu1Factor()

double MaterialPropertyLib::computeBarMu1Factor ( const std::array< double, 6 > & series_factorT,
const std::array< double, 7 > & series_factorRho )
static

Definition at line 118 of file WaterViscosityIAPWS.cpp.

120{
121 double sum_val = 0.;
122 for (int i = 0; i < 6; i++)
123 {
124 double sum_val_j = 0;
125 for (int j = 0; j < 7; j++)
126 {
127 sum_val_j += Hij[i][j] * series_factorRho[j];
128 }
129 sum_val += series_factorT[i] * sum_val_j;
130 }
131
132 return sum_val;
133}
static const double Hij[6][7]

References Hij.

Referenced by computedBarMu_dbarRho(), computedBarMu_dbarT(), and MaterialPropertyLib::WaterViscosityIAPWS::value().

◆ computeDAverage()

template<MeanType MeanType>
double MaterialPropertyLib::computeDAverage ( const double ,
double const ,
double const  )
delete

◆ computeDAverage< MeanType::ARITHMETIC_LINEAR >()

template<>
double MaterialPropertyLib::computeDAverage< MeanType::ARITHMETIC_LINEAR > ( const double ,
double const k_dry,
double const k_wet )

Definition at line 46 of file SaturationWeightedThermalConductivity.cpp.

49{
50 return k_wet - k_dry;
51}

◆ computeDAverage< MeanType::ARITHMETIC_SQUAREROOT >()

template<>
double MaterialPropertyLib::computeDAverage< MeanType::ARITHMETIC_SQUAREROOT > ( const double S,
double const k_dry,
double const k_wet )

Definition at line 62 of file SaturationWeightedThermalConductivity.cpp.

65{
66 return 0.5 * (k_wet - k_dry) / std::sqrt(S);
67}

◆ computeDAverage< MeanType::GEOMETRIC >()

template<>
double MaterialPropertyLib::computeDAverage< MeanType::GEOMETRIC > ( const double S,
double const k_dry,
double const k_wet )

Definition at line 77 of file SaturationWeightedThermalConductivity.cpp.

79{
80 return k_dry * std::pow(k_wet / k_dry, S) * std::log(k_wet / k_dry);
81}

◆ computedBarLambda_dbarRho()

double MaterialPropertyLib::computedBarLambda_dbarRho ( const double barT,
double bar_rho )
static

Definition at line 184 of file WaterThermalConductivityIAPWS.cpp.

185{
186 const auto& series_factorT = computeSeriesFactorTForLambda1(barT);
187 const auto& series_factorRho = computeSeriesFactorRhoForLambda1(bar_rho);
188
189 double dlambda1_factor_dbar_rho = 0.0;
190 for (int i = 0; i < 5; i++)
191 {
192 double sum_val_j = 0;
193 for (int j = 1; j < 6; j++)
194 {
195 sum_val_j +=
196 static_cast<double>(j) * Lij[i][j] * series_factorRho[j - 1];
197 }
198 dlambda1_factor_dbar_rho += series_factorT[i] * sum_val_j;
199 }
200
201 const double lambda0 = std::sqrt(barT) / computeBarLambda0Factor(barT);
202
203 const double lambda1_factor =
204 computeBarLambda1Factor(series_factorT, series_factorRho);
205 return lambda0 * std::exp(bar_rho * lambda1_factor) *
206 (lambda1_factor + bar_rho * dlambda1_factor_dbar_rho);
207}
static double computeBarLambda1Factor(const std::array< double, 5 > &series_factorT, const std::array< double, 6 > &series_factorRho)
static std::array< double, 6 > computeSeriesFactorRhoForLambda1(const double bar_rho)
static double computeBarLambda0Factor(const double barT)
static std::array< double, 5 > computeSeriesFactorTForLambda1(const double barT)

References computeBarLambda0Factor(), computeBarLambda1Factor(), computeSeriesFactorRhoForLambda1(), computeSeriesFactorTForLambda1(), and Lij.

Referenced by MaterialPropertyLib::WaterThermalConductivityIAPWS::dValue().

◆ computedBarLambda_dbarT()

double MaterialPropertyLib::computedBarLambda_dbarT ( const double barT,
double bar_rho )
static

Definition at line 142 of file WaterThermalConductivityIAPWS.cpp.

143{
144 const double lambda0_factor = computeBarLambda0Factor(barT);
145 const double sqrt_barT = std::sqrt(barT);
146
147 double dlambda0_factor_dbarT = 0.0;
148 double barT_i = barT * barT;
149 for (int i = 1; i < 5; i++)
150 {
151 dlambda0_factor_dbarT -= static_cast<double>(i) * (Li[i] / barT_i);
152 barT_i *= barT;
153 }
154
155 const double dbar_lambda0_dbarT =
156 0.5 / (lambda0_factor * sqrt_barT) -
157 sqrt_barT * dlambda0_factor_dbarT / (lambda0_factor * lambda0_factor);
158
159 const auto& series_factorT = computeSeriesFactorTForLambda1(barT);
160 const auto& series_factorRho = computeSeriesFactorRhoForLambda1(bar_rho);
161
162 double dlambda1_factor_dbarT = 0.0;
163 for (int i = 1; i < 5; i++)
164 {
165 double sum_val_j = 0;
166 for (int j = 0; j < 6; j++)
167 {
168 sum_val_j += Lij[i][j] * series_factorRho[j];
169 }
170 dlambda1_factor_dbarT -= static_cast<double>(i) *
171 series_factorT[i - 1] * sum_val_j /
172 (barT * barT);
173 }
174
175 const double lambda1_factor =
176 computeBarLambda1Factor(series_factorT, series_factorRho);
177 const double dbar_lambda1_dbarT =
178 bar_rho * std::exp(bar_rho * lambda1_factor) * dlambda1_factor_dbarT;
179
180 return dbar_lambda0_dbarT * std::exp(bar_rho * lambda1_factor) +
181 dbar_lambda1_dbarT * sqrt_barT / lambda0_factor;
182}

References computeBarLambda0Factor(), computeBarLambda1Factor(), computeSeriesFactorRhoForLambda1(), computeSeriesFactorTForLambda1(), Li, and Lij.

Referenced by MaterialPropertyLib::WaterThermalConductivityIAPWS::dValue().

◆ computedBarMu_dbarRho()

double MaterialPropertyLib::computedBarMu_dbarRho ( const double barT,
double bar_rho )
static

Definition at line 176 of file WaterViscosityIAPWS.cpp.

177{
178 const auto& series_factorT = computeSeriesFactorTForMu1(barT);
179 const auto& series_factorRho = computeSeriesFactorRhoForMu1(bar_rho);
180
181 double dmu1_factor_dbar_rho = 0.0;
182 for (int i = 0; i < 6; i++)
183 {
184 double sum_val_j = 0;
185 for (int j = 1; j < 7; j++)
186 {
187 sum_val_j +=
188 static_cast<double>(j) * Hij[i][j] * series_factorRho[j - 1];
189 }
190 dmu1_factor_dbar_rho += series_factorT[i] * sum_val_j;
191 }
192
193 const double mu0 = 100. * std::sqrt(barT) / computeBarMu0Factor(barT);
194
195 const double mu1_factor =
196 computeBarMu1Factor(series_factorT, series_factorRho);
197 return mu0 * std::exp(bar_rho * mu1_factor) *
198 (mu1_factor + bar_rho * dmu1_factor_dbar_rho);
199}
static double computeBarMu0Factor(const double barT)
static std::array< double, 7 > computeSeriesFactorRhoForMu1(const double bar_rho)
static double computeBarMu1Factor(const std::array< double, 6 > &series_factorT, const std::array< double, 7 > &series_factorRho)
static std::array< double, 6 > computeSeriesFactorTForMu1(const double barT)

References computeBarMu0Factor(), computeBarMu1Factor(), computeSeriesFactorRhoForMu1(), computeSeriesFactorTForMu1(), and Hij.

Referenced by MaterialPropertyLib::WaterViscosityIAPWS::dValue().

◆ computedBarMu_dbarT()

double MaterialPropertyLib::computedBarMu_dbarT ( const double barT,
double bar_rho )
static

Definition at line 135 of file WaterViscosityIAPWS.cpp.

136{
137 const double mu0_factor = computeBarMu0Factor(barT);
138 const double sqrt_barT = std::sqrt(barT);
139
140 double dmu0_factor_dbarT = 0.0;
141 double barT_i = barT * barT;
142 for (int i = 1; i < 4; i++)
143 {
144 dmu0_factor_dbarT -= static_cast<double>(i) * (Hi[i] / barT_i);
145 barT_i *= barT;
146 }
147
148 const double dbar_mu0_dbarT =
149 50. / (mu0_factor * sqrt_barT) -
150 100. * sqrt_barT * dmu0_factor_dbarT / (mu0_factor * mu0_factor);
151
152 const auto& series_factorT = computeSeriesFactorTForMu1(barT);
153 const auto& series_factorRho = computeSeriesFactorRhoForMu1(bar_rho);
154
155 double dmu1_factor_dbarT = 0.0;
156 for (int i = 1; i < 6; i++)
157 {
158 double sum_val_j = 0;
159 for (int j = 0; j < 7; j++)
160 {
161 sum_val_j += Hij[i][j] * series_factorRho[j];
162 }
163 dmu1_factor_dbarT -= static_cast<double>(i) * series_factorT[i - 1] *
164 sum_val_j / (barT * barT);
165 }
166
167 const double mu1_factor =
168 computeBarMu1Factor(series_factorT, series_factorRho);
169 const double dbar_mu1_dbarT =
170 bar_rho * std::exp(bar_rho * mu1_factor) * dmu1_factor_dbarT;
171
172 return dbar_mu0_dbarT * std::exp(bar_rho * mu1_factor) +
173 dbar_mu1_dbarT * 100. * sqrt_barT / mu0_factor;
174}

References computeBarMu0Factor(), computeBarMu1Factor(), computeSeriesFactorRhoForMu1(), computeSeriesFactorTForMu1(), Hi, and Hij.

Referenced by MaterialPropertyLib::WaterViscosityIAPWS::dValue().

◆ computeSeriesFactorRhoForLambda1()

std::array< double, 6 > MaterialPropertyLib::computeSeriesFactorRhoForLambda1 ( const double bar_rho)
static

Definition at line 113 of file WaterThermalConductivityIAPWS.cpp.

114{
115 std::array<double, 6> series_factorRho;
116 series_factorRho[0] = 1.;
117 for (int i = 1; i < 6; i++)
118 {
119 series_factorRho[i] = series_factorRho[i - 1] * (bar_rho - 1.0);
120 }
121
122 return series_factorRho;
123}

Referenced by computedBarLambda_dbarRho(), computedBarLambda_dbarT(), and MaterialPropertyLib::WaterThermalConductivityIAPWS::value().

◆ computeSeriesFactorRhoForMu1()

std::array< double, 7 > MaterialPropertyLib::computeSeriesFactorRhoForMu1 ( const double bar_rho)
static

Definition at line 106 of file WaterViscosityIAPWS.cpp.

107{
108 std::array<double, 7> series_factorRho;
109 series_factorRho[0] = 1.;
110 for (int i = 1; i < 7; i++)
111 {
112 series_factorRho[i] = series_factorRho[i - 1] * (bar_rho - 1.0);
113 }
114
115 return series_factorRho;
116}

Referenced by computedBarMu_dbarRho(), computedBarMu_dbarT(), and MaterialPropertyLib::WaterViscosityIAPWS::value().

◆ computeSeriesFactorTForLambda1()

std::array< double, 5 > MaterialPropertyLib::computeSeriesFactorTForLambda1 ( const double barT)
static

Definition at line 100 of file WaterThermalConductivityIAPWS.cpp.

101{
102 std::array<double, 5> series_factorT;
103 series_factorT[0] = 1.;
104 const double barT_fac = 1 / barT - 1.0;
105 for (int i = 1; i < 5; i++)
106 {
107 series_factorT[i] = series_factorT[i - 1] * barT_fac;
108 }
109
110 return series_factorT;
111}

Referenced by computedBarLambda_dbarRho(), computedBarLambda_dbarT(), and MaterialPropertyLib::WaterThermalConductivityIAPWS::value().

◆ computeSeriesFactorTForMu1()

std::array< double, 6 > MaterialPropertyLib::computeSeriesFactorTForMu1 ( const double barT)
static

Definition at line 93 of file WaterViscosityIAPWS.cpp.

94{
95 std::array<double, 6> series_factorT;
96 series_factorT[0] = 1.;
97 const double barT_fac = 1 / barT - 1.0;
98 for (int i = 1; i < 6; i++)
99 {
100 series_factorT[i] = series_factorT[i - 1] * barT_fac;
101 }
102
103 return series_factorT;
104}

Referenced by computedBarMu_dbarRho(), computedBarMu_dbarT(), and MaterialPropertyLib::WaterViscosityIAPWS::value().

◆ computeTemperature()

double MaterialPropertyLib::computeTemperature ( double const pi,
double const eta )

Definition at line 35 of file WaterTemperatureIAPWSIF97Region1.cpp.

36{
37 double val = 0.;
38 for (int i = 0; i < 20; i++)
39 {
40 val += n_T[i] * std::pow(pi, I_T[i]) * std::pow(eta + 1, J_T[i]);
41 }
42
43 return val;
44}
static constexpr std::array n_T

References I_T, J_T, and n_T.

Referenced by MaterialPropertyLib::WaterTemperatureIAPWSIF97Region1::value().

◆ computeVanGenuchtenMualemValue()

double MaterialPropertyLib::computeVanGenuchtenMualemValue ( const double S_L,
const double S_L_r,
const double S_L_max,
const double m )

Definition at line 25 of file RelPermNonWettingPhaseVanGenuchtenMualem.cpp.

27{
28 const double Se = (S_L - S_L_r) / (S_L_max - S_L_r);
29 return std::sqrt(1.0 - Se) * std::pow(1.0 - std::pow(Se, 1.0 / m), 2.0 * m);
30}

Referenced by MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::computeSaturationForMinimumRelativePermeability(), and MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::value().

◆ convertStringToProperty()

PropertyType MaterialPropertyLib::convertStringToProperty ( std::string const & string)

This function converts a string (e.g. a string from the configuration-tree) into one of the entries of the PropertyType enumerator.

Definition at line 18 of file PropertyType.cpp.

19{
20 for (int i = 0; i < static_cast<int>(PropertyType::number_of_properties);
21 ++i)
22 {
23 if (boost::iequals(string, property_enum_to_string[i]))
24 {
25 return static_cast<PropertyType>(i);
26 }
27 }
28
30 "The property name '{:s}' does not correspond to any known property",
31 string);
32}

References number_of_properties, OGS_FATAL, and property_enum_to_string.

Referenced by MaterialPropertyLib::VolumeFractionAverage::VolumeFractionAverage(), and createProperties().

◆ convertStringToVariable()

Variable MaterialPropertyLib::convertStringToVariable ( std::string const & string)

This function converts a string (e.g. a string from the configuration-tree) into one of the entries of the Variable enumerator.

Definition at line 27 of file VariableType.cpp.

28{
29 for (int i = 0; i < static_cast<int>(Variable::number_of_variables); ++i)
30 {
31 if (boost::iequals(string, variable_enum_to_string[i]))
32 {
33 return static_cast<Variable>(i);
34 }
35 }
36
38 "The variable name '{:s}' does not correspond to any known variable",
39 string);
40}

References number_of_variables, OGS_FATAL, and variable_enum_to_string.

Referenced by MaterialPropertyLib::Function::Function(), MaterialPropertyLib::Function::Implementation< D >::Implementation(), createCurve(), createExponential(), createLinear(), and MaterialPropertyLib::Function::Implementation< D >::createSymbolTable().

◆ createAverageMolarMass()

std::unique_ptr< AverageMolarMass > MaterialPropertyLib::createAverageMolarMass ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__AverageMolarMass

Definition at line 18 of file CreateAverageMolarMass.cpp.

20{
22 config.checkConfigParameter("type", "AverageMolarMass");
23
25 auto property_name = config.peekConfigParameter<std::string>("name");
26
27 DBUG("Create AverageMolarMass medium property");
29 return std::make_unique<AverageMolarMass>(std::move(property_name));
30}
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:30

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createBishopsPowerLaw()

std::unique_ptr< BishopsPowerLaw > MaterialPropertyLib::createBishopsPowerLaw ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__BishopsPowerLaw__exponent

Definition at line 15 of file CreateBishopsPowerLaw.cpp.

17{
19 config.checkConfigParameter("type", "BishopsPowerLaw");
20
21 // Second access for storage.
23 auto property_name = config.peekConfigParameter<std::string>("name");
24
25 DBUG("Create BishopsPowerLaw property {:s}.", property_name);
26
27 auto const exponent =
29 config.getConfigParameter<double>("exponent");
30
31 return std::make_unique<MaterialPropertyLib::BishopsPowerLaw>(
32 std::move(property_name), exponent);
33}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createBishopsSaturationCutoff()

std::unique_ptr< BishopsSaturationCutoff > MaterialPropertyLib::createBishopsSaturationCutoff ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__BishopsSaturationCutoff__cutoff_value

Definition at line 15 of file CreateBishopsSaturationCutoff.cpp.

17{
19 config.checkConfigParameter("type", "BishopsSaturationCutoff");
20
21 // Second access for storage.
23 auto property_name = config.peekConfigParameter<std::string>("name");
24
25 DBUG("Create BishopsSaturationCutoff property {:s}.", property_name);
26
27 auto const cutoff_value =
29 config.getConfigParameter<double>("cutoff_value");
30
31 return std::make_unique<MaterialPropertyLib::BishopsSaturationCutoff>(
32 std::move(property_name), cutoff_value);
33}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createCapillaryPressureRegularizedVanGenuchten()

std::unique_ptr< Property > MaterialPropertyLib::createCapillaryPressureRegularizedVanGenuchten ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__CapillaryPressureRegularizedVanGenuchten__residual_liquid_saturation
Input File Parameter
properties__property__CapillaryPressureRegularizedVanGenuchten__residual_gas_saturation
Input File Parameter
properties__property__CapillaryPressureRegularizedVanGenuchten__exponent
Input File Parameter
properties__property__CapillaryPressureRegularizedVanGenuchten__p_b

Definition at line 20 of file CreateCapillaryPressureRegularizedVanGenuchten.cpp.

22{
24 config.checkConfigParameter("type",
25 "CapillaryPressureRegularizedVanGenuchten");
26
27 DBUG("Create CapillaryPressureRegularizedVanGenuchten medium property");
28
31 config.getConfigParameter<double>("residual_liquid_saturation");
32 auto const maximum_liquid_saturation =
33 1.0 -
35 config.getConfigParameter<double>("residual_gas_saturation");
36 auto const exponent =
38 config.getConfigParameter<double>("exponent");
39 auto const p_b =
41 config.getConfigParameter<double>("p_b");
42
43 return std::make_unique<CapillaryPressureRegularizedVanGenuchten>(
44 residual_liquid_saturation, maximum_liquid_saturation, exponent, p_b);
45}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), and residual_liquid_saturation.

◆ createCapillaryPressureVanGenuchten()

std::unique_ptr< Property > MaterialPropertyLib::createCapillaryPressureVanGenuchten ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__CapillaryPressureVanGenuchten__residual_liquid_saturation
Input File Parameter
properties__property__CapillaryPressureVanGenuchten__residual_gas_saturation
Input File Parameter
properties__property__CapillaryPressureVanGenuchten__exponent
Input File Parameter
properties__property__CapillaryPressureVanGenuchten__p_b
Input File Parameter
properties__property__CapillaryPressureVanGenuchten__maximum_capillary_pressure

Definition at line 20 of file CreateCapillaryPressureVanGenuchten.cpp.

22{
24 config.checkConfigParameter("type", "CapillaryPressureVanGenuchten");
25
26 // Second access for storage.
28 auto property_name = config.peekConfigParameter<std::string>("name");
29
30 DBUG("Create CapillaryPressureVanGenuchten medium property {:s}.",
31 property_name);
32
35 config.getConfigParameter<double>("residual_liquid_saturation");
36 auto const residual_gas_saturation =
38 config.getConfigParameter<double>("residual_gas_saturation");
39 auto const exponent =
41 config.getConfigParameter<double>("exponent");
42 auto const p_b =
44 config.getConfigParameter<double>("p_b");
45 auto const maximum_capillary_pressure =
47 config.getConfigParameter<double>("maximum_capillary_pressure");
48
49 return std::make_unique<CapillaryPressureVanGenuchten>(
50 std::move(property_name), residual_liquid_saturation,
51 residual_gas_saturation, exponent, p_b, maximum_capillary_pressure);
52}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createClausiusClapeyron()

std::unique_ptr< ClausiusClapeyron > MaterialPropertyLib::createClausiusClapeyron ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__ClausiusClapeyron__triple_temperature
Input File Parameter
properties__property__ClausiusClapeyron__triple_pressure
Input File Parameter
properties__property__ClausiusClapeyron__critical_temperature
Input File Parameter
properties__property__ClausiusClapeyron__critical_pressure
Input File Parameter
properties__property__ClausiusClapeyron__reference_temperature
Input File Parameter
properties__property__ClausiusClapeyron__reference_pressure
Input File Parameter
properties__property__ClausiusClapeyron

Definition at line 18 of file CreateClausiusClapeyron.cpp.

20{
22 config.checkConfigParameter("type", "ClausiusClapeyron");
23
25 auto property_name = config.peekConfigParameter<std::string>("name");
26
27 DBUG("Create ClausiusClapeyron property {:s}.", property_name);
28
29 auto const triple_temperature =
31 config.getConfigParameter<double>("triple_temperature");
32
33 auto const triple_pressure =
35 config.getConfigParameter<double>("triple_pressure");
36
37 auto const critical_temperature =
39 config.getConfigParameter<double>("critical_temperature");
40
41 auto const critical_pressure =
43 config.getConfigParameter<double>("critical_pressure");
44
45 auto const ref_temperature =
47 config.getConfigParameter<double>("reference_temperature");
48
49 auto const ref_pressure =
51 config.getConfigParameter<double>("reference_pressure");
52
54 return std::make_unique<ClausiusClapeyron>(
55 std::move(property_name), triple_temperature, triple_pressure,
56 critical_temperature, critical_pressure, ref_temperature, ref_pressure);
57}

References BaseLib::ConfigTree::checkConfigParameter(), critical_pressure, critical_temperature, DBUG(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createComponents()

std::vector< std::unique_ptr< Component > > MaterialPropertyLib::createComponents ( int const geometry_dimension,
std::optional< BaseLib::ConfigTree > const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters,
ParameterLib::CoordinateSystem const *const local_coordinate_system,
std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & curves )

The method creates components based on config subtree.

Just like a phase, a component can have a name. But, in this case, the name has an important task. If a name is given, a specific component class referring to that name with corresponding physical material properties is created. Assigning a name is optional; If no name is given, a custom component without predefined properties is created.

Input File Parameter
prj__media__medium__phases__phase__components__component

Definition at line 75 of file CreateComponent.cpp.

83{
84 if (!config)
85 {
86 return {};
87 }
88
89 std::vector<std::unique_ptr<Component>> components;
90 for (
91 auto const& component_config :
93 config->getConfigSubtreeList("component"))
94 {
95 auto component =
96 createComponent(geometry_dimension, component_config, parameters,
97 local_coordinate_system, curves);
98
99 if (std::find_if(components.begin(),
100 components.end(),
101 [component_name = component->name](auto const& c) {
102 return c->name == component_name;
103 }) != components.end())
104 {
105 OGS_FATAL(
106 "Found duplicates with the same component name tag '{:s}'.",
107 component->name);
108 }
109
110 components.push_back(std::move(component));
111 }
112
113 return components;
114}
std::unique_ptr< MaterialPropertyLib::Component > createComponent(int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)

References c, and OGS_FATAL.

◆ createConstant()

std::unique_ptr< Constant > MaterialPropertyLib::createConstant ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__Constant__value

Definition at line 18 of file CreateConstant.cpp.

19{
21 config.checkConfigParameter("type", "Constant");
22
23 // Second access for storage.
25 auto property_name = config.peekConfigParameter<std::string>("name");
26
27 DBUG("Create Constant property {:s}.", property_name);
28 std::vector<double> const values =
30 config.getConfigParameter<std::vector<double>>("value");
31
32 return std::make_unique<Constant>(std::move(property_name),
33 fromVector(values));
34}
PropertyDataType fromVector(std::vector< double > const &values)
Definition Property.cpp:23

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), fromVector(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createCubicLawPermeability()

std::unique_ptr< Property > MaterialPropertyLib::createCubicLawPermeability ( BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__CubicLawPermeability__fracture_aperture

Definition at line 18 of file CreateCubicLawPermeability.cpp.

21{
23 config.checkConfigParameter("type", "CubicLawPermeability");
24 DBUG("Create CubicLaw Permeability model");
25
26 // Second access for storage.
28 auto property_name = config.peekConfigParameter<std::string>("name");
29
32 config.getConfigParameter<std::string>("fracture_aperture"), parameters,
33 0, nullptr);
34
35 return std::make_unique<CubicLawPermeability>(std::move(property_name), b);
36}
OGS_NO_DANGLING Parameter< ParameterDataType > & findParameter(std::string const &parameter_name, std::vector< std::unique_ptr< ParameterBase > > const &parameters, int const num_components, MeshLib::Mesh const *const mesh=nullptr)
Definition Utils.h:102

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createCurve()

std::unique_ptr< Curve > MaterialPropertyLib::createCurve ( BaseLib::ConfigTree const & config,
std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & curves )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__Curve__curve
Input File Parameter
properties__property__Curve__independent_variable

Definition at line 21 of file CreateCurve.cpp.

26{
28 config.checkConfigParameter("type", "Curve");
29
30 // Second access for storage.
32 auto property_name = config.peekConfigParameter<std::string>("name");
33
34 DBUG("Create Curve {:s}.", property_name);
35
37 auto curve_name = config.getConfigParameter<std::string>("curve");
38 DBUG("Using curve '{:s}'", curve_name);
39
40 auto const& curve =
41 *BaseLib::getOrError(curves, curve_name, "Could not find curve.");
42
43 auto const independent_variable_string =
45 config.getConfigParameter<std::string>("independent_variable");
46 DBUG("Using independent_variable '{:s}'", independent_variable_string);
47 auto const independent_variable =
49 independent_variable_string);
50
51 return std::make_unique<Curve>(
52 std::move(property_name), independent_variable, curve);
53}
OGS_NO_DANGLING Map::mapped_type & getOrError(Map &map, Key const &key, std::string const &error_message)
Definition Algorithm.h:114
Variable convertStringToVariable(std::string const &string)

References BaseLib::ConfigTree::checkConfigParameter(), convertStringToVariable(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::getOrError(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createDupuitPermeability()

std::unique_ptr< DupuitPermeability > MaterialPropertyLib::createDupuitPermeability ( BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__Dupuit__parameter_name

Definition at line 19 of file CreateDupuitPermeability.cpp.

22{
24 config.checkConfigParameter("type", "Dupuit");
25
26 // Second access for storage.
28 auto property_name = config.peekConfigParameter<std::string>("name");
29
30 DBUG("Create DupuitPermeability property {:s}.", property_name);
31
32 std::string const& parameter_name =
34 config.getConfigParameter<std::string>("parameter_name");
35 auto const& parameter = ParameterLib::findParameter<double>(
36 parameter_name, parameters, 0, nullptr);
37 return std::make_unique<MaterialPropertyLib::DupuitPermeability>(
38 std::move(property_name), parameter);
39}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createEffectiveThermalConductivityPorosityMixing()

std::unique_ptr< Property > MaterialPropertyLib::createEffectiveThermalConductivityPorosityMixing ( int const geometry_dimension,
BaseLib::ConfigTree const & config,
ParameterLib::CoordinateSystem const *const local_coordinate_system )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__EffectiveThermalConductivityPorosityMixing

Definition at line 17 of file CreateEffectiveThermalConductivityPorosityMixing.cpp.

21{
23 config.checkConfigParameter("type",
24 "EffectiveThermalConductivityPorosityMixing");
25
26 // Second access for storage.
28 auto property_name = config.peekConfigParameter<std::string>("name");
29
30 DBUG(
31 "Create effective thermal_conductivity property from porosity mixing "
32 "{:s}.",
33 property_name);
34
35 if (geometry_dimension == 1)
36 {
37 return std::make_unique<
39 std::move(property_name), local_coordinate_system);
40 }
41
42 if (geometry_dimension == 2)
43 {
44 return std::make_unique<
46 std::move(property_name), local_coordinate_system);
47 }
49 return std::make_unique<
51 std::move(property_name), local_coordinate_system);
52}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createEmbeddedFracturePermeability()

std::unique_ptr< Property > MaterialPropertyLib::createEmbeddedFracturePermeability ( int const geometry_dimension,
BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__EmbeddedFracturePermeability__intrinsic_permeability
Input File Parameter
properties__property__EmbeddedFracturePermeability__initial_aperture
Input File Parameter
properties__property__EmbeddedFracturePermeability__mean_frac_distance
Input File Parameter
properties__property__EmbeddedFracturePermeability__threshold_strain
Input File Parameter
properties__property__EmbeddedFracturePermeability__fracture_normal
Input File Parameter
properties__property__EmbeddedFracturePermeability__fracture_rotation_xy
Input File Parameter
properties__property__EmbeddedFracturePermeability__fracture_rotation_yz
Input File Parameter
properties__property__EmbeddedFracturePermeability__jacobian_factor

Definition at line 17 of file CreateEmbeddedFracturePermeability.cpp.

20{
21 if ((geometry_dimension != 2) && (geometry_dimension != 3))
22 {
24 "The EmbeddedFracturePermeability is implemented only for 2D or 3D "
25 "problems");
26 }
27
29 config.checkConfigParameter("type", "EmbeddedFracturePermeability");
30
31 // Second access for storage.
33 auto property_name = config.peekConfigParameter<std::string>("name");
34
35 DBUG("Create EmbeddedFracturePermeability medium property");
36
37 auto const k =
39 config.getConfigParameter<double>("intrinsic_permeability");
40
41 auto const b0 =
43 config.getConfigParameter<double>("initial_aperture");
44
45 auto const a =
47 config.getConfigParameter<double>("mean_frac_distance");
48
49 auto const e0 =
51 config.getConfigParameter<double>("threshold_strain");
52
53 bool n_const = false;
54 Eigen::Matrix<double, 3, 1> n;
55 if (auto const n_ptr =
57 config.getConfigParameterOptional<std::vector<double>>(
58 "fracture_normal"))
59 {
60 if ((*n_ptr).size() != 3)
61 {
63 "The size of the fracture normal vector must be 3, but is %d.",
64 (*n_ptr).size());
65 }
66 DBUG("Using constant fracture normal vector.");
67 std::copy_n((*n_ptr).data(), 3, n.data());
68 n_const = true;
69 n /= n.norm();
70 }
71 else
72 {
73 DBUG(
74 "No constant fracture normal was given. By default it will be "
75 "determined as the third principal stress vector.");
76 }
77
78 std::string const fracture_rotation_xy_param_name =
80 config.getConfigParameter<std::string>("fracture_rotation_xy");
81
82 auto const& phi_xy = ParameterLib::findParameter<double>(
83 fracture_rotation_xy_param_name, parameters, 0, nullptr);
84
85 std::string const fracture_rotation_yz_param_name =
87 config.getConfigParameter<std::string>("fracture_rotation_yz");
88
89 auto const& phi_yz = ParameterLib::findParameter<double>(
90 fracture_rotation_yz_param_name, parameters, 0, nullptr);
91
92 auto const jf =
94 config.getConfigParameter<double>("jacobian_factor", 0.);
95
96 if (geometry_dimension == 2)
97 {
98 return std::make_unique<EmbeddedFracturePermeability<2>>(
99 std::move(property_name), n, n_const, k, b0, a, e0, phi_xy, phi_yz,
100 jf);
101 }
102 return std::make_unique<EmbeddedFracturePermeability<3>>(
103 std::move(property_name), n, n_const, k, b0, a, e0, phi_xy, phi_yz, jf);
104}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::getConfigParameterOptional(), OGS_FATAL, and BaseLib::ConfigTree::peekConfigParameter().

◆ createExponential()

std::unique_ptr< Exponential > MaterialPropertyLib::createExponential ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__Exponential__reference_value
Input File Parameter
properties__property__Exponential__exponent
Input File Parameter
properties__property__Exponential__exponent__variable_name
Input File Parameter
properties__property__Exponential__exponent__reference_condition
Input File Parameter
properties__property__Exponential__exponent__factor
Input File Parameter
properties__property__Exponential__offset

Definition at line 18 of file CreateExponential.cpp.

20{
22 config.checkConfigParameter("type", "Exponential");
23
24 // Second access for storage.
26 auto property_name = config.peekConfigParameter<std::string>("name");
27
28 DBUG("Create Exponential property {:s}.", property_name);
29 auto const reference_value =
31 config.getConfigParameter<double>("reference_value");
32
33 auto const& exponent_data_config =
35 config.getConfigSubtree("exponent");
36
37 auto const& variable_name =
39 exponent_data_config.getConfigParameter<std::string>("variable_name");
40 auto const reference_condition =
42 exponent_data_config.getConfigParameter<double>("reference_condition");
43 auto const factor =
45 exponent_data_config.getConfigParameter<double>("factor");
46
47 auto const offset =
49 config.getConfigParameter<double>("offset");
50
51 MaterialPropertyLib::Variable exp_data_type =
53
55 exp_data_type, reference_condition, factor};
56
57 return std::make_unique<MaterialPropertyLib::Exponential>(
58 std::move(property_name), offset, reference_value, exp_data);
59}

References BaseLib::ConfigTree::checkConfigParameter(), convertStringToVariable(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::getConfigSubtree(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createFunction()

std::unique_ptr< Function > MaterialPropertyLib::createFunction ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__Function__value
Input File Parameter
properties__property__Function__value__expression
Input File Parameter
properties__property__Function__dvalue
Input File Parameter
properties__property__Function__dvalue__variable_name
Input File Parameter
properties__property__Function__dvalue__expression

Definition at line 15 of file CreateFunction.cpp.

16{
18 config.checkConfigParameter("type", "Function");
19
20 // Second access for storage.
22 auto property_name = config.peekConfigParameter<std::string>("name");
23
24 DBUG("Create Function property {:s}.", property_name);
25
26 std::vector<std::string> value_expressions;
28 auto const& value_config = config.getConfigSubtree("value");
29
31 for (auto const& p : value_config.getConfigSubtreeList("expression"))
32 {
33 value_expressions.emplace_back(p.getValue<std::string>());
34 }
35
36 // For each derivative a name of the variable and the list of expressions.
37 std::vector<std::pair<std::string, std::vector<std::string>>>
38 dvalue_expressions;
40 for (auto const& dvalue_config : config.getConfigSubtreeList("dvalue"))
41 {
42 auto variable_name =
44 dvalue_config.getConfigParameter<std::string>("variable_name");
45
46 std::vector<std::string> expressions;
47 auto const& expression_configs =
49 dvalue_config.getConfigSubtreeList("expression");
50
51 expressions.reserve(expression_configs.size());
52 std::transform(std::begin(expression_configs),
53 std::end(expression_configs),
54 std::back_inserter(expressions),
55 [](BaseLib::ConfigTree const& p)
56 { return p.getValue<std::string>(); });
57
58 dvalue_expressions.emplace_back(std::move(variable_name),
59 std::move(expressions));
60 }
61
62 return std::make_unique<MaterialPropertyLib::Function>(
63 std::move(property_name), value_expressions, dvalue_expressions);
64}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigSubtree(), BaseLib::ConfigTree::getConfigSubtreeList(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createGasPressureDependentPermeability()

std::unique_ptr< Property > MaterialPropertyLib::createGasPressureDependentPermeability ( int const geometry_dimension,
BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters,
ParameterLib::CoordinateSystem const *const local_coordinate_system )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__GasPressureDependentPermeability__initial_permeability
Input File Parameter
properties__property__GasPressureDependentPermeability__a1
Input File Parameter
properties__property__GasPressureDependentPermeability__a2
Input File Parameter
properties__property__GasPressureDependentPermeability__pressure_threshold
Input File Parameter
properties__property__GasPressureDependentPermeability__minimum_permeability
Input File Parameter
properties__property__GasPressureDependentPermeability__maximum_permeability

Definition at line 26 of file CreateGasPressureDependentPermeability.cpp.

31{
32 if ((geometry_dimension != 2) && (geometry_dimension != 3))
33 {
35 "The GasPressureDependentPermeability is implemented only for 2D "
36 "or 3D problems");
37 }
38
40 config.checkConfigParameter("type", "GasPressureDependentPermeability");
41
42 // Second access for storage.
44 auto property_name = config.peekConfigParameter<std::string>("name");
45
46 DBUG("Create GasPressureDependentPermeability property {:s}.",
47 property_name);
48
49 std::string const& parameter_name =
51 config.getConfigParameter<std::string>("initial_permeability");
52 auto const& parameter_k0 = ParameterLib::findParameter<double>(
53 parameter_name, parameters, 0, nullptr);
54
55 auto const a1 =
57 config.getConfigParameter<double>("a1");
58 auto const a2 =
60 config.getConfigParameter<double>("a2");
61 auto const pressure_threshold =
63 config.getConfigParameter<double>("pressure_threshold");
64 auto const minimum_permeability =
66 config.getConfigParameter<double>("minimum_permeability");
67 auto const maximum_permeability =
69 config.getConfigParameter<double>("maximum_permeability");
70
71 if (minimum_permeability > maximum_permeability)
72 {
74 "The value of minimum_permeability of {:e} is larger that the "
75 "value of maximum_permeability of {:e} in "
76 "GasPressureDependentPermeability",
77 minimum_permeability, maximum_permeability);
78 }
79
80 if (geometry_dimension == 2)
81 {
82 return std::make_unique<GasPressureDependentPermeability<2>>(
83 std::move(property_name), parameter_k0, a1, a2, pressure_threshold,
84 minimum_permeability, maximum_permeability,
85 local_coordinate_system);
86 }
87
88 return std::make_unique<GasPressureDependentPermeability<3>>(
89 std::move(property_name), parameter_k0, a1, a2, pressure_threshold,
90 minimum_permeability, maximum_permeability, local_coordinate_system);
91}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, and BaseLib::ConfigTree::peekConfigParameter().

◆ createIdealGasLaw()

std::unique_ptr< IdealGasLaw > MaterialPropertyLib::createIdealGasLaw ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__IdealGasLaw

Definition at line 18 of file CreateIdealGasLaw.cpp.

20{
22 config.checkConfigParameter("type", "IdealGasLaw");
23
24 // Second access for storage.
26 auto property_name = config.peekConfigParameter<std::string>("name");
27
28 DBUG("Create IdealGasLaw medium property {:s}.", property_name);
30 return std::make_unique<IdealGasLaw>(std::move(property_name));
31}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createIdealGasLawBinaryMixture()

std::unique_ptr< IdealGasLawBinaryMixture > MaterialPropertyLib::createIdealGasLawBinaryMixture ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__IdealGasLawBinaryMixture

Definition at line 18 of file CreateIdealGasLawBinaryMixture.cpp.

20{
22 config.checkConfigParameter("type", "IdealGasLawBinaryMixture");
23
24 // Second access for storage.
26 auto property_name = config.peekConfigParameter<std::string>("name");
27
28 DBUG("Create IdealGasLawBinaryMixture medium property {:s}.",
29 property_name);
30
32 return std::make_unique<IdealGasLawBinaryMixture>(std::move(property_name));
33}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createKozenyCarmanModel()

std::unique_ptr< Property > MaterialPropertyLib::createKozenyCarmanModel ( BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__KozenyCarman__initial_permeability
Input File Parameter
properties__property__KozenyCarman__initial_porosity

Definition at line 18 of file CreateKozenyCarmanModel.cpp.

21{
23 config.checkConfigParameter("type", "KozenyCarman");
24 DBUG("Create Kozeny-Carman model.");
25
28 config.getConfigParameter<std::string>("initial_permeability"),
29 parameters, 0, nullptr);
30
31 auto const& phi0 = ParameterLib::findParameter<double>(
33 config.getConfigParameter<std::string>("initial_porosity"), parameters,
34 1, nullptr);
35
36 return std::make_unique<KozenyCarmanModel>(k0, phi0);
37}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), and BaseLib::ConfigTree::getConfigParameter().

◆ createLinear()

std::unique_ptr< Linear > MaterialPropertyLib::createLinear ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__Linear__reference_value
Input File Parameter
properties__property__Linear__independent_variable
Input File Parameter
properties__property__Linear__independent_variable__variable_name
Input File Parameter
properties__property__Linear__independent_variable__reference_condition
Input File Parameter
properties__property__Linear__independent_variable__slope

Definition at line 18 of file CreateLinear.cpp.

19{
21 config.checkConfigParameter("type", "Linear");
22
23 // Second access for storage.
25 auto property_name = config.peekConfigParameter<std::string>("name");
26
27 DBUG("Create Linear property {:s}.", property_name);
28 auto const reference_value =
30 config.getConfigParameter<double>("reference_value");
31
32 std::vector<MaterialPropertyLib::IndependentVariable> ivs;
33 for (auto const& independent_variable_config :
35 config.getConfigSubtreeList("independent_variable"))
36 {
37 auto const& variable_name =
39 independent_variable_config.getConfigParameter<std::string>(
40 "variable_name");
41 auto const reference_condition =
43 independent_variable_config.getConfigParameter<double>(
44 "reference_condition");
45 auto const slope =
47 independent_variable_config.getConfigParameter<double>("slope");
48
51
52 MaterialPropertyLib::IndependentVariable iv{ivt, reference_condition,
53 slope};
54
55 ivs.push_back(std::move(iv));
56 }
57
58 return std::make_unique<MaterialPropertyLib::Linear>(
59 std::move(property_name), reference_value, ivs);
60}

References BaseLib::ConfigTree::checkConfigParameter(), convertStringToVariable(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::getConfigSubtreeList(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createLinearSaturationSwellingStress()

std::unique_ptr< Property > MaterialPropertyLib::createLinearSaturationSwellingStress ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__LinearSaturationSwellingStress__coefficient
Input File Parameter
properties__property__LinearSaturationSwellingStress__reference_saturation

Definition at line 20 of file CreateLinearSaturationSwellingStress.cpp.

22{
24 config.checkConfigParameter("type", "LinearSaturationSwellingStress");
25
27 auto property_name = config.peekConfigParameter<std::string>("name");
28
29 DBUG("Create LinearSaturationSwellingStress phase property {:s}.",
30 property_name);
31
32 auto const coefficient =
34 config.getConfigParameter<double>("coefficient");
35
36 auto const reference_saturation =
38 config.getConfigParameter<double>("reference_saturation");
39
40 return std::make_unique<LinearSaturationSwellingStress>(
41 property_name, coefficient, reference_saturation);
42}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createLinearWaterVapourLatentHeat()

std::unique_ptr< Property > MaterialPropertyLib::createLinearWaterVapourLatentHeat ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__LinearWaterVapourLatentHeat

Definition at line 20 of file CreateLinearWaterVapourLatentHeat.cpp.

22{
24 config.checkConfigParameter("type", "LinearWaterVapourLatentHeat");
25 DBUG("Create LinearWaterVapourLatentHeat phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<LinearWaterVapourLatentHeat>(
33 std::move(property_name));
34}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createLiquidViscosityVogels()

std::unique_ptr< Property > MaterialPropertyLib::createLiquidViscosityVogels ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__LiquidViscosityVogels__liquid_type
Input File Parameter
properties__property__LiquidViscosityVogels__liquid_type
Input File Parameter
properties__property__LiquidViscosityVogels__liquid_type
Input File Parameter
properties__property__LiquidViscosityVogels__liquid_type

Definition at line 20 of file CreateLiquidViscosityVogels.cpp.

22{
24 config.checkConfigParameter("type", "LiquidViscosityVogels");
25 INFO("Using Vogels model, which gives viscosity in SI unit, Pa s");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
31 auto const fluid_type =
33 config.peekConfigParameter<std::string>("liquid_type");
34
35 if (fluid_type == "Water")
36 {
38 config.checkConfigParameter("liquid_type", "Water");
39
40 const VogelsViscosityConstantsWater constants;
41 return std::make_unique<
43 std::move(property_name), std::move(constants));
44 }
45 if (fluid_type == "CO2")
46 {
48 config.checkConfigParameter("liquid_type", "CO2");
49 const VogelsViscosityConstantsCO2 constants;
50 return std::make_unique<
51 LiquidViscosityVogels<VogelsViscosityConstantsCO2>>(
52 std::move(property_name), std::move(constants));
53 }
54 if (fluid_type == "CH4")
55 {
57 config.checkConfigParameter("liquid_type", "CH4");
58 const VogelsViscosityConstantsCH4 constants;
59 return std::make_unique<
60 LiquidViscosityVogels<VogelsViscosityConstantsCH4>>(
61 std::move(property_name), std::move(constants));
62 }
64 "The fluid type {:s} for Vogels model is unavailable.\n"
65 "The available fluid types are Water, CO2 and CH4\n",
66 fluid_type.data());
67}
void INFO(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:35

References BaseLib::ConfigTree::checkConfigParameter(), INFO(), OGS_FATAL, and BaseLib::ConfigTree::peekConfigParameter().

◆ createMaterialSpatialDistributionMap()

MaterialSpatialDistributionMap MaterialPropertyLib::createMaterialSpatialDistributionMap ( std::map< int, std::shared_ptr< Medium > > const & media,
MeshLib::Mesh const & mesh )

Definition at line 18 of file CreateMaterialSpatialDistributionMap.cpp.

21{
22 auto const material_ids = materialIDs(mesh);
23
24 int const max_material_id =
25 !material_ids
26 ? 0
27 : *std::max_element(begin(*material_ids), end(*material_ids));
28
29 if (!material_ids && media.size() > 1)
30 {
32 "More than one porous medium definition (namely {}) is present in "
33 "the project file, but no MaterialIDs are present in the bulk "
34 "mesh.",
35 media.size());
36 }
37
38 if (max_material_id > static_cast<int>(media.size() - 1))
39 {
40 WARN(
41 "The maximum value of MaterialIDs in mesh is {:d}. As the given "
42 "number of porous media definitions in the project file is {:d}, "
43 "the maximum value of MaterialIDs in mesh must be {:d} (index "
44 "starts with zero).",
45 max_material_id, media.size(), max_material_id - 1);
46 }
47
48 if (max_material_id < static_cast<int>(media.size() - 1))
49 {
50 WARN(
51 "There are {:d} porous medium definitions in the project file but "
52 "only {:d} different values in the MaterialIDs vector/data_array "
53 "in the mesh.",
54 media.size(), max_material_id - 1);
55 }
56 return {media, material_ids};
57}
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:40

References OGS_FATAL, and WARN().

Referenced by ProcessLib::ComponentTransport::createComponentTransportProcess(), ProcessLib::HeatConduction::createHeatConductionProcess(), ProcessLib::HeatTransportBHE::createHeatTransportBHEProcess(), ProcessLib::HT::createHTProcess(), ProcessLib::HydroMechanics::createHydroMechanicsProcess(), ProcessLib::LargeDeformation::createLargeDeformationProcess(), ProcessLib::LiquidFlow::createLiquidFlowProcess(), ProcessLib::RichardsComponentTransport::createRichardsComponentTransportProcess(), ProcessLib::RichardsFlow::createRichardsFlowProcess(), ProcessLib::RichardsMechanics::createRichardsMechanicsProcess(), ProcessLib::SmallDeformation::createSmallDeformationProcess(), ProcessLib::SteadyStateDiffusion::createSteadyStateDiffusion(), ProcessLib::StokesFlow::createStokesFlowProcess(), ProcessLib::TH2M::createTH2MProcess(), ProcessLib::ThermalTwoPhaseFlowWithPP::createThermalTwoPhaseFlowWithPPProcess(), ProcessLib::ThermoHydroMechanics::createThermoHydroMechanicsProcess(), ProcessLib::ThermoMechanics::createThermoMechanicsProcess(), ProcessLib::ThermoRichardsFlow::createThermoRichardsFlowProcess(), ProcessLib::ThermoRichardsMechanics::createThermoRichardsMechanicsProcessStage2(), ProcessLib::TwoPhaseFlowWithPP::createTwoPhaseFlowWithPPProcess(), ProcessLib::TwoPhaseFlowWithPrho::createTwoPhaseFlowWithPrhoProcess(), ProcessLib::createWellboreCompensateNeumannBoundaryCondition(), and ProcessLib::WellboreSimulator::createWellboreSimulatorProcess().

◆ createMedium()

std::unique_ptr< Medium > MaterialPropertyLib::createMedium ( int const material_id,
int const geometry_dimension,
BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters,
ParameterLib::CoordinateSystem const *const local_coordinate_system,
std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & curves )

This function parses the "phases" and "properties" subtrees of the config tree and calls create methods for the phase vector and the properties array. Medium properties are optional. If not defined, default properties are assigned.

Input File Parameter
prj__media__medium__phases
Input File Parameter
prj__media__medium__properties

Definition at line 24 of file CreateMedium.cpp.

33{
34 // Parsing the phases
35 // Properties of phases may be not required in all the cases.
36 auto&& phases = createPhases(geometry_dimension,
38 config.getConfigSubtreeOptional("phases"),
39 parameters, local_coordinate_system, curves);
40
41 // Parsing medium properties, overwriting the defaults.
42 auto&& properties =
43 createProperties(geometry_dimension,
45 config.getConfigSubtreeOptional("properties"),
46 parameters, local_coordinate_system, curves);
47
48 if (phases.empty() && !properties)
49 {
50 OGS_FATAL("Neither tag <phases> nor tag <properties> has been found.");
51 }
52
53 return std::make_unique<Medium>(material_id, std::move(phases),
54 std::move(properties));
55}
std::vector< std::unique_ptr< Phase > > createPhases(int const geometry_dimension, std::optional< BaseLib::ConfigTree > const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
std::unique_ptr< PropertyArray > createProperties(int const geometry_dimension, std::optional< BaseLib::ConfigTree > const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)

References createPhases(), createProperties(), BaseLib::ConfigTree::getConfigSubtreeOptional(), and OGS_FATAL.

Referenced by ProjectData::parseMedia().

◆ createOrthotropicEmbeddedFracturePermeability()

std::unique_ptr< Property > MaterialPropertyLib::createOrthotropicEmbeddedFracturePermeability ( int const geometry_dimension,
BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__OrthotropicEmbeddedFracturePermeability__mean_frac_distances
Input File Parameter
properties__property__OrthotropicEmbeddedFracturePermeability__threshold_strains
Input File Parameter
properties__property__OrthotropicEmbeddedFracturePermeability__fracture_normals
Input File Parameter
properties__property__OrthotropicEmbeddedFracturePermeability__intrinsic_permeability
Input File Parameter
properties__property__OrthotropicEmbeddedFracturePermeability__fracture_rotation_xy
Input File Parameter
properties__property__OrthotropicEmbeddedFracturePermeability__fracture_rotation_yz
Input File Parameter
properties__property__OrthotropicEmbeddedFracturePermeability__jacobian_factor

Definition at line 19 of file CreateOrthotropicEmbeddedFracturePermeability.cpp.

22{
23 if ((geometry_dimension != 2) && (geometry_dimension != 3))
24 {
26 "The OrthotropicEmbeddedFracturePermeability is implemented only "
27 "for 2D or 3D problems");
28 }
29
31 config.checkConfigParameter("type",
32 "OrthotropicEmbeddedFracturePermeability");
33
34 // Second access for storage.
36 auto property_name = config.peekConfigParameter<std::string>("name");
37
38 DBUG("Create OrthotropicEmbeddedFracturePermeability medium property");
39
40 auto const a_i =
42 config.getConfigParameter<std::vector<double>>("mean_frac_distances");
43 if (a_i.size() != 3)
44 {
46 "The size of the mean fracture distances vector must be 3, but is "
47 "{}.",
48 a_i.size());
49 }
50
51 auto const e_i0 =
53 config.getConfigParameter<std::vector<double>>("threshold_strains");
54 if (e_i0.size() != 3)
55 {
57 "The size of the mean threshold strains vector must be 3, but is "
58 "{}.",
59 e_i0.size());
60 }
61
62 auto const n =
64 config.getConfigParameter<std::vector<double>>("fracture_normals");
65 if (n.size() != 6)
66 {
68 "The size of the fracture normals vector must be 6, but is {}.",
69 n.size());
70 }
71 Eigen::Vector3d const n1 = Eigen::Vector3d({n[0], n[1], n[2]}).normalized();
72 Eigen::Vector3d const n2 = Eigen::Vector3d({n[3], n[4], n[5]}).normalized();
73
74 if (n1.dot(n2) > std::numeric_limits<double>::epsilon())
75 {
77 "The given fracture normals are not orthogonal. Please provide two "
78 "orthogonal fracture normals");
79 }
80
81 Eigen::Matrix3d const n_i =
82 (Eigen::Matrix3d() << n1, n2, n1.cross(n2)).finished();
83
84 std::string const intrinsic_permeability_param_name =
86 config.getConfigParameter<std::string>("intrinsic_permeability");
87
89 intrinsic_permeability_param_name, parameters, 0, nullptr);
90
91 std::string const fracture_rotation_xy_param_name =
93 config.getConfigParameter<std::string>("fracture_rotation_xy");
94
95 auto const& phi_xy = ParameterLib::findParameter<double>(
96 fracture_rotation_xy_param_name, parameters, 0, nullptr);
97
98 std::string const fracture_rotation_yz_param_name =
100 config.getConfigParameter<std::string>("fracture_rotation_yz");
101
102 auto const& phi_yz = ParameterLib::findParameter<double>(
103 fracture_rotation_yz_param_name, parameters, 0, nullptr);
104
105 auto const jf =
107 config.getConfigParameter<double>("jacobian_factor", 0.);
108
109 if (geometry_dimension == 2)
110 {
111 return std::make_unique<OrthotropicEmbeddedFracturePermeability<2>>(
112 std::move(property_name), a_i, e_i0, n_i, k, phi_xy, phi_yz, jf);
113 }
114 return std::make_unique<OrthotropicEmbeddedFracturePermeability<3>>(
115 std::move(property_name), a_i, e_i0, n_i, k, phi_xy, phi_yz, jf);
116}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, and BaseLib::ConfigTree::peekConfigParameter().

◆ createParameterProperty()

std::unique_ptr< Parameter > MaterialPropertyLib::createParameterProperty ( BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__Parameter__parameter_name

Definition at line 22 of file CreateParameter.cpp.

25{
27 config.checkConfigParameter("type", "Parameter");
28
29 // Second access for storage.
31 auto property_name = config.peekConfigParameter<std::string>("name");
32
33 DBUG("Create Parameter property {:s}.", property_name);
34
35 std::string const& parameter_name =
37 config.getConfigParameter<std::string>("parameter_name");
38 auto const& parameter = ParameterLib::findParameter<double>(
39 parameter_name, parameters, 0, nullptr);
40 return std::make_unique<MaterialPropertyLib::Parameter>(
41 std::move(property_name), parameter);
42}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createPermeabilityMohrCoulombFailureIndexModel()

std::unique_ptr< Property > MaterialPropertyLib::createPermeabilityMohrCoulombFailureIndexModel ( int const geometry_dimension,
BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters,
ParameterLib::CoordinateSystem const *const local_coordinate_system )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__PermeabilityMohrCoulombFailureIndexModel__initial_permeability
Input File Parameter
properties__property__PermeabilityMohrCoulombFailureIndexModel__reference_permeability
Input File Parameter
properties__property__PermeabilityMohrCoulombFailureIndexModel__fitting_factor
Input File Parameter
properties__property__PermeabilityMohrCoulombFailureIndexModel__cohesion
Input File Parameter
properties__property__PermeabilityMohrCoulombFailureIndexModel__friction_angle
Input File Parameter
properties__property__PermeabilityMohrCoulombFailureIndexModel__maximum_permeability
Input File Parameter
properties__property__PermeabilityMohrCoulombFailureIndexModel__tensile_strength_parameter

Definition at line 25 of file CreatePermeabilityMohrCoulombFailureIndexModel.cpp.

30{
31 if ((geometry_dimension != 2) && (geometry_dimension != 3))
32 {
34 "The PermeabilityMohrCoulombFailureIndexModel is implemented only "
35 "for 2D or 3D problems");
36 }
37
39 config.checkConfigParameter("type",
40 "PermeabilityMohrCoulombFailureIndexModel");
41
42 // Second access for storage.
44 auto property_name = config.peekConfigParameter<std::string>("name");
45
46 DBUG("Create PermeabilityMohrCoulombFailureIndexModel property {:s}.",
47 property_name);
48
49 std::string const& parameter_name =
51 config.getConfigParameter<std::string>("initial_permeability");
52 auto const& parameter_k0 = ParameterLib::findParameter<double>(
53 parameter_name, parameters, 0, nullptr);
54
55 auto const kr =
57 config.getConfigParameter<double>("reference_permeability");
58 auto const b =
60 config.getConfigParameter<double>("fitting_factor");
61 auto const c =
63 config.getConfigParameter<double>("cohesion");
64 auto const phi =
66 config.getConfigParameter<double>("friction_angle");
67 auto const max_k =
69 config.getConfigParameter<double>("maximum_permeability");
70 auto const t_sigma_max =
72 config.getConfigParameter<double>("tensile_strength_parameter");
73
74 if (geometry_dimension == 2)
75 {
76 return std::make_unique<PermeabilityMohrCoulombFailureIndexModel<2>>(
77 std::move(property_name), parameter_k0, kr, b, c, phi, max_k,
78 t_sigma_max, local_coordinate_system);
79 }
80
81 return std::make_unique<PermeabilityMohrCoulombFailureIndexModel<3>>(
82 std::move(property_name), parameter_k0, kr, b, c, phi, max_k,
83 t_sigma_max, local_coordinate_system);
84}

References c, BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, and BaseLib::ConfigTree::peekConfigParameter().

◆ createPermeabilityOrthotropicPowerLaw()

std::unique_ptr< Property > MaterialPropertyLib::createPermeabilityOrthotropicPowerLaw ( BaseLib::ConfigTree const & config,
ParameterLib::CoordinateSystem const *const local_coordinate_system )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__PermeabilityOrthotropicPowerLaw__intrinsic_permeabilities
Input File Parameter
properties__property__PermeabilityOrthotropicPowerLaw__exponents

Definition at line 16 of file CreatePermeabilityOrthotropicPowerLaw.cpp.

19{
21 config.checkConfigParameter("type", "PermeabilityOrthotropicPowerLaw");
22
23 // Second access for storage.
25 auto property_name = config.peekConfigParameter<std::string>("name");
26
27 DBUG("Create PermeabilityOrthotropicPowerLaw solid phase property {:s}.",
28 property_name);
29
30 auto const intrinsic_permeabilities =
32 config.getConfigParameter<std::vector<double>>(
33 "intrinsic_permeabilities");
34
35 if (!((intrinsic_permeabilities.size() == 3) ||
36 (intrinsic_permeabilities.size() == 2)))
37 {
39 "The number of intrinsic permeabilities must be two or three, but "
40 "{:d} were given.",
41 intrinsic_permeabilities.size());
42 }
43
44 auto const exponents =
46 config.getConfigParameter<std::vector<double>>("exponents");
47
48 if (exponents.size() != 3 && exponents.size() != 2)
49 {
51 "The number of exponents must be two or three, but {:d} were "
52 "given.",
53 exponents.size());
54 }
55
56 if (intrinsic_permeabilities.size() != exponents.size())
57 {
59 "The number of intrinsic permeabilities and exponents must be "
60 "equal, but they are {:d} and {:d}, respectively.",
61 intrinsic_permeabilities.size(), exponents.size());
62 }
63
64 if (exponents.size() == 2)
65 {
66 return std::make_unique<PermeabilityOrthotropicPowerLaw<2>>(
67 std::move(property_name),
68 std::array<double, 2>{intrinsic_permeabilities[0],
69 intrinsic_permeabilities[1]},
70 std::array<double, 2>{exponents[0], exponents[1]},
71 local_coordinate_system);
72 }
73 if (exponents.size() == 3)
74 {
75 return std::make_unique<PermeabilityOrthotropicPowerLaw<3>>(
76 std::move(property_name),
77 std::array<double, 3>{intrinsic_permeabilities[0],
78 intrinsic_permeabilities[1],
79 intrinsic_permeabilities[2]},
80 std::array<double, 3>{exponents[0], exponents[1], exponents[2]},
81 local_coordinate_system);
82 }
84 "Could not create PermeabilityOrthotropicPowerLaw material model.");
85}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, and BaseLib::ConfigTree::peekConfigParameter().

◆ createPhases()

std::vector< std::unique_ptr< Phase > > MaterialPropertyLib::createPhases ( int const geometry_dimension,
std::optional< BaseLib::ConfigTree > const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters,
ParameterLib::CoordinateSystem const *const local_coordinate_system,
std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & curves )

A method that parses the phase details and stores them in the private phases_ member.

This method creates the phases of the medium. Unlike a medium, a phase may have a name. However, this is silly at the moment since this name still has no effect (except of some benefits in regard of readability). Phase components are required (a phase consists of at least one component). Phase properties are optional. If not given, default properties are assigned. These default properties average the component properties, weighted by mole fraction.

Input File Parameter
prj__media__medium__phases__phase

Definition at line 91 of file CreatePhase.cpp.

99{
100 if (!config)
101 {
102 return {};
103 }
104
105 std::vector<std::unique_ptr<Phase>> phases;
106
107 for (auto phase_config :
109 config->getConfigSubtreeList("phase"))
110 {
111 auto phase = createPhase(geometry_dimension, phase_config, parameters,
112 local_coordinate_system, curves);
113
114 if (std::find_if(phases.begin(),
115 phases.end(),
116 [phase_name = phase->name](auto const& p)
117 { return p->name == phase_name; }) != phases.end())
118 {
119 OGS_FATAL("Found duplicates with the same phase name tag '{:s}'.",
120 phase->name);
121 }
122
123 phases.push_back(std::move(phase));
124 }
125
126 return phases;
127}
std::unique_ptr< MaterialPropertyLib::Phase > createPhase(int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)

References OGS_FATAL.

Referenced by createMedium().

◆ createPorosityFromMassBalance()

std::unique_ptr< PorosityFromMassBalance > MaterialPropertyLib::createPorosityFromMassBalance ( BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__PorosityFromMassBalance__initial_porosity
Input File Parameter
properties__property__PorosityFromMassBalance__minimal_porosity
Input File Parameter
properties__property__PorosityFromMassBalance__maximal_porosity

Definition at line 18 of file CreatePorosityFromMassBalance.cpp.

21{
23 config.checkConfigParameter("type", "PorosityFromMassBalance");
24
25 // Second access for storage.
27 auto property_name = config.peekConfigParameter<std::string>("name");
28
29 DBUG("Create PorosityFromMassBalance medium property {:s}.", property_name);
30
31 std::string const& parameter_name =
33 config.getConfigParameter<std::string>("initial_porosity");
34 auto const& initial_porosity = ParameterLib::findParameter<double>(
35 parameter_name, parameters, 0, nullptr);
36
38 auto const& phi_min = config.getConfigParameter<double>("minimal_porosity");
39
41 auto const& phi_max = config.getConfigParameter<double>("maximal_porosity");
42
43 return std::make_unique<PorosityFromMassBalance>(
44 std::move(property_name), initial_porosity, phi_min, phi_max);
45}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createProperties()

std::unique_ptr< PropertyArray > MaterialPropertyLib::createProperties ( int const geometry_dimension,
std::optional< BaseLib::ConfigTree > const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters,
ParameterLib::CoordinateSystem const *const local_coordinate_system,
std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const & curves )

The method reads the 'properties' tag in the prj-file and creates component properties accordingly.

First, a new property iy created based on the specified property type. Then, the property name is evaluated and the property is copied into the properties array.

Input File Parameter
properties__property
Input File Parameter
properties__property__name

Definition at line 390 of file CreateProperty.cpp.

398{
399 if (!config)
400 {
401 return nullptr;
402 }
403
405 auto const& property_configs = config->getConfigSubtreeList("property");
406 if (property_configs.empty())
407 {
408 return nullptr;
409 }
410
411 auto properties = std::make_unique<PropertyArray>();
412
413 for (auto property_config : property_configs)
414 {
415 // Parsing the property name:
416 auto const property_name =
418 property_config.getConfigParameter<std::string>("name");
419 // Create a new property based on the configuration subtree:
420 auto property =
421 createProperty(geometry_dimension, property_config, parameters,
422 local_coordinate_system, curves);
423
424 // Insert the new property at the right position into the components
425 // private PropertyArray:
426 (*properties)[convertStringToProperty(property_name)] =
427 std::move(property);
428 }
429 return properties;
430}
PropertyType convertStringToProperty(std::string const &string)
std::unique_ptr< MaterialPropertyLib::Property > createProperty(int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, ParameterLib::CoordinateSystem const *const local_coordinate_system, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)

References convertStringToProperty().

Referenced by createMedium().

◆ createRelPermBrooksCorey()

std::unique_ptr< RelPermBrooksCorey > MaterialPropertyLib::createRelPermBrooksCorey ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__RelPermBrooksCorey__residual_liquid_saturation
Input File Parameter
properties__property__RelPermBrooksCorey__residual_gas_saturation
Input File Parameter
properties__property__RelPermBrooksCorey__min_relative_permeability
Input File Parameter
properties__property__RelPermBrooksCorey__lambda

Definition at line 16 of file CreateRelPermBrooksCorey.cpp.

18{
20 config.checkConfigParameter("type", "RelPermBrooksCorey");
21
22 // Second access for storage.
24 auto property_name = config.peekConfigParameter<std::string>("name");
25
26 DBUG("Create RelPermBrooksCorey medium property {:s}.", property_name);
27
30 config.getConfigParameter<double>("residual_liquid_saturation");
31 auto const residual_gas_saturation =
33 config.getConfigParameter<double>("residual_gas_saturation");
34 auto const min_relative_permeability =
36 config.getConfigParameter<double>("min_relative_permeability");
37 auto const exponent =
39 config.getConfigParameter<double>("lambda");
40 if (exponent <= 0.)
41 {
42 OGS_FATAL("Exponent 'lambda' must be positive.");
43 }
44
45 return std::make_unique<RelPermBrooksCorey>(std::move(property_name),
46 residual_liquid_saturation,
47 residual_gas_saturation,
48 min_relative_permeability,
49 exponent);
50}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createRelPermBrooksCoreyNonwettingPhase()

std::unique_ptr< RelPermBrooksCoreyNonwettingPhase > MaterialPropertyLib::createRelPermBrooksCoreyNonwettingPhase ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__RelPermBrooksCoreyNonwettingPhase__residual_liquid_saturation
Input File Parameter
properties__property__RelPermBrooksCoreyNonwettingPhase__residual_gas_saturation
Input File Parameter
properties__property__RelPermBrooksCoreyNonwettingPhase__min_relative_permeability
Input File Parameter
properties__property__RelPermBrooksCoreyNonwettingPhase__lambda

Definition at line 20 of file CreateRelPermBrooksCoreyNonwettingPhase.cpp.

21{
23 config.checkConfigParameter("type", "RelPermBrooksCoreyNonwettingPhase");
24
25 // Second access for storage.
27 auto property_name = config.peekConfigParameter<std::string>("name");
28
29 DBUG("Create RelPermBrooksCoreyNonwettingPhase medium property {:s}.",
30 property_name);
31
34 config.getConfigParameter<double>("residual_liquid_saturation");
35 auto const residual_gas_saturation =
37 config.getConfigParameter<double>("residual_gas_saturation");
38 auto const min_relative_permeability =
40 config.getConfigParameter<double>("min_relative_permeability");
41 auto const exponent =
43 config.getConfigParameter<double>("lambda");
44 if (exponent <= 0.)
45 {
46 OGS_FATAL("Exponent 'lambda' must be positive.");
47 }
48
49 return std::make_unique<RelPermBrooksCoreyNonwettingPhase>(
50 std::move(property_name),
51 residual_liquid_saturation,
52 residual_gas_saturation,
53 min_relative_permeability,
54 exponent);
55}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createRelPermGeneralizedPower()

std::unique_ptr< RelPermGeneralizedPower > MaterialPropertyLib::createRelPermGeneralizedPower ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__RelativePermeabilityGeneralizedPower__residual_liquid_saturation
Input File Parameter
properties__property__RelativePermeabilityGeneralizedPower__residual_gas_saturation
Input File Parameter
properties__property__RelativePermeabilityGeneralizedPower__min_relative_permeability
Input File Parameter
properties__property__RelativePermeabilityGeneralizedPower__multiplier
Input File Parameter
properties__property__RelativePermeabilityGeneralizedPower__exponent

Definition at line 17 of file CreateRelPermGeneralizedPower.cpp.

19{
21 config.checkConfigParameter("type", "RelativePermeabilityGeneralizedPower");
22
23 // Second access for storage.
25 auto property_name = config.peekConfigParameter<std::string>("name");
26
27 DBUG("Create RelPermGeneralizedPower medium property {:s}.", property_name);
28
31 config.getConfigParameter<double>("residual_liquid_saturation");
32 auto const residual_gas_saturation =
34 config.getConfigParameter<double>("residual_gas_saturation");
35 auto const min_relative_permeability =
37 config.getConfigParameter<double>("min_relative_permeability");
38 double const a =
40 config.getConfigParameter<double>("multiplier", 1);
41 double const lambda =
43 config.getConfigParameter<double>("exponent", 1);
44
45 if (min_relative_permeability < 0)
46 {
47 OGS_FATAL("Minimal relative permeability must be non-negative.");
48 }
49
50 return std::make_unique<RelPermGeneralizedPower>(
51 std::move(property_name), residual_liquid_saturation,
52 residual_gas_saturation, min_relative_permeability, a, lambda);
53}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createRelPermGeneralizedPowerNonwettingPhase()

std::unique_ptr< RelPermGeneralizedPowerNonwettingPhase > MaterialPropertyLib::createRelPermGeneralizedPowerNonwettingPhase ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__RelativePermeabilityGeneralizedPowerNonwettingPhase__residual_liquid_saturation
Input File Parameter
properties__property__RelativePermeabilityGeneralizedPowerNonwettingPhase__residual_gas_saturation
Input File Parameter
properties__property__RelativePermeabilityGeneralizedPowerNonwettingPhase__min_relative_permeability
Input File Parameter
properties__property__RelativePermeabilityGeneralizedPowerNonwettingPhase__multiplier
Input File Parameter
properties__property__RelativePermeabilityGeneralizedPowerNonwettingPhase__exponent

Definition at line 18 of file CreateRelPermGeneralizedPowerNonwettingPhase.cpp.

19{
21 config.checkConfigParameter(
22 "type", "RelativePermeabilityGeneralizedPowerNonwettingPhase");
23
24 // Second access for storage.
26 auto property_name = config.peekConfigParameter<std::string>("name");
27
28 DBUG("Create RelPermGeneralizedPowerNonwettingPhase medium property {:s}.",
29 property_name);
30
33 config.getConfigParameter<double>("residual_liquid_saturation");
34 auto const residual_gas_saturation =
36 config.getConfigParameter<double>("residual_gas_saturation");
37 auto const min_relative_permeability =
39 config.getConfigParameter<double>("min_relative_permeability");
40 double const a =
42 config.getConfigParameter<double>("multiplier", 1000);
43 double const lambda =
45 config.getConfigParameter<double>("exponent", 0.8);
46
47 if (min_relative_permeability < 0)
48 {
49 OGS_FATAL("Minimal relative permeability must be non-negative.");
50 }
51
52 return std::make_unique<RelPermGeneralizedPowerNonwettingPhase>(
53 std::move(property_name), residual_liquid_saturation,
54 residual_gas_saturation, min_relative_permeability, a, lambda);
55}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createRelPermLiakopoulos()

std::unique_ptr< RelPermLiakopoulos > MaterialPropertyLib::createRelPermLiakopoulos ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__RelPermLiakopoulos

Definition at line 16 of file CreateRelPermLiakopoulos.cpp.

18{
20 config.checkConfigParameter("type", "RelPermLiakopoulos");
21
22 // Second access for storage.
24 auto property_name = config.peekConfigParameter<std::string>("name");
25
26 DBUG("Create RelPermLiakopoulos medium property {:s}.", property_name);
27
29 return std::make_unique<RelPermLiakopoulos>(std::move(property_name));
30}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createRelPermNonWettingPhaseVanGenuchtenMualem()

std::unique_ptr< Property > MaterialPropertyLib::createRelPermNonWettingPhaseVanGenuchtenMualem ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__RelativePermeabilityNonWettingPhaseVanGenuchtenMualem__residual_liquid_saturation
Input File Parameter
properties__property__RelativePermeabilityNonWettingPhaseVanGenuchtenMualem__residual_gas_saturation
Input File Parameter
properties__property__RelativePermeabilityNonWettingPhaseVanGenuchtenMualem__exponent
Input File Parameter
properties__property__RelativePermeabilityNonWettingPhaseVanGenuchtenMualem__min_relative_permeability

Definition at line 20 of file CreateRelPermNonWettingPhaseVanGenuchtenMualem.cpp.

22{
24 config.checkConfigParameter(
25 "type", "RelativePermeabilityNonWettingPhaseVanGenuchtenMualem");
26 DBUG("Create RelPermNonWettingPhaseVanGenuchtenMualem medium property");
27
28 // Second access for storage.
30 auto property_name = config.peekConfigParameter<std::string>("name");
31
34 config.getConfigParameter<double>("residual_liquid_saturation");
35 auto const residual_gas_saturation =
37 config.getConfigParameter<double>("residual_gas_saturation");
38
39 auto const exponent =
41 config.getConfigParameter<double>("exponent");
42
43 auto const min_relative_permeability =
45 config.getConfigParameter<double>("min_relative_permeability");
46
47 if (min_relative_permeability <= 0.0 || min_relative_permeability > 1.0)
48 {
50 "The value for min_relative_permeability of "
51 "RelativePermeabilityNonWettingPhaseVanGenuchtenMualem is {:g}, "
52 "which falls outside of the range of (0, 1]",
53 min_relative_permeability);
54 }
55
56 return std::make_unique<RelPermNonWettingPhaseVanGenuchtenMualem>(
57 property_name, residual_liquid_saturation, residual_gas_saturation,
58 exponent, min_relative_permeability);
59}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createRelPermUdell()

std::unique_ptr< RelPermUdell > MaterialPropertyLib::createRelPermUdell ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__RelativePermeabilityUdell__residual_liquid_saturation
Input File Parameter
properties__property__RelativePermeabilityUdell__residual_gas_saturation
Input File Parameter
properties__property__RelativePermeabilityUdell__min_relative_permeability

Definition at line 18 of file CreateRelPermUdell.cpp.

20{
22 config.checkConfigParameter("type", "RelativePermeabilityUdell");
23
24 // Second access for storage.
26 auto property_name = config.peekConfigParameter<std::string>("name");
27
28 DBUG("Create RelPermUdell medium property {:s}.", property_name);
29
32 config.getConfigParameter<double>("residual_liquid_saturation");
33 auto const residual_gas_saturation =
35 config.getConfigParameter<double>("residual_gas_saturation");
36 auto const min_relative_permeability =
38 config.getConfigParameter<double>("min_relative_permeability");
39
40 if (min_relative_permeability < 0)
41 {
42 OGS_FATAL("Minimal relative permeability must be non-negative.");
43 }
44
45 return std::make_unique<RelPermUdell>(
46 std::move(property_name), residual_liquid_saturation,
47 residual_gas_saturation, min_relative_permeability);
48}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createRelPermUdellNonwettingPhase()

std::unique_ptr< RelPermUdellNonwettingPhase > MaterialPropertyLib::createRelPermUdellNonwettingPhase ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__RelativePermeabilityUdellNonwettingPhase__residual_liquid_saturation
Input File Parameter
properties__property__RelativePermeabilityUdellNonwettingPhase__residual_gas_saturation
Input File Parameter
properties__property__RelativePermeabilityUdellNonwettingPhase__min_relative_permeability

Definition at line 17 of file CreateRelPermUdellNonwettingPhase.cpp.

19{
21 config.checkConfigParameter("type",
22 "RelativePermeabilityUdellNonwettingPhase");
23
24 // Second access for storage.
26 auto property_name = config.peekConfigParameter<std::string>("name");
27
28 DBUG("Create RelPermUdellNonwettingPhase medium property {:s}.",
29 property_name);
30
33 config.getConfigParameter<double>("residual_liquid_saturation");
34 auto const residual_gas_saturation =
36 config.getConfigParameter<double>("residual_gas_saturation");
37 auto const min_relative_permeability =
39 config.getConfigParameter<double>("min_relative_permeability");
40
41 if (min_relative_permeability < 0)
42 {
43 OGS_FATAL("Minimal relative permeability must be non-negative.");
44 }
45
46 return std::make_unique<RelPermUdellNonwettingPhase>(
47 std::move(property_name), residual_liquid_saturation,
48 residual_gas_saturation, min_relative_permeability);
49}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createRelPermVanGenuchten()

std::unique_ptr< RelPermVanGenuchten > MaterialPropertyLib::createRelPermVanGenuchten ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__RelativePermeabilityVanGenuchten__residual_liquid_saturation
Input File Parameter
properties__property__RelativePermeabilityVanGenuchten__residual_gas_saturation
Input File Parameter
properties__property__RelativePermeabilityVanGenuchten__minimum_relative_permeability_liquid
Input File Parameter
properties__property__RelativePermeabilityVanGenuchten__exponent

Definition at line 16 of file CreateRelPermVanGenuchten.cpp.

18{
20 config.checkConfigParameter("type", "RelativePermeabilityVanGenuchten");
21
22 // Second access for storage.
24 auto property_name = config.peekConfigParameter<std::string>("name");
25
26 DBUG("Create RelativePermeabilityVanGenuchten medium property {:s}.",
27 property_name);
28
31 config.getConfigParameter<double>("residual_liquid_saturation");
32 auto const residual_gas_saturation =
34 config.getConfigParameter<double>("residual_gas_saturation");
35 auto const min_relative_permeability_liquid =
37 config.getConfigParameter<double>(
38 "minimum_relative_permeability_liquid");
39 auto const exponent =
41 config.getConfigParameter<double>("exponent");
42 if (exponent <= 0. || exponent >= 1.)
43 {
44 OGS_FATAL("Exponent must be in the (0, 1) range.");
45 }
46
47 return std::make_unique<RelPermVanGenuchten>(
48 std::move(property_name),
49 residual_liquid_saturation,
50 residual_gas_saturation,
51 min_relative_permeability_liquid,
52 exponent);
53}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createSaturationBrooksCorey()

std::unique_ptr< SaturationBrooksCorey > MaterialPropertyLib::createSaturationBrooksCorey ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__SaturationBrooksCorey__residual_liquid_saturation
Input File Parameter
properties__property__SaturationBrooksCorey__residual_gas_saturation
Input File Parameter
properties__property__SaturationBrooksCorey__lambda
Input File Parameter
properties__property__SaturationBrooksCorey__entry_pressure

Definition at line 16 of file CreateSaturationBrooksCorey.cpp.

18{
20 config.checkConfigParameter("type", "SaturationBrooksCorey");
21
22 // Second access for storage.
24 auto property_name = config.peekConfigParameter<std::string>("name");
25
26 DBUG("Create SaturationBrooksCorey medium property {:s}.", property_name);
27
30 config.getConfigParameter<double>("residual_liquid_saturation");
31 auto const residual_gas_saturation =
33 config.getConfigParameter<double>("residual_gas_saturation");
34 auto const exponent =
36 config.getConfigParameter<double>("lambda");
37 auto const entry_pressure =
39 config.getConfigParameter<double>("entry_pressure");
40
41 return std::make_unique<SaturationBrooksCorey>(
42 std::move(property_name), residual_liquid_saturation,
43 residual_gas_saturation, exponent, entry_pressure);
44}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), entry_pressure, BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createSaturationDependentSwelling()

std::unique_ptr< SaturationDependentSwelling > MaterialPropertyLib::createSaturationDependentSwelling ( BaseLib::ConfigTree const & config,
ParameterLib::CoordinateSystem const *const local_coordinate_system )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__SaturationDependentSwelling__swelling_pressures
Input File Parameter
properties__property__SaturationDependentSwelling__exponents
Input File Parameter
properties__property__SaturationDependentSwelling__lower_saturation_limit
Input File Parameter
properties__property__SaturationDependentSwelling__upper_saturation_limit

Definition at line 16 of file CreateSaturationDependentSwelling.cpp.

19{
21 config.checkConfigParameter("type", "SaturationDependentSwelling");
22
23 // Second access for storage.
25 auto property_name = config.peekConfigParameter<std::string>("name");
26
27 DBUG("Create SaturationDependentSwelling solid phase property {:s}.",
28 property_name);
29
30 auto const swelling_pressures =
32 config.getConfigParameter<std::vector<double>>("swelling_pressures");
33
34 if (swelling_pressures.size() != 3)
35 {
37 "The number of swelling pressures must be three, but {:d} were "
38 "given.",
39 swelling_pressures.size());
40 }
41
42 auto const exponents =
44 config.getConfigParameter<std::vector<double>>("exponents");
45
46 if (exponents.size() != 3)
47 {
48 OGS_FATAL("The number of exponents must be three, but {:d} were given.",
49 exponents.size());
50 }
51
52 if (swelling_pressures.size() != exponents.size())
53 {
55 "The number of swelling pressures and exponents must be equal, but "
56 "they are {:d} and {:d}, respectively.",
57 swelling_pressures.size(), exponents.size());
58 }
59
60 auto const lower_saturation_limit =
62 config.getConfigParameter<double>("lower_saturation_limit");
63
64 auto const upper_saturation_limit =
66 config.getConfigParameter<double>("upper_saturation_limit");
67
68 return std::make_unique<SaturationDependentSwelling>(
69 std::move(property_name),
70 std::array<double, 3>{swelling_pressures[0], swelling_pressures[1],
71 swelling_pressures[2]},
72 std::array<double, 3>{exponents[0], exponents[1], exponents[2]},
73 lower_saturation_limit, upper_saturation_limit,
74 local_coordinate_system);
75}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, and BaseLib::ConfigTree::peekConfigParameter().

◆ createSaturationDependentThermalConductivity()

std::unique_ptr< Property > MaterialPropertyLib::createSaturationDependentThermalConductivity ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type

Definition at line 14 of file CreateSaturationDependentThermalConductivity.cpp.

16{
18 config.checkConfigParameter("type",
19 "SaturationDependentThermalConductivity");
20
22 "The MPL property SaturationDependentThermalConductivity is "
23 "deprecated. Please use SaturationWeightedThermalConductivity "
24 "instead.");
25}

References BaseLib::ConfigTree::checkConfigParameter(), and OGS_FATAL.

◆ createSaturationExponential()

std::unique_ptr< SaturationExponential > MaterialPropertyLib::createSaturationExponential ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__SaturationExponential__residual_liquid_saturation
Input File Parameter
properties__property__SaturationExponential__residual_gas_saturation
Input File Parameter
properties__property__SaturationExponential__maximum_capillary_pressure
Input File Parameter
properties__property__SaturationExponential__exponent

Definition at line 16 of file CreateSaturationExponential.cpp.

18{
20 config.checkConfigParameter("type", "SaturationExponential");
21
22 // Second access for storage.
24 auto property_name = config.peekConfigParameter<std::string>("name");
25
26 DBUG("Create SaturationExponential medium property {:s}.", property_name);
27
30 config.getConfigParameter<double>("residual_liquid_saturation");
31 auto const residual_gas_saturation =
33 config.getConfigParameter<double>("residual_gas_saturation");
34 auto const p_cap_max =
36 config.getConfigParameter<double>("maximum_capillary_pressure");
37 auto const exponent =
39 config.getConfigParameter<double>("exponent");
40
41 return std::make_unique<SaturationExponential>(
42 std::move(property_name), residual_liquid_saturation,
43 residual_gas_saturation, p_cap_max, exponent);
44}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createSaturationLiakopoulos()

std::unique_ptr< SaturationLiakopoulos > MaterialPropertyLib::createSaturationLiakopoulos ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__SaturationLiakopoulos

Definition at line 16 of file CreateSaturationLiakopoulos.cpp.

18{
20 config.checkConfigParameter("type", "SaturationLiakopoulos");
21
22 // Second access for storage.
24 auto property_name = config.peekConfigParameter<std::string>("name");
25
26 DBUG("Create SaturationLiakopoulos medium property {:s}.", property_name);
27
29 return std::make_unique<SaturationLiakopoulos>(std::move(property_name));
30}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createSaturationVanGenuchten()

std::unique_ptr< SaturationVanGenuchten > MaterialPropertyLib::createSaturationVanGenuchten ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__SaturationVanGenuchten__residual_liquid_saturation
Input File Parameter
properties__property__SaturationVanGenuchten__residual_gas_saturation
Input File Parameter
properties__property__SaturationVanGenuchten__exponent
Input File Parameter
properties__property__SaturationVanGenuchten__p_b

Definition at line 16 of file CreateSaturationVanGenuchten.cpp.

18{
20 config.checkConfigParameter("type", "SaturationVanGenuchten");
21
22 // Second access for storage.
24 auto property_name = config.peekConfigParameter<std::string>("name");
25
26 DBUG("Create SaturationVanGenuchten medium property {:s}.", property_name);
27
30 config.getConfigParameter<double>("residual_liquid_saturation");
31 auto const residual_gas_saturation =
33 config.getConfigParameter<double>("residual_gas_saturation");
34 auto const exponent =
36 config.getConfigParameter<double>("exponent");
38 auto const p_b = config.getConfigParameter<double>("p_b");
39
40 return std::make_unique<SaturationVanGenuchten>(
41 std::move(property_name), residual_liquid_saturation,
42 residual_gas_saturation, exponent, p_b);
43}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createSaturationVanGenuchtenWithVolumetricStrain()

std::unique_ptr< SaturationVanGenuchtenWithVolumetricStrain > MaterialPropertyLib::createSaturationVanGenuchtenWithVolumetricStrain ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__SaturationVanGenuchtenWithVolumetricStrain__residual_liquid_saturation
Input File Parameter
properties__property__SaturationVanGenuchtenWithVolumetricStrain__residual_gas_saturation
Input File Parameter
properties__property__SaturationVanGenuchtenWithVolumetricStrain__exponent
Input File Parameter
properties__property__SaturationVanGenuchtenWithVolumetricStrain__p_b
Input File Parameter
properties__property__SaturationVanGenuchtenWithVolumetricStrain__e_0
Input File Parameter
properties__property__SaturationVanGenuchtenWithVolumetricStrain__e_m
Input File Parameter
properties__property__SaturationVanGenuchtenWithVolumetricStrain__a
Input File Parameter
properties__property__SaturationVanGenuchtenWithVolumetricStrain__d_diff

Definition at line 16 of file CreateSaturationVanGenuchtenWithVolumetricStrain.cpp.

18{
20 config.checkConfigParameter("type",
21 "SaturationVanGenuchtenWithVolumetricStrain");
22
23 // Second access for storage.
25 auto property_name = config.peekConfigParameter<std::string>("name");
26
27 DBUG(
28 "Create SaturationVanGenuchtenWithVolumetricStrain medium property "
29 "{:s}.",
30 property_name);
31
34 config.getConfigParameter<double>("residual_liquid_saturation");
35 auto const residual_gas_saturation =
37 config.getConfigParameter<double>("residual_gas_saturation");
38 auto const exponent =
40 config.getConfigParameter<double>("exponent");
42 auto const p_b = config.getConfigParameter<double>("p_b");
43 auto const e_0 =
45 config.getConfigParameter<double>("e_0");
46 auto const e_m =
48 config.getConfigParameter<double>("e_m");
49 auto const a =
51 config.getConfigParameter<double>("a");
52 auto const d_diff =
54 config.getConfigParameter<double>("d_diff");
55
56 return std::make_unique<SaturationVanGenuchtenWithVolumetricStrain>(
57 std::move(property_name), residual_liquid_saturation,
58 residual_gas_saturation, exponent, p_b, e_0, e_m, a, d_diff);
59}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::peekConfigParameter(), residual_gas_saturation, and residual_liquid_saturation.

◆ createSaturationWeightedThermalConductivity()

std::unique_ptr< Property > MaterialPropertyLib::createSaturationWeightedThermalConductivity ( int const geometry_dimension,
BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__SaturationWeightedThermalConductivity__dry_thermal_conductivity
Input File Parameter
properties__property__SaturationWeightedThermalConductivity__wet_thermal_conductivity
Input File Parameter
properties__property__SaturationWeightedThermalConductivity__mean_type

Definition at line 42 of file CreateSaturationWeightedThermalConductivity.cpp.

46{
48 config.checkConfigParameter("type",
49 "SaturationWeightedThermalConductivity");
50
52 auto property_name = config.peekConfigParameter<std::string>("name");
53
54 DBUG("Create SaturationWeightedThermalConductivity medium property");
55
56 std::string const& dry_thermal_conductivity_parameter_name =
58 config.getConfigParameter<std::string>("dry_thermal_conductivity");
59 auto const& dry_thermal_conductivity = ParameterLib::findParameter<double>(
60 dry_thermal_conductivity_parameter_name, parameters, 0, nullptr);
61
62 std::string const& wet_thermal_conductivity_parameter_name =
64 config.getConfigParameter<std::string>("wet_thermal_conductivity");
65 auto const& wet_thermal_conductivity = ParameterLib::findParameter<double>(
66 wet_thermal_conductivity_parameter_name, parameters, 0, nullptr);
67
68 std::string const& mean_type_str =
70 config.getConfigParameter<std::string>("mean_type");
71
72 const std::map<std::string, MeanType> mean_type_map{
73 {"arithmetic_linear", MeanType::ARITHMETIC_LINEAR},
74 {"arithmetic_squareroot", MeanType::ARITHMETIC_SQUAREROOT},
75 {"geometric", MeanType::GEOMETRIC}};
76 MeanType const& mean_type = BaseLib::getOrError(
77 mean_type_map, mean_type_str,
78 "Specified mean type for the thermal conductivity could not be found.");
79
80 std::map<
81 std::pair<MeanType, int>,
82 std::unique_ptr<Property> (*)(
83 std::string /*name*/,
84 ParameterLib::Parameter<double> const& /*dry_thermal_conductivity*/,
86 double> const& /*wet_thermal_conductivity*/)>
87 map_dim_and_mean_to_creator;
88
89 // initialize the map
90 {
91 using namespace boost::mp11;
92 using Dims = mp_list<mp_int<1>, mp_int<2>, mp_int<3>>;
93 using Means = mp_list<
94 std::integral_constant<MeanType, MeanType::ARITHMETIC_LINEAR>,
95 std::integral_constant<MeanType, MeanType::ARITHMETIC_SQUAREROOT>,
96 std::integral_constant<MeanType, MeanType::GEOMETRIC>>;
97 using DimsAndMeanTypes =
98 mp_product<mp_list, Dims,
99 Means>; // Cartesian product of Dims and Means.
100
101 mp_for_each<DimsAndMeanTypes>(
102 [&map_dim_and_mean_to_creator]<typename Dim, typename Mean>(
103 mp_list<Dim, Mean>)
104 {
105 map_dim_and_mean_to_creator.emplace(
106 std::pair{Mean::value, Dim::value},
108 Dim::value>);
109 });
110 }
111
112 auto const it = map_dim_and_mean_to_creator.find(
113 std::pair{mean_type, geometry_dimension});
114
115 if (it == map_dim_and_mean_to_creator.end())
116 {
117 OGS_FATAL(
118 "Cannot create a SaturationWeightedThermalConductivity model for "
119 "dimension {} and mean type {}",
120 geometry_dimension, mean_type_str);
121 }
122
123 auto* creator = it->second;
124 return creator(std::move(property_name),
125 dry_thermal_conductivity,
126 wet_thermal_conductivity);
127}
std::unique_ptr< MaterialPropertyLib::Property > createSaturationWeightedThermalConductivity(std::string name, ParameterLib::Parameter< double > const &dry_thermal_conductivity, ParameterLib::Parameter< double > const &wet_thermal_conductivity)

References ARITHMETIC_LINEAR, ARITHMETIC_SQUAREROOT, BaseLib::ConfigTree::checkConfigParameter(), createSaturationWeightedThermalConductivity(), DBUG(), ParameterLib::findParameter(), GEOMETRIC, BaseLib::ConfigTree::getConfigParameter(), BaseLib::getOrError(), OGS_FATAL, and BaseLib::ConfigTree::peekConfigParameter().

Referenced by createSaturationWeightedThermalConductivity().

◆ createSoilThermalConductivitySomerton()

std::unique_ptr< Property > MaterialPropertyLib::createSoilThermalConductivitySomerton ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type

Definition at line 19 of file CreateSoilThermalConductivitySomerton.cpp.

21{
23 config.checkConfigParameter("type", "SoilThermalConductivitySomerton");
24
26 "The MPL property SoilThermalConductivitySomerton is "
27 "deprecated. Please use SaturationWeightedThermalConductivity "
28 "instead.");
29}

References BaseLib::ConfigTree::checkConfigParameter(), and OGS_FATAL.

◆ createSpecificHeatCapacityWithLatentHeat()

std::unique_ptr< SpecificHeatCapacityWithLatentHeat > MaterialPropertyLib::createSpecificHeatCapacityWithLatentHeat ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__SpecificHeatCapacityWithLatentHeat__specific_latent_heat

Definition at line 19 of file CreateSpecificHeatCapacityWithLatentHeat.cpp.

20{
22 config.checkConfigParameter("type", "SpecificHeatCapacityWithLatentHeat");
23
24 // Second access for storage.
26 auto property_name = config.peekConfigParameter<std::string>("name");
27
28 DBUG("Create temperature dependent specific heat capacity {:s}.",
29 property_name);
30
31 auto const l =
33 config.getConfigParameter<double>("specific_latent_heat");
34
35 return std::make_unique<
37 std::move(property_name), l);
38}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createStrainDependentPermeability()

std::unique_ptr< Property > MaterialPropertyLib::createStrainDependentPermeability ( int const geometry_dimension,
BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters,
ParameterLib::CoordinateSystem const *const local_coordinate_system )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__StrainDependentPermeability__initial_permeability
Input File Parameter
properties__property__StrainDependentPermeability__b1
Input File Parameter
properties__property__StrainDependentPermeability__b2
Input File Parameter
properties__property__StrainDependentPermeability__b3
Input File Parameter
properties__property__StrainDependentPermeability__minimum_permeability
Input File Parameter
properties__property__StrainDependentPermeability__maximum_permeability

Definition at line 26 of file CreateStrainDependentPermeability.cpp.

31{
32 if ((geometry_dimension != 2) && (geometry_dimension != 3))
33 {
35 "The StrainDependentPermeability is implemented only for 2D or 3D "
36 "problems");
37 }
38
40 config.checkConfigParameter("type", "StrainDependentPermeability");
41
42 // Second access for storage.
44 auto property_name = config.peekConfigParameter<std::string>("name");
45
46 DBUG("Create StrainDependentPermeability property {:s}.", property_name);
47
48 std::string const& parameter_name =
50 config.getConfigParameter<std::string>("initial_permeability");
51 auto const& parameter_k0 = ParameterLib::findParameter<double>(
52 parameter_name, parameters, 0, nullptr);
53
54 auto const b1 =
56 config.getConfigParameter<double>("b1");
57 auto const b2 =
59 config.getConfigParameter<double>("b2");
60 auto const b3 =
62 config.getConfigParameter<double>("b3");
63 auto const minimum_permeability =
65 config.getConfigParameter<double>("minimum_permeability");
66 auto const maximum_permeability =
68 config.getConfigParameter<double>("maximum_permeability");
69
70 if (minimum_permeability > maximum_permeability)
71 {
73 "The value of minimum_permeability of {:e} is larger that the "
74 "value of maximum_permeability of {:e} in "
75 "StrainDependentPermeability",
76 minimum_permeability, maximum_permeability);
77 }
78
79 if (geometry_dimension == 2)
80 {
81 return std::make_unique<StrainDependentPermeability<2>>(
82 std::move(property_name), parameter_k0, b1, b2, b3,
83 minimum_permeability, maximum_permeability,
84 local_coordinate_system);
85 }
86
87 return std::make_unique<StrainDependentPermeability<3>>(
88 std::move(property_name), parameter_k0, b1, b2, b3,
89 minimum_permeability, maximum_permeability, local_coordinate_system);
90}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), BaseLib::ConfigTree::getConfigParameter(), OGS_FATAL, and BaseLib::ConfigTree::peekConfigParameter().

◆ createTemperatureDependentDiffusion()

std::unique_ptr< Property > MaterialPropertyLib::createTemperatureDependentDiffusion ( BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__TemperatureDependentDiffusion__reference_diffusion
Input File Parameter
properties__property__TemperatureDependentDiffusion__activation_energy
Input File Parameter
properties__property__TemperatureDependentDiffusion__reference_temperature

Definition at line 16 of file CreateTemperatureDependentDiffusion.cpp.

19{
21 config.checkConfigParameter("type", "TemperatureDependentDiffusion");
22
25 config.getConfigParameter<std::string>("reference_diffusion"),
26 parameters, 0, nullptr);
27
28 auto const Ea =
30 config.getConfigParameter<double>("activation_energy");
31
32 auto const T0 =
34 config.getConfigParameter<double>("reference_temperature");
35
36 return std::make_unique<TemperatureDependentDiffusion>(D0, Ea, T0);
37}

References BaseLib::ConfigTree::checkConfigParameter(), ParameterLib::findParameter(), and BaseLib::ConfigTree::getConfigParameter().

◆ createTemperatureDependentFraction()

std::unique_ptr< TemperatureDependentFraction > MaterialPropertyLib::createTemperatureDependentFraction ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__TemperatureDependentFraction__steepness
Input File Parameter
properties__property__TemperatureDependentFraction__characteristic_temperature

Definition at line 16 of file CreateTemperatureDependentFraction.cpp.

17{
19 config.checkConfigParameter("type", "TemperatureDependentFraction");
20
21 // Second access for storage.
23 auto property_name = config.peekConfigParameter<std::string>("name");
24
25 DBUG("Create temperature dependent fraction property {:s}.", property_name);
26
27 auto const k =
29 config.getConfigParameter<double>("steepness");
30
31 auto const T_c =
33 config.getConfigParameter<double>("characteristic_temperature");
34
35 return std::make_unique<MaterialPropertyLib::TemperatureDependentFraction>(
36 std::move(property_name), k, T_c);
37}
constexpr double T_c
Critical temperature.

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), BaseLib::ConfigTree::peekConfigParameter(), and T_c.

◆ createTransportPorosityFromMassBalance()

std::unique_ptr< TransportPorosityFromMassBalance > MaterialPropertyLib::createTransportPorosityFromMassBalance ( BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__TransportPorosityFromMassBalance__initial_porosity
Input File Parameter
properties__property__TransportPorosityFromMassBalance__minimal_porosity
Input File Parameter
properties__property__TransportPorosityFromMassBalance__maximal_porosity

Definition at line 19 of file CreateTransportPorosityFromMassBalance.cpp.

22{
24 config.checkConfigParameter("type", "TransportPorosityFromMassBalance");
25
26 // Second access for storage.
28 auto property_name = config.peekConfigParameter<std::string>("name");
29
30 DBUG("Create TransportPorosityFromMassBalance medium property {:s}.",
31 property_name);
32
33 std::string const& parameter_name =
35 config.getConfigParameter<std::string>("initial_porosity");
36 auto const& initial_porosity = ParameterLib::findParameter<double>(
37 parameter_name, parameters, 0, nullptr);
38
40 auto const& phi_min = config.getConfigParameter<double>("minimal_porosity");
41
43 auto const& phi_max = config.getConfigParameter<double>("maximal_porosity");
44
45 return std::make_unique<TransportPorosityFromMassBalance>(
46 std::move(property_name), initial_porosity, phi_min, phi_max);
47}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createVapourDiffusionDeVries()

std::unique_ptr< Property > MaterialPropertyLib::createVapourDiffusionDeVries ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__VapourDiffusionDeVries__base_diffusion_coefficient
Input File Parameter
properties__property__VapourDiffusionDeVries__exponent

Definition at line 20 of file CreateVapourDiffusionDeVries.cpp.

22{
24 config.checkConfigParameter("type", "VapourDiffusionDeVries");
25 DBUG("Create VapourDiffusionDeVries phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
31 double const base_diffusion_coefficient =
33 config.getConfigParameter<double>("base_diffusion_coefficient", 5.9e-6);
34
35 double const exponent =
37 config.getConfigParameter<double>("exponent", 2.3);
38
39 return std::make_unique<VapourDiffusionDeVries>(
40 std::move(property_name), base_diffusion_coefficient, exponent);
41}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createVapourDiffusionFEBEX()

std::unique_ptr< Property > MaterialPropertyLib::createVapourDiffusionFEBEX ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__VapourDiffusionFEBEX__base_diffusion_coefficient
Input File Parameter
properties__property__VapourDiffusionFEBEX__exponent

Definition at line 20 of file CreateVapourDiffusionFEBEX.cpp.

22{
24 config.checkConfigParameter("type", "VapourDiffusionFEBEX");
25 DBUG("Create VapourDiffusionFEBEX phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
31 double const base_diffusion_coefficient =
33 config.getConfigParameter<double>("base_diffusion_coefficient",
34 2.16e-5);
35
36 double const exponent =
38 config.getConfigParameter<double>("exponent", 1.8);
39
40 return std::make_unique<VapourDiffusionFEBEX>(
41 std::move(property_name), base_diffusion_coefficient, exponent);
42}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createVapourDiffusionPMQ()

std::unique_ptr< Property > MaterialPropertyLib::createVapourDiffusionPMQ ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__VapourDiffusionPMQ__base_diffusion_coefficient
Input File Parameter
properties__property__VapourDiffusionPMQ__exponent
Input File Parameter
properties__property__VapourDiffusionPMQ

Definition at line 20 of file CreateVapourDiffusionPMQ.cpp.

22{
24 config.checkConfigParameter("type", "VapourDiffusionPMQ");
25 DBUG("Create VapourDiffusionPMQ phase property");
26
28 auto property_name = config.peekConfigParameter<std::string>("name");
29
30 double const base_diffusion_coefficient =
32 config.getConfigParameter<double>("base_diffusion_coefficient",
33 2.16e-5);
34
35 double const exponent =
37 config.getConfigParameter<double>("exponent", 1.8);
38
40 return std::make_unique<VapourDiffusionPMQ>(
41 std::move(property_name), base_diffusion_coefficient, exponent);
42}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), BaseLib::ConfigTree::getConfigParameter(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createVermaPruessModel()

std::unique_ptr< Property > MaterialPropertyLib::createVermaPruessModel ( BaseLib::ConfigTree const & config,
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const & parameters )
Input File Parameter
properties__property__type
Input File Parameter
properties__property__VermaPruessModel__initial_permeability
Input File Parameter
properties__property__VermaPruessModel__initial_porosity
Input File Parameter
properties__property__VermaPruessModel__critical_porosity
Input File Parameter
properties__property__VermaPruessModel__exponent

Definition at line 18 of file CreateVermaPruessModel.cpp.

21{
23 config.checkConfigParameter("type", "VermaPruess");
24 DBUG("Create Verma-Pruess model.");
25
28 config.getConfigParameter<std::string>("initial_permeability"),
29 parameters, 0, nullptr);
30
31 auto const& phi0 = ParameterLib::findParameter<double>(
33 config.getConfigParameter<std::string>("initial_porosity"), parameters,
34 1, nullptr);
35
36 auto const& phi_c = ParameterLib::findParameter<double>(
38 config.getConfigParameter<std::string>("critical_porosity"), parameters,
39 1, nullptr);
40
43 config.getConfigParameter<std::string>("exponent"), parameters, 1,
44 nullptr);
45
46 return std::make_unique<VermaPruessModel>(k0, phi0, phi_c, n);
47}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), ParameterLib::findParameter(), and BaseLib::ConfigTree::getConfigParameter().

◆ createVolumeFractionAverage()

std::unique_ptr< VolumeFractionAverage > MaterialPropertyLib::createVolumeFractionAverage ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__VolumeFractionAverage

Definition at line 15 of file CreateVolumeFractionAverage.cpp.

17{
19 config.checkConfigParameter("type", "VolumeFractionAverage");
20
21 // Second access for storage.
23 auto property_name = config.peekConfigParameter<std::string>("name");
24
26 DBUG("Create volume fraction average {:s}.", property_name);
27
28 // no input parameters required here (taken from phase properties)
29
30 return std::make_unique<MaterialPropertyLib::VolumeFractionAverage>(
31 std::move(property_name));
32}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterDensityIAPWSIF97Region1()

std::unique_ptr< Property > MaterialPropertyLib::createWaterDensityIAPWSIF97Region1 ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterDensityIAPWSIF97Region1

Definition at line 20 of file CreateWaterDensityIAPWSIF97Region1.cpp.

22{
24 config.checkConfigParameter("type", "WaterDensityIAPWSIF97Region1");
25 DBUG("Create WaterDensityIAPWSIF97Region1 phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<WaterDensityIAPWSIF97Region1>(
33 std::move(property_name));
34}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterEnthalpyIAPWSIF97Region1()

std::unique_ptr< Property > MaterialPropertyLib::createWaterEnthalpyIAPWSIF97Region1 ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterEnthalpyIAPWSIF97Region1

Definition at line 20 of file CreateWaterEnthalpyIAPWSIF97Region1.cpp.

22{
24 config.checkConfigParameter("type", "WaterEnthalpyIAPWSIF97Region1");
25 DBUG("Create WaterEnthalpyIAPWSIF97Region1 phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<WaterEnthalpyIAPWSIF97Region1>(
33 std::move(property_name));
34}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterLiquidDensityIAPWSIF97Region4()

std::unique_ptr< Property > MaterialPropertyLib::createWaterLiquidDensityIAPWSIF97Region4 ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterLiquidDensityIAPWSIF97Region4

Definition at line 20 of file CreateWaterLiquidDensityIAPWSIF97Region4.cpp.

22{
24 config.checkConfigParameter("type", "WaterLiquidDensityIAPWSIF97Region4");
25 DBUG("Create WaterLiquidDensityIAPWSIF97Region4 phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<WaterLiquidDensityIAPWSIF97Region4>(
33 std::move(property_name));
34}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterLiquidEnthalpyIAPWSIF97Region4()

std::unique_ptr< Property > MaterialPropertyLib::createWaterLiquidEnthalpyIAPWSIF97Region4 ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterLiquidEnthalpyIAPWSIF97Region4

Definition at line 20 of file CreateWaterLiquidEnthalpyIAPWSIF97Region4.cpp.

22{
24 config.checkConfigParameter("type", "WaterLiquidEnthalpyIAPWSIF97Region4");
25 DBUG("Create WaterLiquidEnthalpyIAPWSIF97Region4 phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<WaterLiquidEnthalpyIAPWSIF97Region4>(
33 std::move(property_name));
34}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterSaturationTemperatureIAPWSIF97Region4()

std::unique_ptr< Property > MaterialPropertyLib::createWaterSaturationTemperatureIAPWSIF97Region4 ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterSaturationTemperatureIAPWSIF97Region4

Definition at line 20 of file CreateWaterSaturationTemperatureIAPWSIF97Region4.cpp.

22{
24 config.checkConfigParameter("type",
25 "WaterSaturationTemperatureIAPWSIF97Region4");
26 DBUG("Create WaterSaturationTemperatureIAPWSIF97Region4 phase property");
27
28 // Second access for storage.
30 auto property_name = config.peekConfigParameter<std::string>("name");
31
33 return std::make_unique<WaterSaturationTemperatureIAPWSIF97Region4>(
34 std::move(property_name));
35}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterTemperatureIAPWSIF97Region1()

std::unique_ptr< Property > MaterialPropertyLib::createWaterTemperatureIAPWSIF97Region1 ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterTemperatureIAPWSIF97Region1

Definition at line 20 of file CreateWaterTemperatureIAPWSIF97Region1.cpp.

22{
24 config.checkConfigParameter("type", "WaterTemperatureIAPWSIF97Region1");
25 DBUG("Create WaterTemperatureIAPWSIF97Region1 phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<WaterTemperatureIAPWSIF97Region1>(
33 std::move(property_name));
34}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterThermalConductivityIAPWS()

std::unique_ptr< Property > MaterialPropertyLib::createWaterThermalConductivityIAPWS ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterThermalConductivityIAPWS

Definition at line 20 of file CreateWaterThermalConductivityIAPWS.cpp.

22{
24 config.checkConfigParameter("type", "WaterThermalConductivityIAPWS");
25 DBUG("Create WaterThermalConductivityIAPWS phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<WaterThermalConductivityIAPWS>(
33 std::move(property_name));
34}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterVapourDensity()

std::unique_ptr< Property > MaterialPropertyLib::createWaterVapourDensity ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterVapourDensity

Definition at line 20 of file CreateWaterVapourDensity.cpp.

22{
24 config.checkConfigParameter("type", "WaterVapourDensity");
25 DBUG("Create WaterVapourDensity phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<WaterVapourDensity>(std::move(property_name));
33}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterVapourDensityIAPWSIF97Region4()

std::unique_ptr< Property > MaterialPropertyLib::createWaterVapourDensityIAPWSIF97Region4 ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterVapourDensityIAPWSIF97Region4

Definition at line 20 of file CreateWaterVapourDensityIAPWSIF97Region4.cpp.

22{
24 config.checkConfigParameter("type", "WaterVapourDensityIAPWSIF97Region4");
25 DBUG("Create WaterVapourDensityIAPWSIF97Region4 phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<WaterVapourDensityIAPWSIF97Region4>(
33 std::move(property_name));
34}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterVapourEnthalpyIAPWSIF97Region4()

std::unique_ptr< Property > MaterialPropertyLib::createWaterVapourEnthalpyIAPWSIF97Region4 ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterVapourEnthalpyIAPWSIF97Region4

Definition at line 20 of file CreateWaterVapourEnthalpyIAPWSIF97Region4.cpp.

22{
24 config.checkConfigParameter("type", "WaterVapourEnthalpyIAPWSIF97Region4");
25 DBUG("Create WaterVapourEnthalpyIAPWSIF97Region4 phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<WaterVapourEnthalpyIAPWSIF97Region4>(
33 std::move(property_name));
34}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterVapourLatentHeatWithCriticalTemperature()

std::unique_ptr< Property > MaterialPropertyLib::createWaterVapourLatentHeatWithCriticalTemperature ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterVapourLatentHeatWithCriticalTemperature

Definition at line 20 of file CreateWaterVapourLatentHeatWithCriticalTemperature.cpp.

22{
24 config.checkConfigParameter("type",
25 "WaterVapourLatentHeatWithCriticalTemperature");
26 DBUG("Create WaterVapourLatentHeatWithCriticalTemperature phase property");
27
28 // Second access for storage.
30 auto property_name = config.peekConfigParameter<std::string>("name");
31
33 return std::make_unique<WaterVapourLatentHeatWithCriticalTemperature>(
34 std::move(property_name));
35}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ createWaterViscosityIAPWS()

std::unique_ptr< Property > MaterialPropertyLib::createWaterViscosityIAPWS ( BaseLib::ConfigTree const & config)
Input File Parameter
properties__property__type
Input File Parameter
properties__property__name
Input File Parameter
properties__property__WaterViscosityIAPWS

Definition at line 20 of file CreateWaterViscosityIAPWS.cpp.

22{
24 config.checkConfigParameter("type", "WaterViscosityIAPWS");
25 DBUG("Create WaterViscosityIAPWS phase property");
26
27 // Second access for storage.
29 auto property_name = config.peekConfigParameter<std::string>("name");
30
32 return std::make_unique<WaterViscosityIAPWS>(std::move(property_name));
33}

References BaseLib::ConfigTree::checkConfigParameter(), DBUG(), and BaseLib::ConfigTree::peekConfigParameter().

◆ dropConst()

static VariableArray::VariablePointer MaterialPropertyLib::dropConst ( VariableArray::VariablePointerConst const const_pointer)
static

Definition at line 105 of file VariableType.cpp.

107{
108 return std::visit(
109 []<typename T>(T const* ptr) -> VariableArray::VariablePointer
110 { return const_cast<T*>(ptr); },
111 const_pointer);
112}
std::variant< Scalar *, KelvinVector *, DeformationGradient * > VariablePointer

Referenced by MaterialPropertyLib::VariableArray::address_of().

◆ dsaturatedVaporDensitydT()

static double MaterialPropertyLib::dsaturatedVaporDensitydT ( double const T)
static

\(\frac{\partial \rho_{vS}}{\partial T}\)

Definition at line 29 of file WaterVapourDensity.cpp.

30{
31 return 4.9759 * std::exp(19.819 - 4975.9 / T) / (T * T);
32}

Referenced by MaterialPropertyLib::WaterVapourDensity::dValue().

◆ evaluateExpressions()

static PropertyDataType MaterialPropertyLib::evaluateExpressions ( std::vector< Variable > const & variables,
VariableArray const & new_variable_array,
std::vector< exprtk::expression< double > > const & expressions,
VariableArray & variable_array,
std::mutex & mutex )
static

Definition at line 242 of file Function.cpp.

248{
249 std::vector<double> result(expressions.size());
250
251 {
252 std::lock_guard lock_guard(mutex);
253 updateVariableArrayValues(variables, new_variable_array,
254 variable_array);
255
256 std::transform(begin(expressions), end(expressions), begin(result),
257 [](auto const& e) { return e.value(); });
258 }
259
260 switch (result.size())
261 {
262 case 1:
263 {
264 return result[0];
265 }
266 case 2:
267 {
268 return Eigen::Vector2d{result[0], result[1]};
269 }
270 case 3:
271 {
272 return Eigen::Vector3d{result[0], result[1], result[2]};
273 }
274 case 4:
275 {
276 Eigen::Matrix<double, 2, 2> m;
277 m = Eigen::Map<Eigen::Matrix<double, 2, 2> const>(result.data(), 2,
278 2);
279 return m;
280 }
281 case 9:
282 {
283 Eigen::Matrix<double, 3, 3> m;
284 m = Eigen::Map<Eigen::Matrix<double, 3, 3> const>(result.data(), 3,
285 3);
286 return m;
287 }
288 }
289 OGS_FATAL("Cannot convert a vector of size {} to a PropertyDataType",
290 result.size());
291}
static void updateVariableArrayValues(std::vector< Variable > const &variables, VariableArray const &new_variable_array, VariableArray &variable_array)
Definition Function.cpp:144

References OGS_FATAL, and updateVariableArrayValues().

Referenced by MaterialPropertyLib::Function::dValue(), and MaterialPropertyLib::Function::value().

◆ fluidPhase()

Phase const & MaterialPropertyLib::fluidPhase ( Medium const & medium)

Returns a gas or aqueous liquid phase of the given medium.

Definition at line 100 of file Medium.cpp.

101{
102 if (medium.hasPhase("Gas"))
103 {
104 return medium.phase("Gas");
105 }
106 if (medium.hasPhase("AqueousLiquid"))
107 {
108 return medium.phase("AqueousLiquid");
109 }
110 OGS_FATAL(
111 "Neither Gas nor AqueousLiquid phase is available for the medium, but "
112 "a fluid phase was requested.");
113}

References MaterialPropertyLib::Medium::hasPhase(), OGS_FATAL, and MaterialPropertyLib::Medium::phase().

◆ formEffectiveThermalConductivity()

template<int GlobalDim>
Eigen::Matrix< double, GlobalDim, GlobalDim > MaterialPropertyLib::formEffectiveThermalConductivity ( MaterialPropertyLib::PropertyDataType const & solid_thermal_conductivity,
const double fluid_thermal_conductivity,
const double porosity )

Definition at line 19 of file FormEffectiveThermalConductivity.cpp.

22{
23 return (1.0 - porosity) *
24 formEigenTensor<GlobalDim>(solid_thermal_conductivity) +
25 porosity * fluid_thermal_conductivity *
26 Eigen::Matrix<double, GlobalDim, GlobalDim>::Identity();
27}

References formEigenTensor(), and porosity.

Referenced by ProcessLib::ThermalTwoPhaseFlowWithPP::ThermalTwoPhaseFlowWithPPLocalAssembler< ShapeFunction, GlobalDim >::assemble().

◆ formEffectiveThermalConductivity< 1 >()

template Eigen::Matrix< double, 1, 1 > MaterialPropertyLib::formEffectiveThermalConductivity< 1 > ( MaterialPropertyLib::PropertyDataType const & solid_thermal_conductivity,
const double fluid_thermal_conductivity,
const double porosity )

◆ formEffectiveThermalConductivity< 2 >()

template Eigen::Matrix< double, 2, 2 > MaterialPropertyLib::formEffectiveThermalConductivity< 2 > ( MaterialPropertyLib::PropertyDataType const & solid_thermal_conductivity,
const double fluid_thermal_conductivity,
const double porosity )

◆ formEffectiveThermalConductivity< 3 >()

template Eigen::Matrix< double, 3, 3 > MaterialPropertyLib::formEffectiveThermalConductivity< 3 > ( MaterialPropertyLib::PropertyDataType const & solid_thermal_conductivity,
const double fluid_thermal_conductivity,
const double porosity )

◆ formEigenTensor()

template<int GlobalDim>
Eigen::Matrix< double, GlobalDim, GlobalDim > MaterialPropertyLib::formEigenTensor ( MaterialPropertyLib::PropertyDataType const & values)

Definition at line 115 of file FormEigenTensor.cpp.

117{
118 return std::visit(FormEigenTensor<GlobalDim>(), values);
119}

Referenced by ProcessLib::HeatConduction::LocalAssemblerData< ShapeFunction, GlobalDim >::assemble(), ProcessLib::HT::MonolithicHTFEM< ShapeFunction, GlobalDim >::assemble(), ProcessLib::LiquidFlow::LiquidFlowLocalAssembler< ShapeFunction, GlobalDim >::assemble(), ProcessLib::RichardsComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::assemble(), ProcessLib::RichardsFlow::LocalAssemblerData< ShapeFunction, GlobalDim >::assemble(), ProcessLib::RichardsMechanics::RichardsMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::assemble(), ProcessLib::SteadyStateDiffusion::LocalAssemblerData< ShapeFunction, GlobalDim >::assemble(), ProcessLib::StokesFlow::LocalAssemblerData< ShapeFunctionLiquidVelocity, ShapeFunctionPressure, GlobalDim >::assemble(), ProcessLib::ThermalTwoPhaseFlowWithPP::ThermalTwoPhaseFlowWithPPLocalAssembler< ShapeFunction, GlobalDim >::assemble(), ProcessLib::ThermoRichardsFlow::ThermoRichardsFlowLocalAssembler< ShapeFunction, GlobalDim >::assemble(), ProcessLib::TwoPhaseFlowWithPP::TwoPhaseFlowWithPPLocalAssembler< ShapeFunction, GlobalDim >::assemble(), ProcessLib::TwoPhaseFlowWithPrho::TwoPhaseFlowWithPrhoLocalAssembler< ShapeFunction, GlobalDim >::assemble(), ProcessLib::ComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::assembleBlockMatrices(), ProcessLib::ComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::assembleComponentTransportEquation(), ProcessLib::ComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::assembleHeatTransportEquation(), ProcessLib::HT::StaggeredHTFEM< ShapeFunction, GlobalDim >::assembleHeatTransportEquation(), ProcessLib::ComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::assembleHydraulicEquation(), ProcessLib::HT::StaggeredHTFEM< ShapeFunction, GlobalDim >::assembleHydraulicEquation(), ProcessLib::LiquidFlow::LiquidFlowLocalAssembler< ShapeFunction, GlobalDim >::assembleMatrixAndVector(), ProcessLib::HeatConduction::LocalAssemblerData< ShapeFunction, GlobalDim >::assembleWithJacobian(), ProcessLib::HydroMechanics::HydroMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::assembleWithJacobian(), ProcessLib::ThermoMechanics::ThermoMechanicsLocalAssembler< ShapeFunction, DisplacementDim >::assembleWithJacobian(), ProcessLib::ThermoRichardsFlow::ThermoRichardsFlowLocalAssembler< ShapeFunction, GlobalDim >::assembleWithJacobian(), ProcessLib::ComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::assembleWithJacobianComponentTransportEquation(), ProcessLib::RichardsMechanics::RichardsMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::assembleWithJacobianEvalConstitutiveSetting(), ProcessLib::ThermoMechanics::ThermoMechanicsLocalAssembler< ShapeFunction, DisplacementDim >::assembleWithJacobianForHeatConductionEquations(), ProcessLib::HydroMechanics::HydroMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::assembleWithJacobianForPressureEquations(), ProcessLib::ComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::assembleWithJacobianHydraulicEquation(), ProcessLib::ComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::calculateIntPtDarcyVelocity(), ProcessLib::LiquidFlow::LiquidFlowLocalAssembler< ShapeFunction, GlobalDim >::computeProjectedDarcyVelocity(), ProcessLib::RichardsMechanics::RichardsMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::computeSecondaryVariableConcrete(), ProcessLib::ThermoRichardsFlow::ThermoRichardsFlowLocalAssembler< ShapeFunction, GlobalDim >::computeSecondaryVariableConcrete(), ProcessLib::TH2M::ConstitutiveRelations::ThermalConductivityModel< DisplacementDim >::dEval(), ProcessLib::TH2M::ConstitutiveRelations::PermeabilityModel< DisplacementDim >::eval(), ProcessLib::TH2M::ConstitutiveRelations::ThermalConductivityModel< DisplacementDim >::eval(), ProcessLib::ThermoRichardsMechanics::PermeabilityModel< DisplacementDim >::eval(), ProcessLib::ThermoRichardsMechanics::ThermoOsmosisModel< DisplacementDim >::eval(), ProcessLib::ThermoRichardsMechanics::TRMHeatStorageAndFluxModel< DisplacementDim >::eval(), formEffectiveThermalConductivity(), ProcessLib::ComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::getFlux(), ProcessLib::HT::HTFEM< ShapeFunction, GlobalDim >::getFlux(), ProcessLib::LiquidFlow::LiquidFlowLocalAssembler< ShapeFunction, GlobalDim >::getFlux(), ProcessLib::SteadyStateDiffusion::LocalAssemblerData< ShapeFunction, GlobalDim >::getFlux(), ProcessLib::HydroMechanics::HydroMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::getIntPtDarcyVelocity(), ProcessLib::LiquidFlow::LiquidFlowLocalAssembler< ShapeFunction, GlobalDim >::getIntPtDarcyVelocity(), ProcessLib::RichardsComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::getIntPtDarcyVelocity(), ProcessLib::RichardsFlow::LocalAssemblerData< ShapeFunction, GlobalDim >::getIntPtDarcyVelocity(), ProcessLib::SteadyStateDiffusion::LocalAssemblerData< ShapeFunction, GlobalDim >::getIntPtDarcyVelocity(), ProcessLib::HT::HTFEM< ShapeFunction, GlobalDim >::getIntPtDarcyVelocityLocal(), ProcessLib::HeatConduction::LocalAssemblerData< ShapeFunction, GlobalDim >::getIntPtHeatFlux(), ProcessLib::ComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::getIntPtMolarFlux(), ProcessLib::ComponentTransport::LocalAssemblerData< ShapeFunction, GlobalDim >::getThermalConductivityDispersivity(), ProcessLib::HT::HTFEM< ShapeFunction, GlobalDim >::getThermalConductivityDispersivity(), ProcessLib::ThermoHydroMechanics::ThermoHydroMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::updateConstitutiveRelations(), and MaterialPropertyLib::EffectiveThermalConductivityPorosityMixing< GlobalDim >::value().

◆ formEigenTensor< 1 >()

template Eigen::Matrix< double, 1, 1 > MaterialPropertyLib::formEigenTensor< 1 > ( MaterialPropertyLib::PropertyDataType const & values)

◆ formEigenTensor< 2 >()

template Eigen::Matrix< double, 2, 2 > MaterialPropertyLib::formEigenTensor< 2 > ( MaterialPropertyLib::PropertyDataType const & values)

◆ formEigenTensor< 3 >()

◆ formEigenTensor< 4 >()

template Eigen::Matrix< double, 4, 4 > MaterialPropertyLib::formEigenTensor< 4 > ( MaterialPropertyLib::PropertyDataType const & values)

◆ formEigenTensor< 6 >()

template Eigen::Matrix< double, 6, 6 > MaterialPropertyLib::formEigenTensor< 6 > ( MaterialPropertyLib::PropertyDataType const & values)

◆ formEigenVector()

template<int GlobalDim>
Eigen::Matrix< double, GlobalDim, 1 > MaterialPropertyLib::formEigenVector ( MaterialPropertyLib::PropertyDataType const & values)

Definition at line 90 of file FormEigenVector.cpp.

◆ formEigenVector< 1 >()

template Eigen::Matrix< double, 1, 1 > MaterialPropertyLib::formEigenVector< 1 > ( MaterialPropertyLib::PropertyDataType const & values)

◆ formEigenVector< 2 >()

template Eigen::Matrix< double, 2, 1 > MaterialPropertyLib::formEigenVector< 2 > ( MaterialPropertyLib::PropertyDataType const & values)

◆ formEigenVector< 3 >()

◆ formKelvinVector()

template<int GlobalDim>
MathLib::KelvinVector::KelvinVectorType< GlobalDim > MaterialPropertyLib::formKelvinVector ( MaterialPropertyLib::PropertyDataType const & values)

A function to form a Kelvin vector from strain or stress alike property like thermal expansivity for thermal strain.

It takes either a scalar number for isotropic thermal expansion or a three element vector or a 3 x 3 matrix for anisotropic properties, to get a Kelvin vector for strain or stress.

Parameters
valuese.g., Thermal expansivity, which can be scalar number, a three element vector or a 3 x 3 matrix.
Returns
Kelvin vector type property.

Definition at line 82 of file FormKelvinVector.cpp.

Referenced by ProcessLib::ThermoMechanics::ThermoMechanicsLocalAssembler< ShapeFunction, DisplacementDim >::assembleWithJacobian(), ProcessLib::ThermoMechanics::ThermoMechanicsLocalAssembler< ShapeFunction, DisplacementDim >::assembleWithJacobianForDeformationEquations(), ProcessLib::TH2M::ConstitutiveRelations::SolidThermalExpansionModel< DisplacementDim >::eval(), ProcessLib::ThermoRichardsMechanics::SolidThermalExpansionModel< DisplacementDim >::eval(), and ProcessLib::ThermoHydroMechanics::ThermoHydroMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::updateConstitutiveRelations().

◆ formKelvinVector< 2 >()

◆ formKelvinVector< 3 >()

◆ fromVector()

PropertyDataType MaterialPropertyLib::fromVector ( std::vector< double > const & values)

Conversion of a vector to PropertyDataType for different sizes of the vector.

Attention
This method cannot distinguish between 2x2 matrix and 4x1 vector.
Note
If the values vector stores all elements of a 2x2 or 3x3 matrix (i.e. the general case for 2x2 and 3x3 matrices), it is assumed to be in row major storage order.

Definition at line 23 of file Property.cpp.

24{
25 switch (values.size())
26 {
27 case 1:
28 {
29 return values[0];
30 }
31 case 2:
32 {
33 return Eigen::Vector2d{values[0], values[1]};
34 }
35 case 3:
36 {
37 return Eigen::Vector3d{values[0], values[1], values[2]};
38 }
39 case 4:
40 {
41 using M = Eigen::Matrix2d;
42 // the values vector is in row major order
43 using MRM = Eigen::Matrix<double, 2, 2, Eigen::RowMajor>;
44 return M{Eigen::Map<MRM const>{values.data(), 2, 2}};
45 }
46 case 6:
47 {
48 // Symmetric Tensor - xx, yy, zz, xy, xz, yz
49 using M = Eigen::Matrix<double, 6, 1>;
50 return M{Eigen::Map<M const>{values.data(), 6}};
51 }
52 case 9:
53 {
54 using M = Eigen::Matrix3d;
55 // the values vector is in row major order
56 using MRM = Eigen::Matrix<double, 3, 3, Eigen::RowMajor>;
57 return M{Eigen::Map<MRM const>{values.data(), 3, 3}};
58 }
59 default:
60 {
62 "Conversion of a {:d}-vector to PropertyDataType is not "
63 "implemented.",
64 values.size());
65 }
66 }
67}

References OGS_FATAL.

Referenced by createConstant(), MaterialPropertyLib::OrthotropicEmbeddedFracturePermeability< DisplacementDim >::dValue(), MaterialPropertyLib::SaturationWeightedThermalConductivity< MeantType, GlobalDimension >::dValue(), MaterialPropertyLib::PorosityFromMassBalance::initialValue(), MaterialPropertyLib::TransportPorosityFromMassBalance::initialValue(), MaterialPropertyLib::DupuitPermeability::value(), MaterialPropertyLib::GasPressureDependentPermeability< DisplacementDim >::value(), MaterialPropertyLib::KozenyCarmanModel::value(), MaterialPropertyLib::OrthotropicEmbeddedFracturePermeability< DisplacementDim >::value(), MaterialPropertyLib::Parameter::value(), MaterialPropertyLib::Parameter::value(), MaterialPropertyLib::PermeabilityMohrCoulombFailureIndexModel< DisplacementDim >::value(), MaterialPropertyLib::SaturationWeightedThermalConductivity< MeantType, GlobalDimension >::value(), MaterialPropertyLib::StrainDependentPermeability< DisplacementDim >::value(), MaterialPropertyLib::TemperatureDependentDiffusion::value(), and MaterialPropertyLib::VermaPruessModel::value().

◆ getLiquidThermalExpansivity()

double MaterialPropertyLib::getLiquidThermalExpansivity ( Phase const & phase,
VariableArray const & vars,
const double density,
ParameterLib::SpatialPosition const & pos,
double const t,
double const dt )

It gets the thermal expansion coefficient.

If the the thermal expansion coefficient is given in the project file via the media property of thermal_expansivity, e.g

*     <property>
*       <name>thermal_expansivity</name>
*       <type>Constant</type>
*       <value>2.07e-4</value>
*     </property>
* 

it returns the value of the given property. Otherwise it returns the value computed from the density model by the following formula

\[ (\frac{\partial \rho}{\partial T})/\rho \]

where \(\rho\) is the density, \(T\) is the temperature.

Definition at line 21 of file GetLiquidThermalExpansivity.cpp.

26{
27 // The thermal expansivity is explicitly given in the project file.
28 if (phase.hasProperty(
30 {
31 return phase
33 .template value<double>(vars, pos, t, dt);
34 }
35
36 // The thermal expansivity calculated by the density model directly.
37 return (density == 0.0)
38 ? 0.0
40 .template dValue<double>(
42 pos, t, dt) /
43 density;
44}

References density, MaterialPropertyLib::Phase::hasProperty(), MaterialPropertyLib::Phase::property(), temperature, and thermal_expansivity.

Referenced by ProcessLib::ThermoRichardsFlow::ThermoRichardsFlowLocalAssembler< ShapeFunction, GlobalDim >::assemble(), ProcessLib::ThermoRichardsFlow::ThermoRichardsFlowLocalAssembler< ShapeFunction, GlobalDim >::assembleWithJacobian(), ProcessLib::ThermoRichardsMechanics::FluidThermalExpansionModel< DisplacementDim >::eval(), and ProcessLib::ThermoHydroMechanics::ThermoHydroMechanicsLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::updateConstitutiveRelations().

◆ getSymmetricTensor()

◆ getSymmetricTensor< 2 >()

template Eigen::Matrix< double, 4, 1 > MaterialPropertyLib::getSymmetricTensor< 2 > ( MaterialPropertyLib::PropertyDataType const & values)

◆ getSymmetricTensor< 3 >()

template Eigen::Matrix< double, 6, 1 > MaterialPropertyLib::getSymmetricTensor< 3 > ( MaterialPropertyLib::PropertyDataType const & values)

◆ humidity()

static double MaterialPropertyLib::humidity ( double const T,
double const p,
double const water_density )
static

◆ newComponent()

std::unique_ptr< Component > MaterialPropertyLib::newComponent ( std::string const & component_name,
bool & isCustomComponent )

Method for creating a new component based on the specified component name.

This function creates a new component based on the (optional) component name that is given in the prj-file.

The method evaluates the string in the 'name'-object and calls the constructors of the derived component classes (if found) or that of the base class (if no name is specified).

◆ overwriteExistingProperties()

void MaterialPropertyLib::overwriteExistingProperties ( PropertyArray & properties,
PropertyArray & new_properties,
std::variant< Medium *, Phase *, Component * > scale_pointer )
inline

Definition at line 322 of file Property.h.

327{
328 for (std::size_t i = 0; i < properties.size(); ++i)
329 {
330 if (new_properties[i] != nullptr)
331 {
332 properties[i] = std::move(new_properties[i]);
333 properties[i]->setScale(scale_pointer);
334 }
335 }
336}

Referenced by MaterialPropertyLib::Component::Component(), MaterialPropertyLib::Medium::Medium(), and MaterialPropertyLib::Phase::Phase().

◆ saturatedVaporDensity()

static double MaterialPropertyLib::saturatedVaporDensity ( double const T)
static

\(\rho_{vS}\)

Definition at line 23 of file WaterVapourDensity.cpp.

24{
25 return 1.0e-3 * std::exp(19.819 - 4975.9 / T);
26}

Referenced by MaterialPropertyLib::WaterVapourDensity::dValue(), and MaterialPropertyLib::WaterVapourDensity::value().

◆ tensorSize()

int MaterialPropertyLib::tensorSize ( int dim)
constexpr

See Tensor type for details.

Definition at line 19 of file Tensor.h.

20{
21 if (dim == 1)
22 {
23 return 3; // Diagonal entries.
24 }
25 if (dim == 2)
26 {
27 return 5; // 2x2 matrix and the 3rd diagonal entry.
28 }
29 if (dim == 3)
30 {
31 return 9; // Full 3x3 matrix.
32 }
33 OGS_FATAL("Tensor size for dimension {} is not defined.", dim);
34}

References OGS_FATAL.

Referenced by ProcessLib::LargeDeformation::computeSigmaGeom(), MaterialLib::Solids::MFront::Variable< Derived >::rows(), and MaterialLib::Solids::MFront::OGSMFrontTangentOperatorBlocksView< DisplacementDim, ForcesGradsCombinations >::size().

◆ updatePropertiesForAllPhases()

void MaterialPropertyLib::updatePropertiesForAllPhases ( PropertyArray & properties,
std::vector< std::unique_ptr< Phase > > const & phases )
inline

Definition at line 338 of file Property.h.

341{
342 for (auto& p : properties)
343 {
344 if (p != nullptr)
345 {
346 p->setProperties(phases);
347 }
348 }
349}

Referenced by MaterialPropertyLib::Medium::Medium().

◆ updateVariableArrayValues()

static void MaterialPropertyLib::updateVariableArrayValues ( std::vector< Variable > const & variables,
VariableArray const & new_variable_array,
VariableArray & variable_array )
static

Definition at line 144 of file Function.cpp.

147{
148 for (auto const& variable : variables)
149 {
150 auto assign_scalar =
151 [&variable, &new_variable_array](VariableArray::Scalar* address)
152 {
153 double const value = *std::get<VariableArray::Scalar const*>(
154 new_variable_array.address_of(variable));
155
156 if (std::isnan(value))
157 {
158 OGS_FATAL(
159 "Function property: Scalar variable '{:s}' is not "
160 "initialized.",
161 variable_enum_to_string[static_cast<int>(variable)]);
162 }
163
164 *address = value;
165 };
166 auto assign_kelvin_vector = [&variable, &new_variable_array](
167 VariableArray::KelvinVector* address)
168 {
169 auto assign_value = [&destination = *address,
170 &variable]<typename S>(S const& source)
171 {
172 if constexpr (std::is_same_v<S, std::monostate>)
173 {
174 OGS_FATAL(
175 "Function property: Kelvin vector variable '{:s}' is "
176 "not initialized.",
177 variable_enum_to_string[static_cast<int>(variable)]);
178 }
179 else
180 {
181 if (std::holds_alternative<S>(destination))
182 {
183 std::get<S>(destination) = MathLib::KelvinVector::
185 }
186 else
187 {
188 OGS_FATAL(
189 "Function property: Mismatch of Kelvin vector "
190 "sizes for variable {:s}.",
191 variable_enum_to_string[static_cast<int>(
192 variable)]);
193 }
194 }
195 };
196 std::visit(assign_value,
197 *std::get<VariableArray::KelvinVector const*>(
198 new_variable_array.address_of(variable)));
199 };
200 auto assign_deformation_gradient =
201 [&variable,
202 &new_variable_array](VariableArray::DeformationGradient* address)
203 {
204 auto assign_value = [&destination = *address,
205 &variable]<typename S>(S const& source)
206 {
207 if constexpr (std::is_same_v<S, std::monostate>)
208 {
209 OGS_FATAL(
210 "Function property: Vectorized tensor variable '{:s}' "
211 "is not initialized.",
212 variable_enum_to_string[static_cast<int>(variable)]);
213 }
214 else
215 {
216 if (std::holds_alternative<S>(destination))
217 {
218 std::get<S>(destination) = source;
219 }
220 else
221 {
222 OGS_FATAL(
223 "Function property: Mismatch of vectorized tensor "
224 "sizes for variable {:s}.",
225 variable_enum_to_string[static_cast<int>(
226 variable)]);
227 }
228 }
229 };
230 std::visit(assign_value,
231 *std::get<VariableArray::DeformationGradient const*>(
232 new_variable_array.address_of(variable)));
233 };
234
235 variable_array.visitVariable(
236 BaseLib::Overloaded{assign_scalar, assign_kelvin_vector,
237 assign_deformation_gradient},
238 variable);
239 }
240}
auto visitVariable(Visitor &&visitor, Variable const variable)
Eigen::Matrix< double, 4, 1 > kelvinVectorToSymmetricTensor(Eigen::Matrix< double, 4, 1, Eigen::ColMajor, 4, 1 > const &v)

References MaterialPropertyLib::VariableArray::address_of(), MathLib::KelvinVector::kelvinVectorToSymmetricTensor(), OGS_FATAL, variable_enum_to_string, and MaterialPropertyLib::VariableArray::visitVariable().

Referenced by evaluateExpressions().

Variable Documentation

◆ alpha

◆ beta

◆ c

std::array MaterialPropertyLib::c
constexpr
Initial value:
= {1989.41582, 11178.45586, 26923.68994,
-28989.28947, -19797.03646, 28403.32283,
-30382.306422, 15210.380}

Definition at line 30 of file WaterVapourLatentHeatWithCriticalTemperature.cpp.

30 {1989.41582, 11178.45586, 26923.68994,
31 -28989.28947, -19797.03646, 28403.32283,
32 -30382.306422, 15210.380};

Referenced by checkRequiredProperties(), createComponents(), createPermeabilityMohrCoulombFailureIndexModel(), MaterialPropertyLib::WaterVapourLatentHeatWithCriticalTemperature::dValue(), MaterialPropertyLib::AverageMolarMass::value(), and MaterialPropertyLib::WaterVapourLatentHeatWithCriticalTemperature::value().

◆ Delta

◆ EmptyVariableArray

◆ error_info

const char MaterialPropertyLib::error_info[]
staticconstexpr
Initial value:
=
"The conversion to a Kelvin vector of correct dimensionality is ambiguous."
"Please use a scalar number for isotropic properties, a three element "
"array or a 3 x 3 matrix for anisotropic properties."

Definition at line 18 of file FormKelvinVector.cpp.

Referenced by MaterialPropertyLib::FormKelvinVector< GlobalDim >::operator()(), MaterialPropertyLib::FormKelvinVector< GlobalDim >::operator()(), MaterialPropertyLib::FormKelvinVector< GlobalDim >::operator()(), MaterialPropertyLib::FormKelvinVector< GlobalDim >::operator()(), and MaterialPropertyLib::FormKelvinVector< GlobalDim >::operator()().

◆ gibbs_free_energy_

◆ Hi

const double MaterialPropertyLib::Hi[4] = {1.67752, 2.20462, 0.6366564, -0.241605}
static

Definition at line 21 of file WaterViscosityIAPWS.cpp.

21{1.67752, 2.20462, 0.6366564, -0.241605};

Referenced by computeBarMu0Factor(), and computedBarMu_dbarT().

◆ Hij

const double MaterialPropertyLib::Hij[6][7]
static
Initial value:
= {
{0.520094, 0.222531, -0.281378, 0.161913, -0.0325372, 0, 0},
{0.0850895, 0.999115, -0.906851, 0.257399, 0, 0, 0},
{-1.08374, 1.88797, -0.772479, 0, 0, 0, 0},
{-0.289555, 1.26613, -0.489837, 0, 0.0698452, 0, -0.00435673},
{0, 0, -0.25704, 0, 0, 0.00872102, 0},
{0, 0.120573, 0, 0, 0, 0, -0.000593264}}

Definition at line 22 of file WaterViscosityIAPWS.cpp.

22 {
23 {0.520094, 0.222531, -0.281378, 0.161913, -0.0325372, 0, 0},
24 {0.0850895, 0.999115, -0.906851, 0.257399, 0, 0, 0},
25 {-1.08374, 1.88797, -0.772479, 0, 0, 0, 0},
26 {-0.289555, 1.26613, -0.489837, 0, 0.0698452, 0, -0.00435673},
27 {0, 0, -0.25704, 0, 0, 0.00872102, 0},
28 {0, 0.120573, 0, 0, 0, 0, -0.000593264}};

Referenced by computeBarMu1Factor(), computedBarMu_dbarRho(), and computedBarMu_dbarT().

◆ I_T

std::array MaterialPropertyLib::I_T
staticconstexpr
Initial value:
= {0, 0, 0, 0, 0, 0, 1, 1, 1, 1,
1, 1, 1, 2, 2, 3, 3, 4, 5, 6}

Definition at line 29 of file WaterTemperatureIAPWSIF97Region1.cpp.

29 {0, 0, 0, 0, 0, 0, 1, 1, 1, 1,
30 1, 1, 1, 2, 2, 3, 3, 4, 5, 6};

Referenced by computeTemperature().

◆ J_T

std::array MaterialPropertyLib::J_T
staticconstexpr
Initial value:
= {0, 1, 2, 6, 22, 32, 0, 1, 2, 3,
4, 10, 32, 10, 32, 10, 32, 32, 32, 32}

Definition at line 32 of file WaterTemperatureIAPWSIF97Region1.cpp.

32 {0, 1, 2, 6, 22, 32, 0, 1, 2, 3,
33 4, 10, 32, 10, 32, 10, 32, 32, 32, 32};

Referenced by computeTemperature().

◆ Li

const double MaterialPropertyLib::Li[5]
static
Initial value:
= {2.443221e-3, 1.323095e-2, 6.770357e-3,
-3.454586e-3, 4.096266e-4}

Definition at line 22 of file WaterThermalConductivityIAPWS.cpp.

22 {2.443221e-3, 1.323095e-2, 6.770357e-3,
23 -3.454586e-3, 4.096266e-4};

Referenced by computeBarLambda0Factor(), and computedBarLambda_dbarT().

◆ Lij

const double MaterialPropertyLib::Lij[5][6]
static
Initial value:
= {
{1.60397357, -0.646013523, 0.111443906, 0.102997357, -0.0504123634,
0.00609859258},
{2.33771842, -2.78843778, 1.53616167, -0.463045512, 0.0832827019,
-0.00719201245},
{2.19650529, -4.54580785, 3.55777244, -1.40944978, 0.275418278,
-0.0205938816},
{-1.21051378, 1.60812989, -0.621178141, 0.0716373224, 0, 0},
{-2.7203370, 4.57586331, -3.18369245, 1.1168348, -0.19268305, 0.012913842}}

Definition at line 24 of file WaterThermalConductivityIAPWS.cpp.

24 {
25 {1.60397357, -0.646013523, 0.111443906, 0.102997357, -0.0504123634,
26 0.00609859258},
27 {2.33771842, -2.78843778, 1.53616167, -0.463045512, 0.0832827019,
28 -0.00719201245},
29 {2.19650529, -4.54580785, 3.55777244, -1.40944978, 0.275418278,
30 -0.0205938816},
31 {-1.21051378, 1.60812989, -0.621178141, 0.0716373224, 0, 0},
32 {-2.7203370, 4.57586331, -3.18369245, 1.1168348, -0.19268305, 0.012913842}};

Referenced by computeBarLambda1Factor(), computedBarLambda_dbarRho(), and computedBarLambda_dbarT().

◆ n_T

std::array MaterialPropertyLib::n_T
staticconstexpr
Initial value:
= {
-0.23872489924521e3, 0.40421188637945e3, 0.11349746881718e3,
-0.58457616048039e1, -0.15285482413140e-3, -0.10866707695377e-5,
-0.13391744872602e2, 0.43211039183559e2, -0.54010067170506e2,
0.30535892203916e2, -0.65964749423638e1, 0.93965400878363e-2,
0.11573647505340e-6, -0.25858641282073e-4, -0.40644363084799e-8,
0.66456186191635e-7, 0.80670734103027e-10, -0.93477771213947e-12,
0.58265442020601e-14, -0.15020185953503e-16}

Definition at line 20 of file WaterTemperatureIAPWSIF97Region1.cpp.

20 {
21 -0.23872489924521e3, 0.40421188637945e3, 0.11349746881718e3,
22 -0.58457616048039e1, -0.15285482413140e-3, -0.10866707695377e-5,
23 -0.13391744872602e2, 0.43211039183559e2, -0.54010067170506e2,
24 0.30535892203916e2, -0.65964749423638e1, 0.93965400878363e-2,
25 0.11573647505340e-6, -0.25858641282073e-4, -0.40644363084799e-8,
26 0.66456186191635e-7, 0.80670734103027e-10, -0.93477771213947e-12,
27 0.58265442020601e-14, -0.15020185953503e-16};

Referenced by computeTemperature().

◆ property_enum_to_string

const std::array<std::string, PropertyType::number_of_properties> MaterialPropertyLib::property_enum_to_string
static

Definition at line 119 of file PropertyType.h.

119 {{"acentric_factor",
120 "binary_interaction_coefficient",
121 "biot_coefficient",
122 "bishops_effective_stress",
123 "brooks_corey_exponent",
124 "bulk_modulus",
125 "capillary_pressure",
126 "critical_density",
127 "critical_pressure",
128 "critical_temperature",
129 "compressibility",
130 "concentration",
131 "decay_rate",
132 "density",
133 "diffusion",
134 "drhodT",
135 "effective_stress",
136 "enthalpy",
137 "entry_pressure",
138 "evaporation_enthalpy",
139 "fredlund_parameters",
140 "heat_capacity",
141 "henry_coefficient",
142 "longitudinal_dispersivity",
143 "molality",
144 "molar_mass",
145 "molar_volume",
146 "mole_fraction",
147 "molecular_diffusion",
148 "name",
149 "permeability",
150 "phase_change_expansivity",
151 "phase_velocity",
152 "pore_diffusion",
153 "poissons_ratio",
154 "porosity",
155 "reference_density",
156 "reference_temperature",
157 "reference_pressure",
158 "relative_permeability",
159 "relative_permeability_nonwetting_phase",
160 "residual_gas_saturation",
161 "residual_liquid_saturation",
162 "retardation_factor",
163 "saturation",
164 "saturation_density",
165 "saturation_enthalpy",
166 "saturation_micro",
167 "saturation_temperature",
168 "specific_heat_capacity",
169 "specific_latent_heat",
170 "storage",
171 "storage_contribution",
172 "swelling_stress_rate",
173 "temperature",
174 "thermal_conductivity",
175 "thermal_diffusion_enhancement_factor",
176 "thermal_expansivity",
177 "thermal_expansivity_contribution",
178 "thermal_longitudinal_dispersivity",
179 "thermal_osmosis_coefficient",
180 "thermal_transversal_dispersivity",
181 "tortuosity",
182 "transport_porosity",
183 "transversal_dispersivity",
184 "vapour_pressure",
185 "viscosity",
186 "volume_fraction",
187 "youngs_modulus"}};

Referenced by checkRequiredProperties(), checkRequiredProperties(), checkRequiredProperties(), convertStringToProperty(), anonymous_namespace{PhaseTransition.cpp}::findComponentIndex(), MaterialPropertyLib::Component::property(), MaterialPropertyLib::Medium::property(), MaterialPropertyLib::Phase::property(), and MaterialPropertyLib::VolumeFractionAverage::setProperties().

◆ ref_p_

◆ ref_T_

◆ symmetric_tensor_size

template<int GlobalDim>
int MaterialPropertyLib::symmetric_tensor_size
constexpr
Initial value:
=
constexpr int kelvin_vector_dimensions(int const displacement_dim)
Kelvin vector dimensions for given displacement dimension.

Definition at line 22 of file GetSymmetricTensor.h.

◆ T_c

◆ variable_enum_to_string

const std::array<std::string, static_cast<int>(Variable::number_of_variables)> MaterialPropertyLib::variable_enum_to_string
static
Initial value:
{{"capillary_pressure",
"concentration",
"deformation_gradient",
"density",
"effective_pore_pressure",
"enthalpy",
"enthalpy_of_evaporation",
"equivalent_plastic_strain",
"grain_compressibility",
"liquid_phase_pressure",
"liquid_saturation",
"mechanical_strain",
"molar_mass",
"molar_mass_derivative",
"molar_fraction",
"gas_phase_pressure",
"porosity",
"solid_grain_pressure",
"stress",
"temperature",
"total_strain",
"total_stress",
"transport_porosity",
"vapour_pressure",
"volumetric_strain"}}

Definition at line 61 of file VariableType.h.

61 {{"capillary_pressure",
62 "concentration",
63 "deformation_gradient",
64 "density",
65 "effective_pore_pressure",
66 "enthalpy",
67 "enthalpy_of_evaporation",
68 "equivalent_plastic_strain",
69 "grain_compressibility",
70 "liquid_phase_pressure",
71 "liquid_saturation",
72 "mechanical_strain",
73 "molar_mass",
74 "molar_mass_derivative",
75 "molar_fraction",
76 "gas_phase_pressure",
77 "porosity",
78 "solid_grain_pressure",
79 "stress",
80 "temperature",
81 "total_strain",
82 "total_stress",
83 "transport_porosity",
84 "vapour_pressure",
85 "volumetric_strain"}};

Referenced by convertStringToVariable(), MaterialPropertyLib::Function::dValue(), and updateVariableArrayValues().