www.mooseframework.org
MiscApp.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 #include "MiscApp.h"
8 #include "Moose.h"
9 #include "AppFactory.h"
10 #include "MooseSyntax.h"
11 
12 #include "CoefDiffusion.h"
13 #include "Density.h"
14 #include "InternalVolume.h"
15 #include "CoefTimeDerivative.h"
16 #include "RigidBodyModes3D.h"
18 #include "ThermoDiffusion.h"
19 
20 template <>
21 InputParameters
23 {
24  InputParameters params = validParams<MooseApp>();
25  return params;
26 }
27 
28 MiscApp::MiscApp(const InputParameters & parameters) : MooseApp(parameters)
29 {
30  Moose::registerObjects(_factory);
31  MiscApp::registerObjects(_factory);
32 
33  Moose::associateSyntax(_syntax, _action_factory);
34  MiscApp::associateSyntax(_syntax, _action_factory);
35 }
36 
38 
39 // External entry point for dynamic application loading
40 extern "C" void
42 {
44 }
45 void
47 {
48  registerApp(MiscApp);
49 }
50 
51 // External entry point for dynamic object registration
52 extern "C" void
53 MiscApp__registerObjects(Factory & factory)
54 {
55  MiscApp::registerObjects(factory);
56 }
57 void
58 MiscApp::registerObjects(Factory & factory)
59 {
61 
62  registerKernel(CoefDiffusion);
63  registerKernel(CoefTimeDerivative);
64  registerKernel(ThermoDiffusion);
65 
66  registerMaterial(Density);
67 
68  registerUserObject(RigidBodyModes3D);
69 
70  registerPostprocessor(InternalVolume);
71 }
72 
73 // External entry point for dynamic syntax association
74 extern "C" void
75 MiscApp__associateSyntax(Syntax & syntax, ActionFactory & action_factory)
76 {
77  MiscApp::associateSyntax(syntax, action_factory);
78 }
79 void
80 MiscApp::associateSyntax(Syntax & /*syntax*/, ActionFactory & /*action_factory*/)
81 {
82 }
Compute density, which may changed based on a deforming mesh.
Definition: Density.h:15
void MiscApp__registerApps()
Definition: MiscApp.C:41
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: MiscApp.C:80
void MiscApp__associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: MiscApp.C:75
static void registerApps()
Definition: MiscApp.C:46
Models thermo-diffusion (aka Soret effect, thermophoresis, etc.).
This class computes the volume of an interior space.
void MiscApp__registerObjects(Factory &factory)
Definition: MiscApp.C:53
Couples to some other value and modulates it by the mesh height in a direction.
MiscApp(const InputParameters &parameters)
Definition: MiscApp.C:28
virtual ~MiscApp()
Definition: MiscApp.C:37
InputParameters validParams< MiscApp >()
Definition: MiscApp.C:22
static void registerObjects(Factory &factory)
Definition: MiscApp.C:58