Go to the documentation of this file.
18 #include "MooseVariable.h"
26 InputParameters params = validParams<InitialCondition>();
27 params.addClassDescription(
"NSInitialCondition sets intial constant values for all variables.");
28 params.addRequiredParam<Real>(
"initial_pressure",
29 "The initial pressure, assumed constant everywhere");
30 params.addRequiredParam<Real>(
"initial_temperature",
31 "The initial temperature, assumed constant everywhere");
32 params.addRequiredParam<RealVectorValue>(
"initial_velocity",
33 "The initial velocity, assumed constant everywhere");
34 params.addRequiredParam<UserObjectName>(
"fluid_properties",
35 "The name of the user object for fluid properties");
41 : InitialCondition(parameters),
42 _initial_pressure(getParam<Real>(
"initial_pressure")),
43 _initial_temperature(getParam<Real>(
"initial_temperature")),
44 _initial_velocity(getParam<RealVectorValue>(
"initial_velocity")),
57 const Real v_initial = 1. / rho_initial;
84 return rho_initial * E_initial;
102 mooseError(
"Unrecognized variable: ", _var.name());
const std::string velocity_x
registerMooseObject("NavierStokesApp", NSInitialCondition)
const std::string specific_volume
const IdealGasFluidProperties & _fp
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature.
const std::string velocity_y
virtual Real rho_from_p_T(Real p, Real T) const override
const std::string velocity_z
const std::string momentum_y
const std::string mach_number
Real _initial_temperature
const std::string density
const std::string enthalpy
const std::string momentum_z
const std::string momentum_x
RealVectorValue _initial_velocity
const std::string internal_energy
InputParameters validParams< NSInitialCondition >()
NSInitialCondition sets intial constant values for all variables given the: .) Initial pressure ....
virtual Real c_from_v_e(Real v, Real e) const override
const std::string temperature
NSInitialCondition(const InputParameters ¶meters)
virtual Real value(const Point &p)
The value of the variable at a point.
const std::string total_energy
const std::string pressure