21 params.
addRequiredParam<
unsigned int>(
"connection_index",
"Index of the connected flow channel");
22 params.
addRequiredParam<UserObjectName>(
"junction_uo",
"1-phase one-to-one junction user object");
29 "Adds boundary fluxes for flow channels connected to a 1-phase one-to-one junction");
37 _connection_index(getParam<unsigned
int>(
"connection_index")),
40 _rhoA_jvar(coupled(
"rhoA")),
41 _rhouA_jvar(coupled(
"rhouA")),
42 _rhoEA_jvar(coupled(
"rhoEA")),
44 _jvar_map(getIndexMapping()),
45 _equation_index(_jvar_map.at(_var.number()))
57 std::map<unsigned int, unsigned int>
60 std::map<unsigned int, unsigned int> jvar_map;
const unsigned int _rhoA_jvar
rho*A coupled variable index
ADJunctionOneToOne1PhaseBC(const InputParameters ¶ms)
virtual ADReal computeQpResidual() override
static InputParameters validParams()
const unsigned int _equation_index
Index within local system of the equation upon which this object acts.
DualNumber< Real, DNDerivativeType, true > ADReal
std::map< unsigned int, unsigned int > getIndexMapping() const
Creates mapping of coupled variable index to local equation system index.
const std::vector< ADReal > & getFlux(const unsigned int &connection_index) const override
Gets the flux vector for a connection.
static InputParameters validParams()
const unsigned int _rhouA_jvar
rho*u*A coupled variable index
Computes flux between two subdomains for 1-phase one-to-one junction.
const unsigned int _connection_index
Index of connected flow channel.
const ADTemplateVariableTestValue< T > & _test
Adds boundary fluxes for flow channels connected to a 1-phase one-to-one junction.
const Real _normal
Component of outward normals along 1-D direction.
const unsigned int _rhoEA_jvar
rho*E*A coupled variable index
registerMooseObject("ThermalHydraulicsApp", ADJunctionOneToOne1PhaseBC)
Base class for integrated boundary conditions for 1D problems in 3D space.
void ErrorVector unsigned int
const ADJunctionOneToOne1PhaseUserObject & _junction_uo
1-phase one-to-one junction user object