27 "PNSInitialCondition sets intial constant values for any porous flow variable.");
57 "Specifies what this variable is in the Navier Stokes namespace of variables");
59 "The initial pressure, assumed constant everywhere");
61 "The initial temperature, assumed constant everywhere");
63 "initial_interstitial_velocity",
64 "The initial interstitial velocity, assumed constant everywhere");
66 "The initial superficial velocity, assumed constant everywhere");
67 params.
addCoupledVar(
"porosity",
"Porosity variable (defaults to porosity material property).");
69 "The name of the user object for fluid properties");
76 _variable_type(isParamValid(
"variable_type") ? getParam<
MooseEnum>(
"variable_type")
78 _initial_pressure(getParam<
Real>(
"initial_pressure")),
79 _initial_temperature(getParam<
Real>(
"initial_temperature")),
80 _superficial_velocities_set(isParamValid(
"initial_superficial_velocity") ? true : false),
81 _eps(isCoupled(
"porosity") ? coupledValue(
"porosity")
90 paramError(
"Either superficial or interstitial velocities may be specified.");
107 const Real v_initial = 1. / rho_initial;
128 return rho_initial *
_eps[
_qp];
149 return rho_initial * et_initial;
152 return rho_initial * et_initial *
_eps[
_qp];
static const std::string superficial_density
static const std::string total_energy_density
static const std::string momentum_x
std::string join(Iterator begin, Iterator end, const std::string &delimiter)
auto norm() const -> decltype(std::norm(Real()))
virtual Real rho_from_p_T(Real p, Real T) const override
static const std::string mach_number
static const std::string superficial_momentum_y
static const std::string velocity_z
static const std::string superficial_momentum_x
const IdealGasFluidProperties & _fp
Fluid properties.
static const std::string density
static const std::string superficial_momentum_z
static InputParameters validParams()
static const std::string velocity_x
static const std::string temperature
const bool _superficial_velocities_set
Whether initial velocities were specified as superficial or interstitial.
const std::string _variable_type
Used to map the variable to one of the expected types.
static const std::string specific_internal_energy
const Real _initial_pressure
Initial constant value of the pressure.
RealVectorValue _initial_superficial_velocity
Initial constant value of the superficial velocity.
bool isParamValid(const std::string &name) const
static const std::string porosity
RealVectorValue _initial_interstitial_velocity
Initial constant value of the interstitial velocity.
auto norm_sq() const -> decltype(std::norm(Real()))
static const std::string superficial_velocity_y
static const std::string specific_volume
static const std::string velocity_y
void paramError(const std::string ¶m, Args... args) const
registerMooseObject("NavierStokesApp", PNSInitialCondition)
static const std::string superficial_total_enthalpy_density
const Real _initial_temperature
Initial constant value of the fluid temperature.
const VariableValue & _eps
The porosity variable.
static const std::string momentum_y
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string specific_total_enthalpy
static const std::string pressure
void mooseError(Args &&... args) const
static const std::string superficial_total_energy_density
virtual Real c_from_v_e(Real v, Real e) const override
virtual Real value(const Point &p)
The value of the variable at a point.
static const std::string momentum_z
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature...
PNSInitialCondition sets intial constant values for all variables given the: .) Initial pressure ...
PNSInitialCondition(const InputParameters ¶meters)
static const std::string superficial_velocity_z
const Elem & get(const ElemType type_in)
static const std::string superficial_velocity_x