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"))
55 std::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 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
const InputParameters & parameters() const
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.
std::vector< MaterialPropertyName > _Hw_1phase_names
1-phase wall heat transfer coefficient names for connected heat transfers
FlowChannel1PhaseBase(const InputParameters ¶ms)
bool isRestarting() const
void logError(Args &&... args) const
Logs an error.
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.
const std::string & name() const
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.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
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.
bool isParamValid(const std::string &name) 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.