www.mooseframework.org
NavierStokesTestApp.C
Go to the documentation of this file.
1 #include "NavierStokesTestApp.h"
2 #include "NavierStokesApp.h"
3 #include "Moose.h"
4 #include "AppFactory.h"
5 #include "MooseSyntax.h"
6 
7 // Scalar advection equation stabilized by SUPG.
8 #include "Advection.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<NavierStokesApp>();
15  return params;
16 }
17 
18 NavierStokesTestApp::NavierStokesTestApp(InputParameters parameters) : MooseApp(parameters)
19 {
20  Moose::registerObjects(_factory);
23 
24  Moose::associateSyntax(_syntax, _action_factory);
25  NavierStokesApp::associateSyntaxDepends(_syntax, _action_factory);
26  NavierStokesApp::associateSyntax(_syntax, _action_factory);
27 
28  bool use_test_objs = getParam<bool>("allow_test_objects");
29  if (use_test_objs)
30  {
32  NavierStokesTestApp::associateSyntax(_syntax, _action_factory);
33  }
34 }
35 
37 
38 // External entry point for dynamic application loading
39 extern "C" void
41 {
43 }
44 void
46 {
47  registerApp(NavierStokesApp);
48  registerApp(NavierStokesTestApp);
49 }
50 
51 // External entry point for dynamic object registration
52 extern "C" void
54 {
56 }
57 void
59 {
60  // Scalar advection equation stabilized by SUPG.
61  registerKernel(Advection);
62 }
63 
64 // External entry point for dynamic syntax association
65 extern "C" void
66 NavierStokesTestApp__associateSyntax(Syntax & syntax, ActionFactory & action_factory)
67 {
68  NavierStokesTestApp::associateSyntax(syntax, action_factory);
69 }
70 void
71 NavierStokesTestApp::associateSyntax(Syntax & /*syntax*/, ActionFactory & /*action_factory*/)
72 {
73 }
static void registerObjects(Factory &factory)
static void registerApps()
This class is responsible for solving the scalar advection equation, possibly with a forcing function...
Definition: Advection.h:22
static void registerObjectDepends(Factory &factory)
static void registerObjects(Factory &factory)
NavierStokesTestApp(InputParameters parameters)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
static void associateSyntaxDepends(Syntax &syntax, ActionFactory &action_factory)
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)