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

#include <physics_naming.h>

Static Public Member Functions

static void set_suffix (const std::string &suff)
 
static void clear_suffix ()
 
static void extract_physics_and_suffix (const std::string &full_name, std::string &physics_name, std::string &suffix)
 Extract the physics name and the suffix from the full_name. More...
 
static std::string extract_physics (const std::string &full_name)
 Extract the physics name from the full_name. More...
 
static std::string extract_suffix (const std::string &full_name)
 Extract the suffix from the full_name. More...
 
static PhysicsName stokes ()
 
static PhysicsName incompressible_navier_stokes ()
 
static PhysicsName incompressible_navier_stokes_adjoint_stab ()
 
static PhysicsName incompressible_navier_stokes_spgsm_stab ()
 
static PhysicsName velocity_drag ()
 
static PhysicsName velocity_drag_adjoint_stab ()
 
static PhysicsName velocity_penalty ()
 
static PhysicsName velocity_penalty2 ()
 
static PhysicsName velocity_penalty3 ()
 
static PhysicsName velocity_penalty_adjoint_stab ()
 
static PhysicsName velocity_penalty2_adjoint_stab ()
 
static PhysicsName velocity_penalty3_adjoint_stab ()
 
static PhysicsName parsed_velocity_source ()
 
static PhysicsName parsed_velocity_source_adjoint_stab ()
 
static PhysicsName averaged_fan ()
 
static PhysicsName averaged_fan_adjoint_stab ()
 
static PhysicsName averaged_turbine ()
 
static PhysicsName spalart_allmaras ()
 
static PhysicsName spalart_allmaras_spgsm_stab ()
 
static PhysicsName scalar_ode ()
 
static PhysicsName heat_conduction ()
 
static PhysicsName heat_transfer ()
 
static PhysicsName heat_transfer_adjoint_stab ()
 
static PhysicsName heat_transfer_spgsm_stab ()
 
static PhysicsName axisymmetric_heat_transfer ()
 
static PhysicsName boussinesq_buoyancy ()
 
static PhysicsName boussinesq_buoyancy_adjoint_stab ()
 
static PhysicsName boussinesq_buoyancy_spgsm_stab ()
 
static PhysicsName axisymmetric_boussinesq_buoyancy ()
 
static PhysicsName low_mach_navier_stokes ()
 
static PhysicsName low_mach_navier_stokes_braack_stab ()
 
static PhysicsName low_mach_navier_stokes_spgsm_stab ()
 
static PhysicsName low_mach_navier_stokes_vms_stab ()
 
static PhysicsName reacting_low_mach_navier_stokes ()
 
static PhysicsName reacting_low_mach_navier_stokes_spgsm_stab ()
 
static PhysicsName elastic_membrane ()
 
static PhysicsName elastic_cable ()
 
static PhysicsName elastic_cable_rayleigh_damping ()
 
static PhysicsName elastic_membrane_rayleigh_damping ()
 
static PhysicsName elastic_membrane_constant_pressure ()
 
static PhysicsName elastic_cable_constant_gravity ()
 
static PhysicsName constant_source_term ()
 
static PhysicsName parsed_source_term ()
 
static PhysicsName convection_diffusion ()
 
static PhysicsName variable_pinning ()
 

Static Private Member Functions

static std::string physics_name_delimiter ()
 
static std::string & suffix ()
 

Detailed Description

Definition at line 35 of file physics_naming.h.

Member Function Documentation

static PhysicsName GRINS::PhysicsNaming::averaged_fan ( )
inlinestatic

Definition at line 104 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer(), and GRINS::AveragedFanBase< Viscosity >::read_input_options().

105  { return "AveragedFan"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::averaged_fan_adjoint_stab ( )
inlinestatic

Definition at line 107 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

108  { return "AveragedFanAdjointStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::averaged_turbine ( )
inlinestatic

Definition at line 110 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer(), and GRINS::AveragedTurbineBase< Viscosity >::read_input_options().

111  { return "AveragedTurbine"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::axisymmetric_boussinesq_buoyancy ( )
inlinestatic

Definition at line 146 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer(), and GRINS::AxisymmetricBoussinesqBuoyancy::read_input_options().

147  { return "AxisymmetricBoussinesqBuoyancy"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::axisymmetric_heat_transfer ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::boussinesq_buoyancy ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::boussinesq_buoyancy_adjoint_stab ( )
inlinestatic

Definition at line 140 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

141  { return "BoussinesqBuoyancyAdjointStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::boussinesq_buoyancy_spgsm_stab ( )
inlinestatic

Definition at line 143 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

144  { return "BoussinesqBuoyancySPGSMStabilization"+suffix(); }
static std::string & suffix()
static void GRINS::PhysicsNaming::clear_suffix ( )
inlinestatic

Definition at line 42 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsBuilder::build_physics_map().

43  { PhysicsNaming::suffix().clear(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::constant_source_term ( )
inlinestatic

Definition at line 185 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

186  { return "ConstantSourceTerm"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::convection_diffusion ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::elastic_cable ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::elastic_cable_constant_gravity ( )
inlinestatic

Definition at line 182 of file physics_naming.h.

References suffix().

183  { return "ElasticCableConstantGravity"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::elastic_cable_rayleigh_damping ( )
inlinestatic

Definition at line 173 of file physics_naming.h.

References suffix().

Referenced by GRINS::ElasticCableRayleighDamping< StressStrainLaw >::ElasticCableRayleighDamping(), and GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

174  { return "ElasticCableRayleighDamping"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::elastic_membrane ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::elastic_membrane_constant_pressure ( )
inlinestatic

Definition at line 179 of file physics_naming.h.

References suffix().

Referenced by GRINS::ElasticMembraneConstantPressure::ElasticMembraneConstantPressure(), and GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

180  { return "ElasticMembraneConstantPressure"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::elastic_membrane_rayleigh_damping ( )
inlinestatic

Definition at line 176 of file physics_naming.h.

References suffix().

Referenced by GRINS::ElasticMembraneRayleighDamping< StressStrainLaw >::ElasticMembraneRayleighDamping(), and GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

177  { return "ElasticMembraneRayleighDamping"+suffix(); }
static std::string & suffix()
std::string GRINS::PhysicsNaming::extract_physics ( const std::string &  full_name)
static

Extract the physics name from the full_name.

If the delimiter is not present in the full_name, then the physics_name is the full_name.

Definition at line 39 of file physics_naming.C.

References physics_name_delimiter().

Referenced by GRINS::OldStyleBCBuilder::build_bcs(), GRINS::PhysicsBuilder::build_physics_map(), extract_physics_and_suffix(), and GRINS::PhysicsFactoryWithCore::find_core_physics_name().

40  {
41  // We look for this delimiter to separate the physics name from
42  // the user-supplied suffix
43  std::string delimiter = PhysicsNaming::physics_name_delimiter();
44 
45  std::size_t idx = full_name.find_first_of( delimiter );
46 
47  std::string physics_name;
48 
49  // If this delimiter is not found, then the full_name is the physics_name
50  if( idx == full_name.npos )
51  physics_name = full_name;
52 
53  // If it is found, the first part is the physics_name
54  // and the second part is the suffix
55  else
56  physics_name = full_name.substr(0,idx);
57 
58  return physics_name;
59  }
static std::string physics_name_delimiter()
void GRINS::PhysicsNaming::extract_physics_and_suffix ( const std::string &  full_name,
std::string &  physics_name,
std::string &  suffix 
)
static

Extract the physics name and the suffix from the full_name.

Note returned suffix includes the delimiter

Definition at line 31 of file physics_naming.C.

References extract_physics(), and extract_suffix().

34  {
35  physics_name = PhysicsNaming::extract_physics(full_name);
37  }
static std::string extract_physics(const std::string &full_name)
Extract the physics name from the full_name.
static std::string & suffix()
static std::string extract_suffix(const std::string &full_name)
Extract the suffix from the full_name.
std::string GRINS::PhysicsNaming::extract_suffix ( const std::string &  full_name)
static

Extract the suffix from the full_name.

Note returned suffix includes the delimiter. If there is no delimiter present, then the returned suffix is an empty string.

Definition at line 61 of file physics_naming.C.

References physics_name_delimiter(), and suffix().

Referenced by GRINS::PhysicsBuilder::build_physics_map(), extract_physics_and_suffix(), and GRINS::PhysicsFactoryWithCore::find_core_physics_name().

62  {
63  // We look for this delimiter to separate the physics name from
64  // the user-supplied suffix
65  std::string delimiter = PhysicsNaming::physics_name_delimiter();
66 
67  std::size_t idx = full_name.find_first_of( delimiter );
68 
69  std::string suffix;
70 
71  // If this delimiter is not found, then there's no suffix
72  // So no need to do anything in that case.
73  // If it is found, the first part is the physics_name
74  // and the second part is the suffix.
75  // Note the suffix extraction *includes* the delimiter
76  if( idx != full_name.npos )
77  suffix = full_name.substr(idx,full_name.npos);
78 
79  return suffix;
80  }
static std::string & suffix()
static std::string physics_name_delimiter()
static PhysicsName GRINS::PhysicsNaming::heat_conduction ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::heat_transfer ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::heat_transfer_adjoint_stab ( )
inlinestatic

Definition at line 128 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

129  { return "HeatTransferAdjointStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::heat_transfer_spgsm_stab ( )
inlinestatic

Definition at line 131 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

132  { return "HeatTransferSPGSMStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::incompressible_navier_stokes ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::incompressible_navier_stokes_adjoint_stab ( )
inlinestatic

Definition at line 68 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

69  { return "IncompressibleNavierStokesAdjointStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::incompressible_navier_stokes_spgsm_stab ( )
inlinestatic

Definition at line 71 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

72  { return "IncompressibleNavierStokesSPGSMStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::low_mach_navier_stokes ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::low_mach_navier_stokes_braack_stab ( )
inlinestatic

Definition at line 152 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

153  { return "LowMachNavierStokesBraackStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::low_mach_navier_stokes_spgsm_stab ( )
inlinestatic

Definition at line 155 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

156  { return "LowMachNavierStokesSPGSMStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::low_mach_navier_stokes_vms_stab ( )
inlinestatic

Definition at line 158 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

159  { return "LowMachNavierStokesVMSStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::parsed_source_term ( )
inlinestatic

Definition at line 188 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

189  { return "ParsedSourceTerm"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::parsed_velocity_source ( )
inlinestatic

Definition at line 98 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

99  { return "ParsedVelocitySource"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::parsed_velocity_source_adjoint_stab ( )
inlinestatic

Definition at line 101 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

102  { return "ParsedVelocitySourceAdjointStabilization"+suffix(); }
static std::string & suffix()
static std::string GRINS::PhysicsNaming::physics_name_delimiter ( )
inlinestaticprivate

Definition at line 199 of file physics_naming.h.

Referenced by extract_physics(), and extract_suffix().

200  { return ":"; }
static PhysicsName GRINS::PhysicsNaming::reacting_low_mach_navier_stokes ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::reacting_low_mach_navier_stokes_spgsm_stab ( )
inlinestatic

Definition at line 164 of file physics_naming.h.

References suffix().

Referenced by GRINS::ReactingFlowsPhysicsFactoryInitializer::ReactingFlowsPhysicsFactoryInitializer().

165  { return "ReactingLowMachNavierStokesSPGSMStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::scalar_ode ( )
inlinestatic
static void GRINS::PhysicsNaming::set_suffix ( const std::string &  suff)
inlinestatic

Definition at line 39 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsBuilder::build_physics_map().

40  { PhysicsNaming::suffix() = suff; }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::spalart_allmaras ( )
inlinestatic
static PhysicsName GRINS::PhysicsNaming::spalart_allmaras_spgsm_stab ( )
inlinestatic

Definition at line 116 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

117  { return "SpalartAllmarasSPGSMStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::stokes ( )
inlinestatic
static std::string& GRINS::PhysicsNaming::suffix ( )
inlinestaticprivate
static PhysicsName GRINS::PhysicsNaming::variable_pinning ( )
inlinestatic

Definition at line 194 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer(), and GRINS::VariablePinning::VariablePinning().

195  { return "VariablePinning"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::velocity_drag ( )
inlinestatic

Definition at line 74 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer(), and GRINS::VelocityDragBase< Viscosity >::read_input_options().

75  { return "VelocityDrag"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::velocity_drag_adjoint_stab ( )
inlinestatic

Definition at line 77 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

78  { return "VelocityDragAdjointStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::velocity_penalty ( )
inlinestatic

Definition at line 80 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

81  { return "VelocityPenalty"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::velocity_penalty2 ( )
inlinestatic

Definition at line 83 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer(), and GRINS::VelocityPenaltyBase< Viscosity >::VelocityPenaltyBase().

84  { return "VelocityPenalty2"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::velocity_penalty2_adjoint_stab ( )
inlinestatic

Definition at line 92 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer(), and GRINS::VelocityPenaltyBase< Viscosity >::VelocityPenaltyBase().

93  { return "VelocityPenalty2AdjointStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::velocity_penalty3 ( )
inlinestatic

Definition at line 86 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer(), and GRINS::VelocityPenaltyBase< Viscosity >::VelocityPenaltyBase().

87  { return "VelocityPenalty3"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::velocity_penalty3_adjoint_stab ( )
inlinestatic

Definition at line 95 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer(), and GRINS::VelocityPenaltyBase< Viscosity >::VelocityPenaltyBase().

96  { return "VelocityPenalty3AdjointStabilization"+suffix(); }
static std::string & suffix()
static PhysicsName GRINS::PhysicsNaming::velocity_penalty_adjoint_stab ( )
inlinestatic

Definition at line 89 of file physics_naming.h.

References suffix().

Referenced by GRINS::PhysicsFactoryInitializer::PhysicsFactoryInitializer().

90  { return "VelocityPenaltyAdjointStabilization"+suffix(); }
static std::string & suffix()

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

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