GRINS-0.8.0
List of all members | Public Types | Static Public Member Functions | Static Private Member Functions
GRINS::VariablesParsing Class Reference

#include <variables_parsing.h>

Public Types

enum  SECTION_TYPE { PHYSICS = 0, QOI }
 

Static Public Member Functions

static std::string displacement_section ()
 
static std::string pressure_section ()
 
static std::string temperature_section ()
 
static std::string thermo_pressure_section ()
 
static std::string turbulence_section ()
 
static std::string species_mass_fractions_section ()
 
static std::string velocity_section ()
 
static std::string single_var_section ()
 
static std::string scalar_var_section ()
 
static std::string variables_section ()
 Helper function to encapsualte the overall [Variables] section name. More...
 
static std::string varnames_input_name (const std::string &subsection)
 Helper function to encapsulate the names variable in the input file. More...
 
static std::string fe_family_input_name (const std::string &subsection)
 Helper function to encaplusate fe_family input variable. More...
 
static std::string order_input_name (const std::string &subsection)
 Helper function to encaplusate order input variable. More...
 
static std::string single_variable_name (const GetPot &input, const std::string &subsection_name, const SECTION_TYPE section_type)
 
static std::string scalar_variable_name (const GetPot &input, const std::string &subsection_name, const SECTION_TYPE section_type)
 
static std::string velocity_variable_name (const GetPot &input, const std::string &subsection_name, const SECTION_TYPE section_type)
 
static std::string temp_variable_name (const GetPot &input, const std::string &subsection_name, const SECTION_TYPE section_type)
 
static std::string press_variable_name (const GetPot &input, const std::string &subsection_name, const SECTION_TYPE section_type)
 
static std::string thermo_press_variable_name (const GetPot &input, const std::string &subsection_name, const SECTION_TYPE section_type)
 
static std::string turb_variable_name (const GetPot &input, const std::string &subsection_name, const SECTION_TYPE section_type)
 
static std::string disp_variable_name (const GetPot &input, const std::string &subsection_name, const SECTION_TYPE section_type)
 
static std::string species_mass_frac_variable_name (const GetPot &input, const std::string &subsection_name, const SECTION_TYPE section_type)
 

Static Private Member Functions

static std::string section_parse_var_name (const GetPot &input, const std::string &input_subsection_name, const std::string &input_var_name, const std::string &default_var_name, const SECTION_TYPE section_type)
 

Detailed Description

Definition at line 36 of file variables_parsing.h.

Member Enumeration Documentation

Enumerator
PHYSICS 
QOI 

Definition at line 85 of file variables_parsing.h.

Member Function Documentation

static std::string GRINS::VariablesParsing::disp_variable_name ( const GetPot &  input,
const std::string &  subsection_name,
const SECTION_TYPE  section_type 
)
inlinestatic

Definition at line 143 of file variables_parsing.h.

References displacement_section(), and section_parse_var_name().

146  subsection_name,
147  "displacement_var_name",
149  section_type); }
static std::string displacement_section()
static std::string section_parse_var_name(const GetPot &input, const std::string &input_subsection_name, const std::string &input_var_name, const std::string &default_var_name, const SECTION_TYPE section_type)
static std::string GRINS::VariablesParsing::displacement_section ( )
inlinestatic
static std::string GRINS::VariablesParsing::fe_family_input_name ( const std::string &  subsection)
inlinestatic

Helper function to encaplusate fe_family input variable.

Definition at line 78 of file variables_parsing.h.

References variables_section().

79  { return VariablesParsing::variables_section()+"/"+subsection+"/fe_family"; }
static std::string variables_section()
Helper function to encapsualte the overall [Variables] section name.
static std::string GRINS::VariablesParsing::order_input_name ( const std::string &  subsection)
inlinestatic

Helper function to encaplusate order input variable.

Definition at line 82 of file variables_parsing.h.

References variables_section().

83  { return VariablesParsing::variables_section()+"/"+subsection+"/order"; }
static std::string variables_section()
Helper function to encapsualte the overall [Variables] section name.
static std::string GRINS::VariablesParsing::press_variable_name ( const GetPot &  input,
const std::string &  subsection_name,
const SECTION_TYPE  section_type 
)
inlinestatic

Definition at line 119 of file variables_parsing.h.

References pressure_section(), and section_parse_var_name().

122  subsection_name,
123  "pressure_var_name",
125  section_type); }
static std::string section_parse_var_name(const GetPot &input, const std::string &input_subsection_name, const std::string &input_var_name, const std::string &default_var_name, const SECTION_TYPE section_type)
static std::string pressure_section()
static std::string GRINS::VariablesParsing::pressure_section ( )
inlinestatic
static std::string GRINS::VariablesParsing::scalar_var_section ( )
inlinestatic

Definition at line 64 of file variables_parsing.h.

Referenced by scalar_variable_name(), and GRINS::VariableFactoryInitializer::VariableFactoryInitializer().

65  { return "ScalarVariable"; }
static std::string GRINS::VariablesParsing::scalar_variable_name ( const GetPot &  input,
const std::string &  subsection_name,
const SECTION_TYPE  section_type 
)
inlinestatic

Definition at line 95 of file variables_parsing.h.

References scalar_var_section(), and section_parse_var_name().

98  subsection_name,
99  "var_name",
101  section_type); }
static std::string section_parse_var_name(const GetPot &input, const std::string &input_subsection_name, const std::string &input_var_name, const std::string &default_var_name, const SECTION_TYPE section_type)
static std::string scalar_var_section()
std::string GRINS::VariablesParsing::section_parse_var_name ( const GetPot &  input,
const std::string &  input_subsection_name,
const std::string &  input_var_name,
const std::string &  default_var_name,
const SECTION_TYPE  section_type 
)
staticprivate

Definition at line 30 of file variables_parsing.C.

References PHYSICS, and QOI.

Referenced by disp_variable_name(), press_variable_name(), scalar_variable_name(), single_variable_name(), species_mass_frac_variable_name(), temp_variable_name(), thermo_press_variable_name(), turb_variable_name(), and velocity_variable_name().

35  {
36  std::string header;
37  switch(section_type)
38  {
39  case(PHYSICS):
40  {
41  header = "Physics";
42  break;
43  }
44  case(QOI):
45  {
46  header = "QoI";
47  break;
48  }
49  default:
50  libmesh_error_msg("ERROR: Invalid section value!");
51  }
52 
53  return input(header+"/"+input_subsection_name+"/"+input_var_name, default_var_name );
54  }
static std::string GRINS::VariablesParsing::single_var_section ( )
inlinestatic
static std::string GRINS::VariablesParsing::single_variable_name ( const GetPot &  input,
const std::string &  subsection_name,
const SECTION_TYPE  section_type 
)
inlinestatic

Definition at line 87 of file variables_parsing.h.

References section_parse_var_name(), and single_var_section().

90  subsection_name,
91  "var_name",
93  section_type); }
static std::string section_parse_var_name(const GetPot &input, const std::string &input_subsection_name, const std::string &input_var_name, const std::string &default_var_name, const SECTION_TYPE section_type)
static std::string single_var_section()
static std::string GRINS::VariablesParsing::species_mass_frac_variable_name ( const GetPot &  input,
const std::string &  subsection_name,
const SECTION_TYPE  section_type 
)
inlinestatic

Definition at line 151 of file variables_parsing.h.

References section_parse_var_name(), and species_mass_fractions_section().

155  subsection_name,
156  "species_mass_fracs_var_name",
158  section_type); }
static std::string section_parse_var_name(const GetPot &input, const std::string &input_subsection_name, const std::string &input_var_name, const std::string &default_var_name, const SECTION_TYPE section_type)
static std::string species_mass_fractions_section()
static std::string GRINS::VariablesParsing::species_mass_fractions_section ( )
inlinestatic
static std::string GRINS::VariablesParsing::temp_variable_name ( const GetPot &  input,
const std::string &  subsection_name,
const SECTION_TYPE  section_type 
)
inlinestatic

Definition at line 111 of file variables_parsing.h.

References section_parse_var_name(), and temperature_section().

Referenced by GRINS::AverageNusseltNumber::init().

114  subsection_name,
115  "temperature_var_name",
117  section_type); }
static std::string temperature_section()
static std::string section_parse_var_name(const GetPot &input, const std::string &input_subsection_name, const std::string &input_var_name, const std::string &default_var_name, const SECTION_TYPE section_type)
static std::string GRINS::VariablesParsing::temperature_section ( )
inlinestatic
static std::string GRINS::VariablesParsing::thermo_press_variable_name ( const GetPot &  input,
const std::string &  subsection_name,
const SECTION_TYPE  section_type 
)
inlinestatic

Definition at line 127 of file variables_parsing.h.

References section_parse_var_name(), and thermo_pressure_section().

Referenced by GRINS::LowMachNavierStokesBase< Viscosity, SpecificHeat, ThermalConductivity >::LowMachNavierStokesBase(), and GRINS::ReactingLowMachNavierStokesAbstract::ReactingLowMachNavierStokesAbstract().

130  subsection_name,
131  "thermo_pressure_var_name",
133  section_type); }
static std::string section_parse_var_name(const GetPot &input, const std::string &input_subsection_name, const std::string &input_var_name, const std::string &default_var_name, const SECTION_TYPE section_type)
static std::string thermo_pressure_section()
static std::string GRINS::VariablesParsing::thermo_pressure_section ( )
inlinestatic

Definition at line 49 of file variables_parsing.h.

Referenced by thermo_press_variable_name(), and GRINS::VariableFactoryInitializer::VariableFactoryInitializer().

50  { return "ThermoPressure"; }
static std::string GRINS::VariablesParsing::turb_variable_name ( const GetPot &  input,
const std::string &  subsection_name,
const SECTION_TYPE  section_type 
)
inlinestatic

Definition at line 135 of file variables_parsing.h.

References section_parse_var_name(), and turbulence_section().

138  subsection_name,
139  "turbulence_var_name",
141  section_type); }
static std::string section_parse_var_name(const GetPot &input, const std::string &input_subsection_name, const std::string &input_var_name, const std::string &default_var_name, const SECTION_TYPE section_type)
static std::string turbulence_section()
static std::string GRINS::VariablesParsing::turbulence_section ( )
inlinestatic
static std::string GRINS::VariablesParsing::variables_section ( )
inlinestatic
static std::string GRINS::VariablesParsing::varnames_input_name ( const std::string &  subsection)
inlinestatic

Helper function to encapsulate the names variable in the input file.

This is the full variable name to be passed to GetPot to read in user-supplied names for variables.

Definition at line 74 of file variables_parsing.h.

References variables_section().

75  { return VariablesParsing::variables_section()+"/"+subsection+"/names"; }
static std::string variables_section()
Helper function to encapsualte the overall [Variables] section name.
static std::string GRINS::VariablesParsing::velocity_section ( )
inlinestatic
static std::string GRINS::VariablesParsing::velocity_variable_name ( const GetPot &  input,
const std::string &  subsection_name,
const SECTION_TYPE  section_type 
)
inlinestatic

Definition at line 103 of file variables_parsing.h.

References section_parse_var_name(), and velocity_section().

Referenced by GRINS::Vorticity::init().

106  subsection_name,
107  "velocity_var_name",
109  section_type); }
static std::string section_parse_var_name(const GetPot &input, const std::string &input_subsection_name, const std::string &input_var_name, const std::string &default_var_name, const SECTION_TYPE section_type)
static std::string velocity_section()

The documentation for this class was generated from the following files:

Generated on Tue Dec 19 2017 12:47:32 for GRINS-0.8.0 by  doxygen 1.8.9.1