26 #include "grins_config.h"
42 #include "libmesh/string_to_enum.h"
43 #include "libmesh/quadrature.h"
44 #include "libmesh/fem_system.h"
57 _n_species(_species_vars.n_species()),
58 _fixed_density( input(
"Physics/"+
PhysicsNaming::reacting_low_mach_navier_stokes()+
"/fixed_density", false ) ),
87 "ThermodynamicPressure",
107 const unsigned int dim = system->get_mesh().mesh_dimension();
109 for(
unsigned int i = 0; i < this->
_n_species; i++ )
141 context.get_element_fe(
_flow_vars.
u())->get_dphi();
146 context.get_element_fe(
_temp_vars.
T())->get_dphi();
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.
bool _enable_thermo_press_calc
Flag to enable thermodynamic pressure calculation.
PrimitiveTempFEVariables & _temp_vars
PressureFEVariable & _press_var
VariableIndex species(unsigned int species) const
static PhysicsName reacting_low_mach_navier_stokes()
Physics abstract base class. Defines API for physics to be added to MultiphysicsSystem.
ThermoPressureVariable * _p0_var
unsigned int _n_species
Number of species.
void check_var_subdomain_consistency(const FEVariablesBase &var) const
Check that var is enabled on at least the subdomains this Physics is.
virtual void init_context(AssemblyContext &context)
Initialize context for added physics variables.
void read_input_options(const GetPot &input)
Read options from GetPot input file.
virtual void set_time_evolving_vars(libMesh::FEMSystem *system)
Sets velocity variables to be time-evolving.
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.
SpeciesMassFractionsVariable & _species_vars
libMesh::Real _fixed_rho_value
void set_is_constraint_var(bool is_constraint_var)
Set whether or not this is a "constraint" variable.
VelocityVariable & _flow_vars
static std::string thermo_press_variable_name(const GetPot &input, const std::string &subsection_name, const SECTION_TYPE section_type)
libMesh::Point _g
Gravity vector.
ReactingLowMachNavierStokesAbstract()