GRINS-0.8.0
|
Helper functions for parsing material properties. More...
#include <materials_parsing.h>
Public Member Functions | |
MaterialsParsing () | |
~MaterialsParsing () | |
Static Public Member Functions | |
static bool | have_material (const GetPot &input, const std::string &physics) |
Check if Physics/physics section has a material variable. More... | |
static std::string | material_name (const GetPot &input, const std::string &physics) |
Get the name of the material in the Physics/physics section. More... | |
static void | viscosity_model (const GetPot &input, const std::string &physics, const std::string &material, std::string &model) |
Parse the viscosity model for the given material. More... | |
static void | thermal_conductivity_model (const GetPot &input, const std::string &physics, const std::string &material, std::string &model) |
Parse the conductivity model for the given material. More... | |
static void | specific_heat_model (const GetPot &input, const std::string &physics, const std::string &material, std::string &model) |
Parse the specific heat model for the given material. More... | |
static void | turb_viscosity_model (const GetPot &input, const std::string &physics, const std::string &material, std::string &model) |
Parse the turbulence viscosity model for the given material. More... | |
static void | stress_strain_model (const GetPot &input, const std::string &, const std::string &material, std::string &model, std::string &strain_energy) |
Parse the stress-strain model for the given material. More... | |
static void | read_density (const std::string &core_physics_name, const GetPot &input, ParameterUser ¶ms, libMesh::Real &rho) |
Helper function to reading density from input. More... | |
static void | read_specific_heat (const std::string &core_physics_name, const GetPot &input, ParameterUser ¶ms, libMesh::Real &cp) |
Helper function to reading scalar specific heat from input. More... | |
static void | read_property (const GetPot &input, const std::string &old_option, const std::string &property, const std::string &core_physics, ParameterUser ¶m_user, libMesh::Real &value) |
Helper function for parsing/maintaing backward compatibility. More... | |
static void | dep_input_warning (const std::string &old_option, const std::string &property) |
Helper function for parsing/maintaing backward compatibility. More... | |
static void | duplicate_input_test (const GetPot &input, const std::string &option1, const std::string &option2) |
Helper function for parsing/maintaing backward compatibility. More... | |
static void | check_for_input_option (const GetPot &input, const std::string &option) |
Helper function to check for option and error out if it's not found. More... | |
static void | parse_chemical_species (const GetPot &input, const std::string &material, std::vector< std::string > &species_names) |
Helper function for parsing the chemical species. More... | |
static void | parse_species_varnames (const GetPot &input, const std::string &material, const std::string &prefix, std::vector< std::string > &species_names) |
Helper function for parsing the chemical species and setting variable name. More... | |
static libMesh::Real | parse_lewis_number (const GetPot &input, const std::string &material) |
static std::string | parse_chemical_kinetics_datafile_name (const GetPot &input, const std::string &material) |
Helper functions for parsing material properties.
There's no state needed for these functions so we put them in a namespace instead of an object.
Definition at line 42 of file materials_parsing.h.
|
inline |
Definition at line 45 of file materials_parsing.h.
|
inline |
Definition at line 46 of file materials_parsing.h.
|
inlinestatic |
Helper function to check for option and error out if it's not found.
Definition at line 159 of file materials_parsing.h.
Referenced by GRINS::PhysicsFactoryHelper::parse_antioch_models().
|
static |
Helper function for parsing/maintaing backward compatibility.
Definition at line 436 of file materials_parsing.C.
References grins_warning.
Referenced by GRINS::ConstantConductivity::ConstantConductivity(), GRINS::ConstantPrandtlConductivity::ConstantPrandtlConductivity(), GRINS::ConstantSpecificHeat::ConstantSpecificHeat(), GRINS::HookesLaw::HookesLaw(), GRINS::HookesLaw1D::HookesLaw1D(), GRINS::MooneyRivlin::MooneyRivlin(), parse_chemical_kinetics_datafile_name(), parse_chemical_species(), parse_lewis_number(), GRINS::CanteraMixture::parse_mixture(), GRINS::AverageNusseltNumber::parse_thermal_conductivity(), GRINS::ParsedConductivity::ParsedConductivity(), read_density(), GRINS::BoussinesqBuoyancyBase::read_property(), read_property(), and read_specific_heat().
|
static |
Helper function for parsing/maintaing backward compatibility.
Definition at line 444 of file materials_parsing.C.
Referenced by GRINS::ViscosityBase::check_input_consistency(), GRINS::ConstantConductivity::ConstantConductivity(), GRINS::ConstantPrandtlConductivity::ConstantPrandtlConductivity(), GRINS::ConstantSpecificHeat::ConstantSpecificHeat(), GRINS::HookesLaw::HookesLaw(), GRINS::HookesLaw1D::HookesLaw1D(), GRINS::MooneyRivlin::MooneyRivlin(), parse_chemical_kinetics_datafile_name(), parse_chemical_species(), parse_lewis_number(), GRINS::AverageNusseltNumber::parse_thermal_conductivity(), GRINS::ParsedConductivity::ParsedConductivity(), read_density(), GRINS::BoussinesqBuoyancyBase::read_property(), read_property(), and read_specific_heat().
|
inlinestatic |
Check if Physics/physics section has a material variable.
Definition at line 147 of file materials_parsing.h.
Referenced by GRINS::BoussinesqBuoyancyBase::no_input_warning(), GRINS::PhysicsFactoryHelper::parse_conductivity_model(), GRINS::PhysicsFactoryHelper::parse_specific_heat_model(), GRINS::PhysicsFactoryHelper::parse_turb_viscosity_model(), GRINS::PhysicsFactoryHelper::parse_viscosity_model(), and read_density().
|
inlinestatic |
Get the name of the material in the Physics/physics section.
Definition at line 153 of file materials_parsing.h.
Referenced by GRINS::PhysicsFactoryReactingFlows< DerivedPhysics >::build_physics(), GRINS::ConvectionDiffusion::ConvectionDiffusion(), do_transport_eval(), main(), GRINS::PhysicsFactoryHelper::parse_antioch_models(), GRINS::PhysicsFactoryHelper::parse_conductivity_model(), GRINS::PhysicsFactoryHelper::parse_specific_heat_model(), GRINS::PhysicsFactoryHelper::parse_stress_strain_model(), GRINS::PhysicsFactoryHelper::parse_thermochemistry_model(), GRINS::PhysicsFactoryHelper::parse_turb_viscosity_model(), GRINS::PhysicsFactoryHelper::parse_viscosity_model(), GRINS::BoussinesqBuoyancyBase::read_property(), and read_property().
|
static |
Definition at line 408 of file materials_parsing.C.
References dep_input_warning(), and duplicate_input_test().
Referenced by GRINS::AntiochMixture< KineticsThermoCurveFit >::AntiochMixture(), GRINS::AntiochMixtureBuilderBase::build_reaction_set(), and GRINS::CanteraMixture::CanteraMixture().
|
static |
Helper function for parsing the chemical species.
The user-provided vector will populated with the chemical species names in the input file. "Physics/Chemistry/species" is deprecated in favor of "Material/"+material+"/GasMixture/species"
Definition at line 326 of file materials_parsing.C.
References dep_input_warning(), and duplicate_input_test().
Referenced by GRINS::AntiochChemistry::AntiochChemistry(), GRINS::AntiochMixtureBuilderBase::build_chem_mix(), and parse_species_varnames().
|
static |
Definition at line 381 of file materials_parsing.C.
References dep_input_warning(), and duplicate_input_test().
Referenced by GRINS::AntiochConstantTransportMixture< KineticsThermoCurveFit, Conductivity >::AntiochConstantTransportMixture(), GRINS::AntiochConstantTransportMixtureBuilder::build_constant_lewis_diff(), GRINS::AntiochMixtureAveragedTransportMixtureBuilder::specialized_build_diffusivity(), and GRINS::AntiochMixtureAveragedTransportMixture< KineticsThermoCurveFit, Thermo, Viscosity, Conductivity, Diffusivity >::specialized_build_diffusivity().
|
static |
Helper function for parsing the chemical species and setting variable name.
The user-provided vector will populated with the chemical species variable names based on the species name the input file. The variable name will used for adding the variable to the libMesh System. "Physics/Chemistry/species" is deprecated in favor of "Material/"+material+"/GasMixture/species"
Definition at line 364 of file materials_parsing.C.
References parse_chemical_species().
Referenced by GRINS::SpeciesVariableFactory< VariableType >::parse_var_names().
|
static |
Helper function to reading density from input.
In particular, we want to handle backward compatibility before the introduction of material names in the input.
Definition at line 126 of file materials_parsing.C.
References dep_input_warning(), duplicate_input_test(), grins_warning, have_material(), GRINS::PhysicsNaming::incompressible_navier_stokes(), and GRINS::ParameterUser::set_parameter().
Referenced by GRINS::ElasticMembraneBase< StressStrainLaw >::ElasticMembraneBase(), GRINS::HeatConduction< Conductivity >::HeatConduction(), GRINS::HeatTransferBase< Conductivity >::HeatTransferBase(), GRINS::IncompressibleNavierStokesBase< Viscosity >::IncompressibleNavierStokesBase(), and GRINS::AxisymmetricHeatTransfer< Conductivity >::read_input_options().
|
static |
Helper function for parsing/maintaing backward compatibility.
This function assumes that one of the old_option or the material-based property input must be specified. If that's not the case, this function should'nt be used. This also assumes that the property value should be positive and will error out if it's not.
Definition at line 286 of file materials_parsing.C.
References dep_input_warning(), duplicate_input_test(), material_name(), and GRINS::ParameterUser::set_parameter().
Referenced by GRINS::ElasticCableAbstract::ElasticCableAbstract(), GRINS::ElasticMembraneBase< StressStrainLaw >::ElasticMembraneBase(), GRINS::ReactingLowMachNavierStokesAbstract::read_input_options(), and GRINS::LowMachNavierStokesBase< Viscosity, SpecificHeat, ThermalConductivity >::read_input_options().
|
static |
Helper function to reading scalar specific heat from input.
In particular, we want to handle backward compatibility before the introduction of material names in the input.
Definition at line 206 of file materials_parsing.C.
References dep_input_warning(), duplicate_input_test(), grins_warning, GRINS::PhysicsNaming::heat_transfer(), and GRINS::ParameterUser::set_parameter().
Referenced by GRINS::BoussinesqBuoyancySPGSMStabilization< Viscosity >::BoussinesqBuoyancySPGSMStabilization(), GRINS::HeatConduction< Conductivity >::HeatConduction(), GRINS::HeatTransferBase< Conductivity >::HeatTransferBase(), and GRINS::AxisymmetricHeatTransfer< Conductivity >::read_input_options().
|
static |
Parse the specific heat model for the given material.
Definition at line 65 of file materials_parsing.C.
Referenced by GRINS::PhysicsFactoryHelper::parse_specific_heat_model().
|
static |
Parse the stress-strain model for the given material.
Definition at line 91 of file materials_parsing.C.
References grins_warning.
Referenced by GRINS::PhysicsFactoryHelper::parse_stress_strain_model().
|
static |
Parse the conductivity model for the given material.
Definition at line 50 of file materials_parsing.C.
Referenced by GRINS::PhysicsFactoryHelper::parse_conductivity_model().
|
static |
Parse the turbulence viscosity model for the given material.
Definition at line 78 of file materials_parsing.C.
Referenced by GRINS::PhysicsFactoryHelper::parse_turb_viscosity_model().
|
static |
Parse the viscosity model for the given material.
Definition at line 35 of file materials_parsing.C.
Referenced by GRINS::PhysicsFactoryHelper::parse_viscosity_model().