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]");
24 params.
addParam<
bool>(
"enable_heat_conduction",
false,
"Enable heat conduction?");
26 "rdg_slope_reconstruction",
28 "Slope reconstruction type for rDG spatial discretization");
30 params.
addParam<Real>(
"p_ref", 101.325e3,
"Reference pressure [Pa]");
31 params.
addParam<Real>(
"T_ref", 273.15,
"Reference temperature [K]");
32 params.
addParam<Real>(
"vel_ref", 1.0,
"Reference velocity [m/s]");
44 _numerical_flux_name(genName(
name(),
"numerical_flux")),
45 _rdg_slope_reconstruction(getParam<
MooseEnum>(
"rdg_slope_reconstruction"))
55std::shared_ptr<FlowModel>
81 "' is not compatible with single phase flow channel. Use single phase heat transfer "
82 "component instead.");
93 std::ostringstream oss;
96 oss <<
" " << ic_param;
98 logError(
"The following initial condition parameters are missing:", oss.str());
114 const std::string mat_name =
genName(
name(),
"D_h_material");
118 const FunctionName & D_h_fn_name = getParam<FunctionName>(
"D_h");
120 const std::string class_name =
"ADGenericFunctionMaterial";
124 params.
set<std::vector<FunctionName>>(
"prop_values") = {D_h_fn_name};
129 const std::string class_name =
"ADHydraulicDiameterCircularMaterial";
133 params.
set<std::vector<VariableName>>(
"A") = {
THM::AREA};
virtual const std::vector< SubdomainName > & getSubdomainNames() const
Gets the subdomain names for this component.
void logError(Args &&... args) const
Logs an error.
THMProblem & getTHMProblem() const
Gets the THM problem.
Factory & _factory
The Factory associated with the MooseApp.
virtual void addMaterial(const std::string &material_name, const std::string &name, InputParameters ¶meters)
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)
InputParameters getValidParams(const std::string &name) const
virtual void init() override
Initializes the component.
virtual void addMooseObjects() override
virtual std::vector< std::string > ICParameters() const =0
Returns the names of the IC parameters.
virtual void checkFluidProperties() const =0
Logs an error if the fluid properties is not valid.
const UserObjectName _numerical_flux_name
Numerical flux user object name.
virtual std::string flowModelClassName() const =0
Returns the flow model class name.
virtual std::shared_ptr< FlowModel > buildFlowModel() override
virtual void addHydraulicDiameterMaterial()
Adds a material for the hydraulic diameter.
virtual void getHeatTransferVariableNames() override
Populates heat connection variable names lists.
virtual void check() const override
Check the component integrity.
static InputParameters validParams()
FlowChannel1PhaseBase(const InputParameters ¶ms)
std::vector< MaterialPropertyName > _Hw_1phase_names
1-phase wall heat transfer coefficient names for connected heat transfers
A base class for flow channels.
virtual void check() const override
Check the component integrity.
virtual void init() override
Initializes the component.
const bool & _pipe_pars_transferred
unsigned int _n_heat_transfer_connections
Number of connected heat transfer components.
static InputParameters validParams()
std::vector< std::string > _heat_transfer_names
Names of the heat transfer components connected to this component.
virtual void addMooseObjects() override
virtual void getHeatTransferVariableNames()
Populates heat connection variable names lists.
Provides functions to setup the flow model.
Base class for heat transfer connections to 1-phase flow channels.
const MaterialPropertyName & getWallHeatTransferCoefficient1PhaseName() const
Returns 1-phase wall heat transfer coefficient name.
bool isRestarting() const
const InputParameters & parameters() const
bool isParamValid(const std::string &name) const
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.
bool hasInitialConditionsFromFile() const
Are initial conditions specified from a file.
bool getVectorValuedVelocity()
Is velocity output as vector-valued field.
static MooseEnum getSlopeReconstructionMooseEnum(const std::string &name="")
Gets a MooseEnum for slope reconstruction type.
Specialization of FEProblem to run with component subsystem.
static const std::string AREA
static const std::string HYDRAULIC_DIAMETER