25 #include "grins_config.h"
37 #include "libmesh/getpot.h"
38 #include "libmesh/string_to_enum.h"
39 #include "libmesh/fem_system.h"
60 "ReferenceTemperature",
66 "ThermalExpansionCoeff",
83 const std::string& old_option,
84 const std::string& property,
85 libMesh::Real& value )
92 "Materials/"+material+
"/"+property+
"/value" );
95 if( input.have_variable(old_option) )
104 else if( input.have_variable(
"Materials/"+material+
"/"+property+
"/value" ) )
108 "Materials/"+material+
"/"+property+
"/value", 0.0 );
118 (value, input, old_option, 1.0 );
124 libmesh_error_msg(
"ERROR: Detected non-positive "+property+
"!");
129 const std::string& old_option,
130 const std::string& material,
131 const std::string& property )
136 warning =
"WARNING: Neither "+old_option+
"\n";
137 warning +=
" nor a material_name was detected in input\n";
138 warning +
" "+
property+
" is defaulting to 1.0. This behavior is DEPRECATED!\n";
139 warning +=
" Please update to use Material/MATERIAL_NAME/"+
property+
"/value\n";
143 warning =
"WARNING: Neither "+old_option+
"\n";
144 warning +=
" nor Material/"+material+
"/"+
property+
"/value\n";
145 warning +
" "+
property+
" is defaulting to 1.0. This behavior is DEPRECATED!\n";
146 warning +=
" Please update to use Material/MATERIAL_NAME/"+
property+
"/value\n";
virtual void set_parameter(libMesh::Number ¶m_variable, const GetPot &input, const std::string ¶m_name, libMesh::Number param_default)
Each subclass can simultaneously read a parameter value from.
void read_property(const GetPot &input, const std::string &old_option, const std::string &property, libMesh::Real &value)
Helper function for parsing/maintaing backward compatibility.
libMesh::Point _g
Gravitational vector.
const PressureFEVariable & _press_var
const VelocityVariable & _flow_vars
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
void check_var_subdomain_consistency(const FEVariablesBase &var) const
Check that var is enabled on at least the subdomains this Physics is.
#define grins_warning(message)
libMesh::Number _T_ref
reference temperature
static PhysicsName boussinesq_buoyancy()
void no_input_warning(const GetPot &input, const std::string &old_option, const std::string &material, const std::string &property)
Helper function for parsing/maintaing backward compatibility.
static void dep_input_warning(const std::string &old_option, const std::string &property)
Helper function for parsing/maintaing backward compatibility.
const PrimitiveTempFEVariables & _temp_vars
static void duplicate_input_test(const GetPot &input, const std::string &option1, const std::string &option2)
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.
libMesh::Number _beta_T
coefficient of thermal expansion
libMesh::Number _rho
density
static bool have_material(const GetPot &input, const std::string &physics)
Check if Physics/physics section has a material variable.