www.mooseframework.org
FluidPropertiesApp.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "FluidPropertiesApp.h"
9 #include "Moose.h"
10 #include "AppFactory.h"
11 #include "MooseSyntax.h"
12 
16 
20 #include "MethaneFluidProperties.h"
21 #include "Water97FluidProperties.h"
22 #include "CO2FluidProperties.h"
23 #include "NaClFluidProperties.h"
24 #include "BrineFluidProperties.h"
25 #include "SimpleFluidProperties.h"
27 #include "SodiumProperties.h"
28 
29 #include "SpecificEnthalpyAux.h"
30 #include "StagnationPressureAux.h"
32 
34 
35 template <>
36 InputParameters
38 {
39  InputParameters params = validParams<MooseApp>();
40  return params;
41 }
42 
43 FluidPropertiesApp::FluidPropertiesApp(InputParameters parameters) : MooseApp(parameters)
44 {
45  Moose::registerObjects(_factory);
47 
48  Moose::associateSyntax(_syntax, _action_factory);
49  FluidPropertiesApp::associateSyntax(_syntax, _action_factory);
50 }
51 
53 
54 // External entry point for dynamic application loading
55 extern "C" void
57 {
59 }
60 
61 void
63 {
64  registerApp(FluidPropertiesApp);
65 }
66 
67 // External entry point for dynamic object registration
68 extern "C" void
70 {
72 }
73 
74 void
76 {
77  registerMaterial(FluidPropertiesMaterial);
78  registerMaterial(FluidPropertiesMaterialPT);
80 
81  registerUserObject(IdealGasFluidProperties);
82  registerUserObject(IdealGasFluidPropertiesPT);
83  registerUserObject(StiffenedGasFluidProperties);
84  registerUserObject(MethaneFluidProperties);
85  registerUserObject(Water97FluidProperties);
86  registerUserObject(CO2FluidProperties);
87  registerUserObject(NaClFluidProperties);
88  registerUserObject(BrineFluidProperties);
89  registerUserObject(SimpleFluidProperties);
90  registerUserObject(TabulatedFluidProperties);
91  registerUserObject(SodiumProperties);
92  registerAuxKernel(SpecificEnthalpyAux);
93  registerAuxKernel(StagnationPressureAux);
94  registerAuxKernel(StagnationTemperatureAux);
95 }
96 
97 // External entry point for dynamic syntax association
98 extern "C" void
99 FluidPropertiesApp__associateSyntax(Syntax & syntax, ActionFactory & action_factory)
100 {
101  FluidPropertiesApp::associateSyntax(syntax, action_factory);
102 }
103 
104 void
105 FluidPropertiesApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory)
106 {
107  registerSyntaxTask(
108  "AddFluidPropertiesAction", "Modules/FluidProperties/*", "add_fluid_properties");
109 
110  registerMooseObjectTask("add_fluid_properties", FluidProperties, false);
111 
112  syntax.addDependency("add_fluid_properties", "init_displaced_problem");
113 
114  registerAction(AddFluidPropertiesAction, "add_fluid_properties");
115 }
static void registerApps()
Class for fluid properties read from a file.
Computes specific enthalpy from pressure and temperature.
FluidPropertiesApp(InputParameters parameters)
CO2 fluid properties Most thermophysical properties taken from: Span and Wagner, "A New Equation of S...
Computes fluid properties using (u, v) formulation.
Material for calculating fluid properties for a fluid comprised of two components: the solute (eg...
Brine (NaCl in H2O) fluid properties as a function of pressure (Pa), temperature (K) and NaCl mass fr...
Fluid properties of a simple, idealised fluid density=density0 * exp(P / bulk_modulus - thermal_expan...
Compute stagnation pressure from specific volume, specific internal energy, and velocity.
Ideal gas fluid properties for (pressure, temperature) variables.
void FluidPropertiesApp__registerApps()
static void registerObjects(Factory &factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Methane (CH4) fluid properties as a function of pressure (Pa) and temperature (K).
Stiffened gas fluid properties.
Properties of liquid sodium from ANL/RE-95/2 report "Thermodynamic and Transport Properties of Sodium...
Computes fluid properties using (pressure, temperature) formulation.
void FluidPropertiesApp__registerObjects(Factory &factory)
Water (H2O) fluid properties as a function of pressure (Pa) and temperature (K) from IAPWS-IF97: Revi...
NaCl fluid properties as a function of pressure (Pa) and temperature (K).
Ideal gas fluid properties.
void FluidPropertiesApp__associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Compute stagnation temperature from specific volume, specific internal energy, and velocity...
InputParameters validParams< FluidPropertiesApp >()