https://mooseframework.inl.gov
SubChannelApp.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 
10 #include "SubChannelApp.h"
11 #include "Moose.h"
12 #include "AppFactory.h"
13 #include "FluidPropertiesApp.h"
14 #include "HeatTransferApp.h"
15 #include "ReactorApp.h"
16 #include "MooseSyntax.h"
17 #include "SubChannelSyntax.h"
18 
19 const std::string SubChannelApp::MASS_FLOW_RATE = "mdot";
20 const std::string SubChannelApp::SURFACE_AREA = "S";
21 const std::string SubChannelApp::SUM_CROSSFLOW = "SumWij";
22 const std::string SubChannelApp::PRESSURE = "P";
23 const std::string SubChannelApp::PRESSURE_DROP = "DP";
24 const std::string SubChannelApp::ENTHALPY = "h";
25 const std::string SubChannelApp::TEMPERATURE = "T";
26 const std::string SubChannelApp::PIN_TEMPERATURE = "Tpin";
27 const std::string SubChannelApp::PIN_DIAMETER = "Dpin";
28 const std::string SubChannelApp::DENSITY = "rho";
29 const std::string SubChannelApp::VISCOSITY = "mu";
30 const std::string SubChannelApp::WETTED_PERIMETER = "w_perim";
31 const std::string SubChannelApp::LINEAR_HEAT_RATE = "q_prime";
32 const std::string SubChannelApp::DUCT_LINEAR_HEAT_RATE = "q_prime_duct";
33 const std::string SubChannelApp::DUCT_TEMPERATURE = "Tduct";
34 const std::string SubChannelApp::DISPLACEMENT = "displacement";
35 
38 {
40  params.set<bool>("use_legacy_initial_residual_evaluation_behavior") = false;
41  params.set<bool>("use_legacy_material_output") = false;
42 
43  return params;
44 }
45 
46 SubChannelApp::SubChannelApp(const InputParameters & parameters) : MooseApp(parameters)
47 {
49 }
50 
51 void
53 {
54  Registry::registerObjectsTo(f, {"SubChannelApp"});
55  Registry::registerActionsTo(af, {"SubChannelApp"});
56 
57  /* register custom execute flags, action syntax, etc. here */
59 
62  ReactorApp::registerAll(f, af, s);
63 }
64 
65 void
67 {
68  registerApp(SubChannelApp);
69 
73 }
74 
75 /***************************************************************************************************
76  *********************** Dynamic Library Entry Points - DO NOT MODIFY ******************************
77  **************************************************************************************************/
78 extern "C" void
80 {
82 }
83 extern "C" void
85 {
87 }
static const std::string PRESSURE_DROP
pressure drop
Definition: SubChannelApp.h:37
static void registerApps()
static const std::string MASS_FLOW_RATE
mass flow rate
Definition: SubChannelApp.h:29
static const std::string DENSITY
density
Definition: SubChannelApp.h:47
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: SubChannelApp.C:52
Application used when running the subchannel module directly.
Definition: SubChannelApp.h:17
static void registerApps()
static InputParameters validParams()
Definition: SubChannelApp.C:37
T & set(const std::string &name, bool quiet_mode=false)
static const std::string PIN_DIAMETER
pin diameter
Definition: SubChannelApp.h:45
static const std::string DUCT_LINEAR_HEAT_RATE
duct linear heat rate
Definition: SubChannelApp.h:55
void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void registerObjectsTo(Factory &f, const std::set< std::string > &labels)
Syntax _syntax
static InputParameters validParams()
static const std::string DUCT_TEMPERATURE
duct temperature
Definition: SubChannelApp.h:57
void SubChannelApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: SubChannelApp.C:79
static const std::string WETTED_PERIMETER
wetted perimeter
Definition: SubChannelApp.h:51
static const std::string VISCOSITY
viscosity
Definition: SubChannelApp.h:49
static const std::string PIN_TEMPERATURE
pin temperature
Definition: SubChannelApp.h:43
static void registerActionsTo(ActionFactory &f, const std::set< std::string > &labels)
static const std::string LINEAR_HEAT_RATE
linear heat rate
Definition: SubChannelApp.h:53
Real f(Real x)
Test function for Brents method.
static const std::string ENTHALPY
enthalpy
Definition: SubChannelApp.h:39
ActionFactory _action_factory
void SubChannelApp__registerApps()
Definition: SubChannelApp.C:84
static const std::string SUM_CROSSFLOW
sum of diversion crossflow
Definition: SubChannelApp.h:33
static const std::string PRESSURE
pressure
Definition: SubChannelApp.h:35
static const std::string SURFACE_AREA
surface area
Definition: SubChannelApp.h:31
static void registerApps()
Definition: ReactorApp.C:42
SubChannelApp(const InputParameters &parameters)
Definition: SubChannelApp.C:46
Factory _factory
static void registerApps()
Definition: SubChannelApp.C:66
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
static const std::string DISPLACEMENT
subchannel displacement
Definition: SubChannelApp.h:59
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: ReactorApp.C:32
static const std::string TEMPERATURE
temperature
Definition: SubChannelApp.h:41
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)