25 "fp",
"The name of the user object that defines fluid properties");
27 "True if velocity is put out as a vector field.");
43 _sim(*params.getCheckedPointerParam<
THMProblem *>(
"_thm_problem")),
44 _factory(_app.getFactory()),
45 _flow_channel(*params.getCheckedPointerParam<
FlowChannelBase *>(
"_flow_channel")),
46 _fe_type(_sim.getFlowFEType()),
47 _fp_name(params.
get<UserObjectName>(
"fp")),
49 _gravity_vector(_flow_channel.getParam<
RealVectorValue>(
"gravity_vector")),
50 _gravity_magnitude(_gravity_vector.
norm()),
51 _output_vector_velocity(params.
get<bool>(
"output_vector_velocity"))
61 if (dynamic_cast<const ConstantFunction *>(&fn) !=
nullptr)
100 const std::string class_name =
"FunctionNodalAverageIC";
102 params.
set<VariableName>(
"variable") =
AREA;
103 params.
set<std::vector<SubdomainName>>(
"block") = block;
104 params.
set<FunctionName>(
"function") = area_function;
116 const std::string class_name =
"ConstantMaterial";
120 params.
set<
Real>(
"value") = 1.0;
static const std::string AREA_LINEAR
const FunctionName & getAreaFunctionName() const
Get the name of the function describing the flow channel area.
Specialization of FEProblem to run with component subsystem.
static const std::string UNITY
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.
static const std::string NUSSELT_NUMBER
static const std::string HEAT_FLUX_WALL
static const std::string AREA
static const std::string UNITY
virtual void addMaterial(const std::string &material_name, const std::string &name, InputParameters ¶meters)
static const std::string TEMPERATURE_WALL
virtual void addCommonInitialConditions()
Adds initial conditions common to any flow model.
static InputParameters validParams()
A base class for flow channels.
static const std::string NUSSELT_NUMBER
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
void makeFunctionControllableIfConstant(const FunctionName &fn_name, const std::string &control_name, const std::string ¶m="value") const
Makes a function controllable if it is constant.
const FunctionName & getVariableFn(const FunctionName &fn_param_name)
bool isRestarting() const
FlowChannelBase & _flow_channel
The flow channel component that built this class.
void addFunctionIC(const VariableName &var_name, const std::string &func_name, const std::vector< SubdomainName > &block_names)
bool isParamValid(const std::string &name) const
static const std::string HEAT_FLUX_PERIMETER
static const std::string AREA_LINEAR
virtual Function & getFunction(const std::string &name, const THREAD_ID tid=0)
void addSimVariable(bool nl, const VariableName &name, libMesh::FEType fe_type, Real scaling_factor=1.0)
Queues a variable of type MooseVariableScalar to be added to the nonlinear or aux system...
static const std::string TEMPERATURE_WALL
virtual void addCommonVariables()
Adds variables common to any flow model (A, P_hf, ...)
const T & getParam(const std::string &name) const
const libMesh::FEType & _fe_type
The type of FE used for flow.
Factory & _factory
The Factory associated with the MooseApp.
static const std::string AREA
static const std::string DIRECTION
static const std::string HEAT_FLUX_PERIMETER
void addSimInitialCondition(const std::string &type, const std::string &name, InputParameters params)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
FlowModel(const InputParameters ¶ms)
void connectObject(const InputParameters ¶ms, const std::string &mooseName, const std::string &name) const
Connect with control logic.
static const std::string HEAT_FLUX_WALL
virtual const std::vector< SubdomainName > & getSubdomainNames() const
Gets the subdomain names for this component.
static InputParameters validParams()
virtual Real value(Real t, const Point &p) const
virtual void addCommonMooseObjects()
Adds common MOOSE objects.
const std::string _comp_name
The component name.
void addConstantIC(const VariableName &var_name, Real value, const std::vector< SubdomainName > &block_names)
virtual bool hasFunction(const std::string &name, const THREAD_ID tid=0)
const Elem & get(const ElemType type_in)
static const std::string DIRECTION
std::vector< VariableName > _derivative_vars