21 "Inlet mass flow rate function [kg/s]");
22 params.
addRequiredParam<FunctionName>(
"inlet_temperature",
"Inlet temperature function [K]");
42 const std::string get_mdot_fn_name =
name() +
"_get_inlet_mdot_ctrl";
44 const std::string class_name =
"GetFunctionValueControl";
46 params.
set<FunctionName>(
"function") = getParam<FunctionName>(
"inlet_mass_flow_rate");
51 const std::string class_name =
"SetComponentRealValueControl";
54 params.set<std::string>(
"parameter") =
"m_dot";
55 params.set<std::string>(
"value") = get_mdot_fn_name +
":value";
60 const std::string get_T_fn_name =
name() +
"_get_inlet_T_ctrl";
62 const std::string class_name =
"GetFunctionValueControl";
64 params.
set<FunctionName>(
"function") = getParam<FunctionName>(
"inlet_temperature");
69 const std::string class_name =
"SetComponentRealValueControl";
72 params.set<std::string>(
"parameter") =
"T";
73 params.set<std::string>(
"value") = get_T_fn_name +
":value";
81 const std::string class_name =
"InletMassFlowRateTemperature1Phase";
84 params.set<
Real>(
"m_dot") = 0.0;
85 params.set<
Real>(
"T") = 300.0;
92 return name() +
"_inlet";
void addControlLogicObject(const std::string &class_name, const std::string &obj_name, InputParameters ¶ms)
Adds a ControlLogic object.
registerActionComponent("ThermalHydraulicsApp", InjectionWell)
InputParameters getValidParams(const std::string &name) const
const std::string & name() const
Base class for injection and production wells.
void addWellBaseComponents(bool is_production)
Adds the components common to both injection and production.
const Point & _surface_point
Surface point.
static InputParameters validParams()
void addInlet()
Adds inlet component.
std::string flowChannelName(unsigned int i) const
Name of a flow channel.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
InjectionWell(const InputParameters ¶ms)
std::string inletName() const
Inlet component name.
Adds the components and controls for an injection well.
virtual void addTHMComponents() override
void addTHMComponent(const std::string &class_name, const std::string &obj_name, InputParameters ¶ms)
Adds a THM component.
registerTHMActionComponentTasks("ThermalHydraulicsApp", InjectionWell)
virtual void addControlLogic() override