21 params.
addRequiredParam<
unsigned int>(
"connection_index",
"Index of the connected flow channel");
22 params.
addRequiredParam<UserObjectName>(
"volume_junction_uo",
"Volume junction user object name");
32 "Adds boundary fluxes for flow channels connected to a 1-phase volume junction");
40 _connection_index(getParam<unsigned
int>(
"connection_index")),
43 _A_elem(adCoupledValue(
"A_elem")),
44 _A_linear(adCoupledValue(
"A_linear")),
46 _rhoA_jvar(coupled(
"rhoA")),
47 _rhouA_jvar(coupled(
"rhouA")),
48 _rhoEA_jvar(coupled(
"rhoEA")),
50 _flow_channel_jvar_map(getFlowChannelIndexMapping()),
51 _equation_index(_flow_channel_jvar_map.at(_var.number()))
65 std::map<unsigned int, unsigned int>
68 std::map<unsigned int, unsigned int> jvar_map;
const ADVariableValue & _A_linear
Cross-sectional area, linear.
const ADVariableValue & _A_elem
Cross-sectional area, elemental.
const unsigned int _connection_index
Index of the connected flow channel.
const ADVolumeJunction1PhaseUserObject & _volume_junction_uo
1-phase volume junction user object
virtual ADReal computeQpResidual() override
std::map< unsigned int, unsigned int > getFlowChannelIndexMapping() const
Creates the mapping of coupled variable index to local equation system index for flow channel variabl...
DualNumber< Real, DNDerivativeType, true > ADReal
const unsigned int _rhoA_jvar
Flow channel rho*A coupled variable index.
registerMooseObject("ThermalHydraulicsApp", ADVolumeJunction1PhaseBC)
const std::vector< ADReal > & getFlux(const unsigned int &connection_index) const override
Gets the flux vector for a connection.
static InputParameters validParams()
Computes and caches flux and residual vectors for a 1-phase volume junction.
const unsigned int _rhoEA_jvar
Flow channel rho*E*A coupled variable index.
const unsigned int _equation_index
Index within local system of the equation upon which this object acts.
const ADTemplateVariableTestValue< T > & _test
Adds boundary fluxes for flow channels connected to a 1-phase volume junction.
const unsigned int _rhouA_jvar
Flow channel rho*u*A coupled variable index.
const Real _normal
Component of outward normals along 1-D direction.
ADVolumeJunction1PhaseBC(const InputParameters ¶ms)
Base class for integrated boundary conditions for 1D problems in 3D space.
void ErrorVector unsigned int
static InputParameters validParams()