22 params.
addRequiredParam<
unsigned int>(
"connection_index",
"Index of the connected flow channel");
23 params.
addRequiredParam<UserObjectName>(
"gate_valve_uo",
"1-phase gate valve user object");
33 "Adds boundary fluxes for flow channels connected to a 1-phase gate valve");
41 _connection_index(getParam<unsigned
int>(
"connection_index")),
44 _A_elem(adCoupledValue(
"A_elem")),
45 _A_linear(adCoupledValue(
"A_linear")),
47 _rhoA_jvar(coupled(
"rhoA")),
48 _rhouA_jvar(coupled(
"rhouA")),
49 _rhoEA_jvar(coupled(
"rhoEA")),
51 _jvar_map(getIndexMapping()),
52 _equation_index(_jvar_map.at(_var.number()))
66 std::map<unsigned int, unsigned int>
69 std::map<unsigned int, unsigned int> jvar_map;
const ADVariableValue & _A_elem
Cross-sectional area, elemental.
Gate valve user object for 1-phase flow.
std::map< unsigned int, unsigned int > getIndexMapping() const
Creates mapping of coupled variable index to local equation system index.
ADGateValve1PhaseBC(const InputParameters ¶ms)
const unsigned int _rhouA_jvar
rho*u*A coupled variable index
registerMooseObject("ThermalHydraulicsApp", ADGateValve1PhaseBC)
DualNumber< Real, DNDerivativeType, true > ADReal
const unsigned int _rhoA_jvar
rho*A coupled variable index
const unsigned int _equation_index
Index within local system of the equation upon which this object acts.
const ADGateValve1PhaseUserObject & _gate_valve_uo
1-phase gate valve user object
const unsigned int _rhoEA_jvar
rho*E*A coupled variable index
static InputParameters validParams()
const std::vector< ADReal > & getFlux(const unsigned int &connection_index) const override
Gets the flux vector for a connection.
const unsigned int _connection_index
Index of connected flow channel.
static InputParameters validParams()
const ADTemplateVariableTestValue< T > & _test
Adds boundary fluxes for flow channels connected to a 1-phase gate valve.
virtual ADReal computeQpResidual() override
const Real _normal
Component of outward normals along 1-D direction.
Base class for integrated boundary conditions for 1D problems in 3D space.
void ErrorVector unsigned int
const ADVariableValue & _A_linear
Cross-sectional area, linear.