25 #ifndef GRINS_MATERIALS_PARSING_H
26 #define GRINS_MATERIALS_PARSING_H
32 #include "libmesh/getpot.h"
49 static bool have_material(
const GetPot& input,
const std::string& physics );
52 static std::string
material_name(
const GetPot& input,
const std::string& physics );
55 static void viscosity_model(
const GetPot& input,
const std::string& physics,
56 const std::string& material, std::string& model );
60 const std::string& material, std::string& model );
64 const std::string& material, std::string& model );
68 const std::string& physics,
69 const std::string& material,
75 const std::string& material,
77 std::string& strain_energy );
82 static void read_density(
const std::string& core_physics_name,
101 const std::string& old_option,
102 const std::string& property,
103 const std::string& core_physics,
105 libMesh::Real& value );
109 const std::string& property );
113 const std::string& option1,
114 const std::string& option2 );
124 const std::string& material,
125 std::vector<std::string>& species_names );
134 const std::string& material,
135 const std::string& prefix,
136 std::vector<std::string>& species_names );
139 const std::string& material );
142 const std::string& material );
149 return input.have_variable(
"Physics/"+physics+
"/material");
155 return input(
"Physics/"+physics+
"/material",
"DIE!");
161 if( !input.have_variable(option) )
162 libmesh_error_msg(
"ERROR: Could not find required input parameter "+option+
"!");
167 #endif // GRINS_MATERIALS_PARSING_H
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.
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.
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.
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.
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.
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.
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.
static libMesh::Real parse_lewis_number(const GetPot &input, const std::string &material)
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.
Helper functions for parsing material properties.
ParameterUser base class. Utility methods for subclasses.
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.
static void dep_input_warning(const std::string &old_option, const std::string &property)
Helper function for parsing/maintaing backward compatibility.
static std::string parse_chemical_kinetics_datafile_name(const GetPot &input, const std::string &material)
static void duplicate_input_test(const GetPot &input, const std::string &option1, const std::string &option2)
Helper function for parsing/maintaing backward compatibility.
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.
static std::string material_name(const GetPot &input, const std::string &physics)
Get the name of the material in the Physics/physics section.
static bool have_material(const GetPot &input, const std::string &physics)
Check if Physics/physics section has a material variable.
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.