OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
outputmanager.h
Go to the documentation of this file.
1 /*
2  *
3  * ##### ##### ###### ###### ### ###
4  * ## ## ## ## ## ## ## ### ##
5  * ## ## ## ## #### #### ## # ##
6  * ## ## ## ## ## ## ## ##
7  * ## ## ## ## ## ## ## ##
8  * ##### ##### ## ###### ## ##
9  *
10  *
11  * OOFEM : Object Oriented Finite Element Code
12  *
13  * Copyright (C) 1993 - 2013 Borek Patzak
14  *
15  *
16  *
17  * Czech Technical University, Faculty of Civil Engineering,
18  * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19  *
20  * This library is free software; you can redistribute it and/or
21  * modify it under the terms of the GNU Lesser General Public
22  * License as published by the Free Software Foundation; either
23  * version 2.1 of the License, or (at your option) any later version.
24  *
25  * This program is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28  * Lesser General Public License for more details.
29  *
30  * You should have received a copy of the GNU Lesser General Public
31  * License along with this library; if not, write to the Free Software
32  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33  */
34 
35 #ifndef outputmanager_h
36 #define outputmanager_h
37 
38 #include "oofemcfg.h"
39 #include "intarray.h"
40 #include "range.h"
41 #include "inputrecord.h"
42 
43 #include <list>
44 
46 
47 #define _IFT_OutputManager_Name "outputmanager"
48 #define _IFT_OutputManager_tstepall "tstep_all"
49 #define _IFT_OutputManager_tstepstep "tstep_step"
50 #define _IFT_OutputManager_dofmanall "dofman_all"
51 #define _IFT_OutputManager_elementall "element_all"
52 #define _IFT_OutputManager_tstepsout "tsteps_out"
53 #define _IFT_OutputManager_dofmanoutput "dofman_output"
54 #define _IFT_OutputManager_dofmanexcept "dofman_except"
55 #define _IFT_OutputManager_elementoutput "element_output"
56 #define _IFT_OutputManager_elementexcept "element_except"
57 
58 
59 namespace oofem {
60 class Domain;
61 class TimeStep;
62 
81 class OOFEM_EXPORT OutputManager
82 {
83 protected:
91  std :: list< Range >tsteps_out;
92 
96  std :: list< Range >dofman_out;
98  std :: list< Range >dofman_except;
99 
103  std :: list< Range >element_out;
105  std :: list< Range >element_except;
106 
107 public:
108 
110  OutputManager(Domain * d);
112  IRResultType initializeFrom(InputRecord *ir);
113 
118  void doDofManOutput(FILE *, TimeStep *);
123  void doElementOutput(FILE *, TimeStep *);
124 
129  int testDofManOutput(int, TimeStep *);
134  int testElementOutput(int, TimeStep *);
140  int _testDofManOutput(int number);
146  int _testElementOutput(int number);
151  int testTimeStepOutput(TimeStep *);
153  const char *giveClassName() const { return "OutputManager"; }
154 
159  void beCopyOf(OutputManager *om);
160 };
161 } // end namespace oofem
162 #endif // outputmanager_h
int element_all_out_flag
Indicates all elements are selected.
Domain * domain
Domain pointer.
Definition: outputmanager.h:85
Class and object Domain.
Definition: domain.h:115
int dofman_all_out_flag
Indicates all dofmanagers are selected.
Definition: outputmanager.h:94
std::list< Range > element_except
List of element numbers or their ranges being excluded.
Represents output manager.
Definition: outputmanager.h:81
int tstep_step_out
User timeStep Output step. Indicates every tstep_step_out-th step selected.
Definition: outputmanager.h:89
std::list< Range > dofman_out
List of dofmanager numbers or their ranges being selected.
Definition: outputmanager.h:96
std::list< Range > dofman_except
List of dofmanager numbers or their ranges being excluded.
Definition: outputmanager.h:98
std::list< Range > element_out
List of element numbers or their ranges being selected.
const char * giveClassName() const
prints simple error message and exits
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
int tstep_all_out_flag
Indicates all steps selection.
Definition: outputmanager.h:87
std::list< Range > tsteps_out
List of user selected step numbers.
Definition: outputmanager.h:91
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing solution step.
Definition: timestep.h:80

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:30 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011