24 params.
addRequiredParam<PostprocessorName>(
"pressure",
"Pressure post-processor");
25 params.
addRequiredParam<PostprocessorName>(
"temperature",
"Temperature post-processor");
28 "Unit normal vector from the junction");
29 params.
addRequiredParam<UserObjectName>(
"volume_junction_uo",
"Volume junction object");
30 params.
addRequiredParam<UserObjectName>(
"numerical_flux_uo",
"Numerical flux object");
31 params.
addRequiredParam<UserObjectName>(
"fluid_properties",
"SinglePhaseFluidProperties object");
34 "Applies a flux to the volume junction for VolumeJunctionCoupledFlux1Phase.");
42 _equation_index(getParam<unsigned
int>(
"equation_index")),
43 _p(getPostprocessorValue(
"pressure")),
44 _T(getPostprocessorValue(
"temperature")),
45 _A_coupled(getParam<
Real>(
"A_coupled")),
46 _normal_from_junction(getParam<
RealVectorValue>(
"normal_from_junction")),
47 _normal_to_junction(-_normal_from_junction),
58 const auto E =
_fp.e_from_p_T(
_p,
_T);
Applies a flux to the volume junction for VolumeJunctionCoupledFlux1Phase.
std::vector< ADReal > computeResidual(const std::vector< ADReal > &flux_3d, const std::vector< ADReal > &Ui, const RealVectorValue &ni, bool is_primary_connection) const
registerMooseObject("ThermalHydraulicsApp", VolumeJunctionCoupledFlux1PhaseKernel)
const Real _A_coupled
Coupled area between junction and other application.
virtual ADReal computeQpResidual() override
DualNumber< Real, DNDerivativeType, false > ADReal
const ADNumericalFlux3EqnBase & _numerical_flux_uo
Numerical flux user object.
const PostprocessorValue & _p
Pressure.
Common class for single phase fluid properties.
std::vector< ADReal > compute3DFlux(const ADNumericalFlux3EqnBase &numerical_flux, const std::vector< ADReal > &Ui, const RealVectorValue &ni) const
const unsigned int _equation_index
Index within local system of the equation upon which this object acts.
Base class for computing numerical fluxes for FlowModelSinglePhase.
Computes and caches flux and residual vectors for a 1-phase volume junction.
static InputParameters validParams()
const ADVolumeJunction1PhaseUserObject & _volume_junction_uo
Volume junction user object.
const RealVectorValue _normal_to_junction
Normal vector to the junction from the other application.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const SinglePhaseFluidProperties & _fp
Fluid properties.
VolumeJunctionCoupledFlux1PhaseKernel(const InputParameters ¶ms)
static InputParameters validParams()
const PostprocessorValue & _T
Temperature.
void ErrorVector unsigned int
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs for 3D.