21 params.
addParam<std::vector<FunctionName>>(
22 "passives", {},
"Prescribed passive transport functions [amount/m^3]");
23 params.
addParam<
bool>(
"reversible",
true,
"True for reversible, false for pure inlet");
25 params.
addClassDescription(
"Boundary condition with prescribed mass flow rate and temperature " 26 "for 1-phase flow channels.");
44 const auto n_passives = getParam<std::vector<FunctionName>>(
"passives").size();
45 if (n_passives != fm->passiveTransportSolutionVariableNames().size())
46 logError(
"The number of entries in 'passives' must match the number of passive transport " 47 "variables provided in the connected flow channel.");
50 logError(
"Incompatible flow model. Make sure you use this component with single phase flow " 62 const std::string class_name =
"ADBoundaryFlux3EqnGhostMassFlowRateTemperature";
65 params.
set<
Real>(
"mass_flow_rate") = getParam<Real>(
"m_dot");
68 params.
set<UserObjectName>(
"fluid_properties") =
_fp_name;
void connectObject(const InputParameters &obj_params, const std::string &obj_name, const std::string ¶m) const
Connects a controllable parameter of the component to a controllable parameter of a constituent objec...
THMProblem & getTHMProblem() const
Gets the THM problem.
const InputParameters & parameters() const
Real _normal
Outward normal on this boundary.
static InputParameters validParams()
InletMassFlowRateTemperature1Phase(const InputParameters ¶ms)
InputParameters getValidParams(const std::string &name) const
virtual void addMooseObjects() override
ExecFlagEnum getDefaultExecFlagEnum()
void logError(Args &&... args) const
Logs an error.
virtual void check() const override
Check the component integrity.
const UserObjectName _boundary_uo_name
Name of boundary user object name.
const ExecFlagType EXEC_LINEAR
const ExecFlagType EXEC_NONLINEAR
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
UserObjectName _numerical_flux_name
Numerical flux user object name.
std::shared_ptr< const FlowModel > _flow_model
Flow model.
Factory & _factory
The Factory associated with the MooseApp.
virtual std::vector< std::shared_ptr< UserObject > > addUserObject(const std::string &user_object_name, const std::string &name, InputParameters ¶meters)
virtual void check() const override
Check the component integrity.
Flow model for a single-component, single-phase fluid using the Euler equations.
UserObjectName _fp_name
Fluid property user object name.
virtual void addWeakBCs()
Creates the boundary condition objects for 1-phase flow.
registerMooseObject("ThermalHydraulicsApp", InletMassFlowRateTemperature1Phase)
Base class for boundary components connected to FlowChannel1Phase components.
Boundary condition with prescribed mass flow rate and temperature for 1-phase flow channels...
const ExecFlagType EXEC_INITIAL