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;
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.
virtual void check() const override
Check the component integrity.
THMProblem & getTHMProblem() const
Gets the THM problem.
Real _normal
Outward normal on this boundary.
static InputParameters validParams()
InputParameters getValidParams(const std::string &name) const
InletVelocityTemperature1Phase(const InputParameters ¶ms)
virtual const std::string & name() const
ExecFlagEnum getDefaultExecFlagEnum()
void logError(Args &&... args) const
Logs an error.
const UserObjectName _boundary_uo_name
Name of boundary user object name.
const ExecFlagType EXEC_LINEAR
const ExecFlagType EXEC_NONLINEAR
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.
static InputParameters validParams()
Factory & _factory
The Factory associated with the MooseApp.
void connectObject(const InputParameters ¶ms, const std::string &mooseName, const std::string &name) const
Connect with control logic.
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.
virtual void addMooseObjects() override
UserObjectName _fp_name
Fluid property user object name.
virtual void addWeakBCs()
Creates the boundary condition objects for 1-phase flow.
Boundary condition with prescribed velocity and temperature for 1-phase flow channels.
registerMooseObject("ThermalHydraulicsApp", InletVelocityTemperature1Phase)
Base class for boundary components connected to FlowChannel1Phase components.
bool _reversible
True to allow the flow to reverse, otherwise false.
const ExecFlagType EXEC_INITIAL