20 params.
addRequiredParam<FunctionName>(
"outlet_pressure",
"Outlet pressure function [Pa]");
39 const std::string get_fn_name =
name() +
"_get_outlet_p_ctrl";
41 const std::string class_name =
"GetFunctionValueControl";
43 params.
set<FunctionName>(
"function") = getParam<FunctionName>(
"outlet_pressure");
48 const std::string class_name =
"SetComponentRealValueControl";
51 params.set<std::string>(
"parameter") =
"p";
52 params.set<std::string>(
"value") = get_fn_name +
":value";
60 const std::string class_name =
"Outlet1Phase";
63 params.set<
Real>(
"p") = 1e5;
70 return name() +
"_outlet";
void addControlLogicObject(const std::string &class_name, const std::string &obj_name, InputParameters ¶ms)
Adds a ControlLogic object.
registerActionComponent("ThermalHydraulicsApp", ProductionWell)
std::string outletName() const
Outlet component name.
InputParameters getValidParams(const std::string &name) const
Adds the components and controls for a production well.
void addOutlet()
Adds outlet component.
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()
static InputParameters validParams()
registerTHMActionComponentTasks("ThermalHydraulicsApp", ProductionWell)
std::string flowChannelName(unsigned int i) const
Name of a flow channel.
virtual void addTHMComponents() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void addControlLogic() override
ProductionWell(const InputParameters ¶ms)
void addTHMComponent(const std::string &class_name, const std::string &obj_name, InputParameters ¶ms)
Adds a THM component.