/
TransientMultiApp.h
57 lines (47 loc) · 1.72 KB
/
TransientMultiApp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC */
/* ALL RIGHTS RESERVED */
/* */
/* Prepared by Battelle Energy Alliance, LLC */
/* Under Contract No. DE-AC07-05ID14517 */
/* With the U. S. Department of Energy */
/* */
/* See COPYRIGHT for full restrictions */
/****************************************************************/
#ifndef TRANSIENTMULTIAPP_H
#define TRANSIENTMULTIAPP_H
#include "MultiApp.h"
#include "MooseApp.h"
#include "Transient.h"
#include "TransientInterface.h"
class TransientMultiApp;
template<>
InputParameters validParams<TransientMultiApp>();
/**
* MultiApp Implementation for Transient Apps.
* In particular, this is important because TransientMultiApps
* will be taken into account in the time step selection process.
*/
class TransientMultiApp :
public MultiApp,
public TransientInterface
{
public:
TransientMultiApp(const std::string & name, InputParameters parameters);
~TransientMultiApp();
/**
* Advance all of the apps one timestep.
*/
void solveStep();
/**
* Finds the smallest dt from among any of the apps.
*/
Real computeDT();
private:
std::vector<Transient *> _transient_executioners;
bool _sub_cycling;
};
#endif // TRANSIENTMULTIAPP_H