21 params.
addParam<
bool>(
"reversible",
true,
"True for reversible, false for pure inlet");
24 "for 1-phase flow channels.");
40 logError(
"Incompatible flow model. Make sure you use this component with single phase flow "
51 const std::string boundary_flux_name =
genName(
name(),
"boundary_flux");
53 const std::string class_name =
"ADBoundaryFlux3EqnGhostVelocityTemperature";
55 params.
set<Real>(
"vel") = getParam<Real>(
"vel");
56 params.
set<Real>(
"T") = getParam<Real>(
"T");
60 params.
set<UserObjectName>(
"fluid_properties") =
_fp_name;
registerMooseObject("ThermalHydraulicsApp", InletVelocityTemperature1Phase)
const ExecFlagType EXEC_INITIAL
const ExecFlagType EXEC_LINEAR
const ExecFlagType EXEC_NONLINEAR
Real _normal
Outward normal on this boundary.
void logError(Args &&... args) const
Logs an error.
THMProblem & getTHMProblem() const
Gets the THM problem.
Factory & _factory
The Factory associated with the MooseApp.
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...
virtual std::vector< std::shared_ptr< UserObject > > addUserObject(const std::string &user_object_name, const std::string &name, InputParameters ¶meters)
InputParameters getValidParams(const std::string &name) const
UserObjectName _numerical_flux_name
Numerical flux user object name.
const UserObjectName _boundary_uo_name
Name of boundary user object name.
Base class for boundary components connected to FlowChannel1Phase components.
virtual void check() const override
Check the component integrity.
static InputParameters validParams()
virtual void addWeakBCs()
Creates the boundary condition objects for 1-phase flow.
UserObjectName _fp_name
Fluid property user object name.
std::shared_ptr< const FlowModel > _flow_model
Flow model.
Flow model for a single-component, single-phase fluid using the Euler equations.
Boundary condition with prescribed velocity and temperature for 1-phase flow channels.
InletVelocityTemperature1Phase(const InputParameters ¶ms)
bool _reversible
True to allow the flow to reverse, otherwise false.
virtual void check() const override
Check the component integrity.
virtual void addMooseObjects() override
static InputParameters validParams()
std::string genName(const std::string &prefix, unsigned int id, const std::string &suffix="") const
Build a name from a prefix, number and possible suffix.
ExecFlagEnum getDefaultExecFlagEnum()