23 params.
addParam<FunctionName>(
"v_fn",
"Velocity function with time at the boundary");
24 params.
addParam<FunctionName>(
"T_fn",
"Temperature function with time at the boundary");
25 params.
addCoupledVar(
"porosity_elem",
"Element averaged porosity");
26 params.
addCoupledVar(
"T_branch",
"Coupled scalar branch temperature");
32 _cp(getMaterialProperty<
Real>(
"cp_fluid")),
33 _has_vbc(parameters.isParamValid(
"v_fn")),
34 _has_Tbc(parameters.isParamValid(
"T_fn")),
35 _v_fn(_has_vbc ? &getFunction(
"v_fn") : NULL),
36 _T_fn(_has_Tbc ? &getFunction(
"T_fn") : NULL),
37 _k_elem(getMaterialProperty<
Real>(
"k_fluid_elem")),
38 _has_porosity_elem(isParamValid(
"porosity_elem")),
39 _porosity_elem(_has_porosity_elem ? coupledValue(
"porosity_elem")
40 : (_has_porosity ? coupledValue(
"porosity") : _zero)),
41 _has_Tbranch(parameters.isParamValid(
"T_branch")),
42 _T_branch(_has_Tbranch ? coupledScalarValue(
"T_branch") : _zero),
46 mooseError(
"For an inlet condition ('v_fn' is given), a boundary temperature ('T_fn') is also " 49 mooseError(
"Temperature function and branch temperature cannot be BOTH specified in " 50 "INSFEFluidEnergyBC.");
75 return convection_term + diffusion_term;
84 Real convection_term = 0;
89 Real rho, drho_dp, drho_dT;
100 return convection_term + diffusion_term;
const VariableValue & _u_vel
const VariableTestValue & _test
virtual Real computeQpResidual() override
const MaterialProperty< Real > & _cp
const unsigned int invalid_uint
const MooseArray< Point > & _normals
const VariableValue & _T_branch
INSFEFluidEnergyBC(const InputParameters ¶meters)
const VariableGradient & _grad_u
virtual Real computeQpJacobian() override
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
unsigned mapVarNumber(unsigned var)
const VariablePhiValue & _phi
const VariablePhiGradient & _grad_phi
static InputParameters validParams()
This class couples together all the variables for the 3D fluid equations to allow them to be used in ...
const VariableValue & _v_vel
const MooseArray< Point > & _q_point
const SinglePhaseFluidProperties & _eos
const VariableValue & _pressure
const MaterialProperty< Real > & _k_elem
registerMooseObject("NavierStokesApp", INSFEFluidEnergyBC)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
An integral BC for the energy (temperature) equation.
const MaterialProperty< Real > & _rho
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
void mooseError(Args &&... args) const
unsigned int _T_branch_var_number
const VariableValue & _porosity_elem
virtual Real value(Real t, const Point &p) const
registerMooseObjectRenamed("NavierStokesApp", MDFluidEnergyBC, "02/01/2024 00:00", INSFEFluidEnergyBC)
static InputParameters validParams()
const VariableValue & _w_vel