https://mooseframework.inl.gov
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 
11 #include "FlowModelSinglePhase.h"
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 
33 void
35 {
37 
38  logError("This component does not work with rDG, yet.");
39 }
40 
41 void
43 {
44 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
virtual void check() const override
Check the component integrity.
registerMooseObject("ThermalHydraulicsApp", InletStagnationEnthalpyMomentum1Phase)
void addRequiredParam(const std::string &name, const std::string &doc_string)
InletStagnationEnthalpyMomentum1Phase(const InputParameters &params)
void logError(Args &&... args) const
Logs an error.
Definition: Component.h:215
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void check() const override
Check the component integrity.
void addClassDescription(const std::string &doc_string)
Boundary condition with prescribed stagnation enthalpy and momentum for 1-phase flow channels...
Base class for boundary components connected to FlowChannel1Phase components.