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),
43 _T_branch_var_number(_has_Tbranch ? coupledScalar(
"T_branch") :
libMesh::invalid_uint)
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;
registerMooseObject("NavierStokesApp", INSFEFluidEnergyBC)
registerMooseObjectRenamed("NavierStokesApp", MDFluidEnergyBC, "02/01/2024 00:00", INSFEFluidEnergyBC)
virtual Real value(Real t, const Point &p) const
An integral BC for the energy (temperature) equation.
const VariableValue & _T_branch
const MaterialProperty< Real > & _cp
const VariableValue & _porosity_elem
virtual Real computeQpJacobian() override
const MaterialProperty< Real > & _k_elem
INSFEFluidEnergyBC(const InputParameters ¶meters)
static InputParameters validParams()
unsigned int _T_branch_var_number
virtual Real computeQpResidual() override
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
This class couples together all the variables for the 3D fluid equations to allow them to be used in ...
const VariableValue & _w_vel
static InputParameters validParams()
const MaterialProperty< Real > & _rho
const SinglePhaseFluidProperties & _eos
const VariableValue & _v_vel
const VariableValue & _u_vel
const VariableValue & _pressure
unsigned mapVarNumber(unsigned var)
const MooseArray< Point > & _q_point
const VariablePhiGradient & _grad_phi
const VariableGradient & _grad_u
const VariablePhiValue & _phi
const MooseArray< Point > & _normals
const VariableTestValue & _test
void mooseError(Args &&... args) const
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...