20 params.
addRequiredParam<UserObjectName>(
"fp",
"The name of fluid properties object to use.");
25 params.
addClassDescription(
"Set the initial condition for rho*E*A from pressure and temperature " 26 "variables and a velocity scalar function");
34 _p(coupledValue(
"p")),
35 _T(coupledValue(
"T")),
36 _vel(getFunction(
"vel")),
37 _area(coupledValue(
"A"))
47 return rho * (e + 0.5 * vel * vel) *
_area[
_qp];
registerMooseObject("ThermalHydraulicsApp", RhoEAFromPressureTemperatureFunctionVelocityIC)
virtual Real value(const Point &p)
static InputParameters validParams()
const VariableValue & _area
Cross-sectional area.
static InputParameters validParams()
This IC sets total energy density from provided pressure, temperature and user-defined veloctiy funct...
Common class for single phase fluid properties.
RhoEAFromPressureTemperatureFunctionVelocityIC(const InputParameters ¶meters)
const Function & _vel
The velocity given as a function.
const SinglePhaseFluidProperties & _fp
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableValue & _T
The temperature.
virtual Real value(Real t, const Point &p) const
const VariableValue & _p
The pressure.