https://mooseframework.inl.gov
Loading...
Searching...
No Matches
InletStagnationEnthalpyMomentum1Phase.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
12
14
17{
19 params.addRequiredParam<Real>("rhou", "Prescribed momentum density [kg/(m^2-s)]");
20 params.addRequiredParam<Real>("H", "Prescribed specific total enthalpy [J/kg]");
21 params.addParam<bool>("reversible", false, "True for reversible, false (default) for pure inlet");
22 params.addClassDescription("Boundary condition with prescribed stagnation enthalpy and momentum "
23 "for 1-phase flow channels.");
24 return params;
25}
26
28 const InputParameters & params)
29 : FlowBoundary1Phase(params), _reversible(getParam<bool>("reversible"))
30{
31}
32
33void
35{
37
38 logError("This component does not work with rDG, yet.");
39}
40
41void
registerMooseObject("ThermalHydraulicsApp", InletStagnationEnthalpyMomentum1Phase)
void logError(Args &&... args) const
Logs an error.
Definition Component.h:226
Base class for boundary components connected to FlowChannel1Phase components.
virtual void check() const override
Check the component integrity.
static InputParameters validParams()
Boundary condition with prescribed stagnation enthalpy and momentum for 1-phase flow channels.
InletStagnationEnthalpyMomentum1Phase(const InputParameters &params)
virtual void check() const override
Check the component integrity.
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)