20 params.
addParam<FunctionName>(
"initial_p",
"Initial pressure in the flow channel [Pa]");
21 params.
addParam<FunctionName>(
"initial_vel",
"Initial velocity in the flow channel [m/s]");
22 params.
addParam<FunctionName>(
"initial_T",
"Initial temperature in the flow channel [K]");
23 params.
addParam<FunctionName>(
"D_h",
"Hydraulic diameter [m]");
25 "rdg_slope_reconstruction",
27 "Slope reconstruction type for rDG spatial discretization");
39 _numerical_flux_name(genName(
name(),
"numerical_flux")),
40 _rdg_slope_reconstruction(getParam<
MooseEnum>(
"rdg_slope_reconstruction"))
50 std::shared_ptr<FlowModel>
76 "' is not compatible with single phase flow channel. Use single phase heat transfer " 77 "component instead.");
88 std::ostringstream oss;
91 oss <<
" " << ic_param;
93 logError(
"The following initial condition parameters are missing:", oss.str());
109 const std::string mat_name =
genName(
name(),
"D_h_material");
113 const FunctionName & D_h_fn_name = getParam<FunctionName>(
"D_h");
115 const std::string class_name =
"ADGenericFunctionMaterial";
119 params.
set<std::vector<FunctionName>>(
"prop_values") = {D_h_fn_name};
126 const std::string class_name =
"ADHydraulicDiameterCircularMaterial";
130 params.
set<std::vector<VariableName>>(
"A") = {
THM::AREA};
virtual std::string flowModelClassName() const =0
Returns the flow model class name.
Specialization of FEProblem to run with component subsystem.
virtual void init() override
Initializes the component.
virtual void addHydraulicDiameterMaterial()
Adds a material for the hydraulic diameter.
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 InputParameters validParams()
virtual void addMooseObjects() override
THMProblem & getTHMProblem() const
Gets the THM problem.
virtual void check() const override
Check the component integrity.
Provides functions to setup the flow model.
virtual void addMaterial(const std::string &material_name, const std::string &name, InputParameters ¶meters)
const bool & _pipe_pars_transferred
Base class for heat transfer connections to 1-phase flow channels.
std::shared_ptr< MooseObject > create(const std::string &obj_name, const std::string &name, const InputParameters ¶meters, THREAD_ID tid=0, bool print_deprecated=true)
virtual std::vector< std::string > ICParameters() const =0
Returns the names of the IC parameters.
InputParameters getValidParams(const std::string &name) const
A base class for flow channels.
bool getVectorValuedVelocity()
Is velocity output as vector-valued field.
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.
std::vector< MaterialPropertyName > _Hw_1phase_names
1-phase wall heat transfer coefficient names for connected heat transfers
FlowChannel1PhaseBase(const InputParameters ¶ms)
bool isRestarting() const
virtual const std::string & name() const
void logError(Args &&... args) const
Logs an error.
bool isParamValid(const std::string &name) const
virtual std::shared_ptr< FlowModel > buildFlowModel() override
const UserObjectName _numerical_flux_name
Numerical flux user object name.
std::vector< std::string > _heat_transfer_names
Names of the heat transfer components connected to this component.
unsigned int _n_heat_transfer_connections
Number of connected heat transfer components.
static const std::string HYDRAULIC_DIAMETER
virtual void getHeatTransferVariableNames()
Populates heat connection variable names lists.
const MaterialPropertyName & getWallHeatTransferCoefficient1PhaseName() const
Returns 1-phase wall heat transfer coefficient name.
static const std::string AREA
static InputParameters validParams()
virtual void addMooseObjects() override
virtual void init() override
Initializes the component.
virtual void getHeatTransferVariableNames() override
Populates heat connection variable names lists.
Factory & _factory
The Factory associated with the MooseApp.
virtual void check() const override
Check the component integrity.
virtual void checkFluidProperties() const =0
Logs an error if the fluid properties is not valid.
const InputParameters & parameters() const
virtual const std::vector< SubdomainName > & getSubdomainNames() const
Gets the subdomain names for this component.
static MooseEnum getSlopeReconstructionMooseEnum(const std::string &name="")
Gets a MooseEnum for slope reconstruction type.
bool hasInitialConditionsFromFile() const
Are initial conditions specified from a file.