25 "equation", equation,
"Equation for which to query flux vector");
26 params.
addRequiredParam<PostprocessorName>(
"pressure",
"Pressure post-processor");
27 params.
addRequiredParam<PostprocessorName>(
"temperature",
"Temperature post-processor");
30 "Unit normal vector from the junction");
33 "ADVolumeJunction1PhaseUserObject object corresponding to the volume junction");
34 params.
addRequiredParam<UserObjectName>(
"numerical_flux_uo",
"ADNumericalFlux3EqnBase object");
35 params.
addRequiredParam<UserObjectName>(
"fluid_properties",
"SinglePhaseFluidProperties object");
37 params.
addClassDescription(
"Computes a mass or energy flux for VolumeJunctionCoupledFlux1Phase.");
45 _equation(getParam<
MooseEnum>(
"equation")),
46 _p(getPostprocessorValue(
"pressure")),
47 _T(getPostprocessorValue(
"temperature")),
48 _A_coupled(getParam<
Real>(
"A_coupled")),
49 _normal_from_junction(getParam<
RealVectorValue>(
"normal_from_junction")),
50 _normal_to_junction(-_normal_from_junction),
61 const auto E =
_fp.e_from_p_T(
_p,
_T);
const RealVectorValue _normal_to_junction
Normal vector to the junction from the other application.
static InputParameters validParams()
const MooseEnum _equation
Equation for which to get flux.
VolumeJunctionCoupledFlux1PhasePostprocessor(const InputParameters ¶meters)
virtual void finalize() override
const PostprocessorValue & _T
Temperature.
Real _value
Value of this PP.
const SinglePhaseFluidProperties & _fp
Fluid properties.
static InputParameters validParams()
Common class for single phase fluid properties.
std::vector< ADReal > compute3DFlux(const ADNumericalFlux3EqnBase &numerical_flux, const std::vector< ADReal > &Ui, const RealVectorValue &ni) const
Base class for computing numerical fluxes for FlowModelSinglePhase.
registerMooseObject("ThermalHydraulicsApp", VolumeJunctionCoupledFlux1PhasePostprocessor)
Computes and caches flux and residual vectors for a 1-phase volume junction.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ADNumericalFlux3EqnBase & _numerical_flux_uo
Numerical flux user object.
Scalar< const PostprocessorValue > PostprocessorValue
void mooseError(Args &&... args) const
Computes a mass or energy flux for VolumeJunctionCoupledFlux1Phase.
const PostprocessorValue & _p
Pressure.
virtual PostprocessorValue getValue() const override
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs for 3D.
const Real _A_coupled
Coupled area between junction and other application.
const ADVolumeJunction1PhaseUserObject & _volume_junction_uo
Volume junction user object.