OOFEM 3.0
Loading...
Searching...
No Matches
exportmodule.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 - 2025 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 exportmodule_h
36#define exportmodule_h
37
38#include "oofemenv.h"
39#include "intarray.h"
40#include "inputrecord.h"
41#include "range.h"
42#include "set.h"
43
44#include <list>
45
47
48#define _IFT_ExportModule_tstepall "tstep_all"
49#define _IFT_ExportModule_tstepstep "tstep_step"
50#define _IFT_ExportModule_tstepsout "tsteps_out"
51#define _IFT_ExportModule_subtstepsout "subtsteps_out"
52#define _IFT_ExportModule_domainall "domain_all"
53#define _IFT_ExportModule_domainmask "domain_mask"
54#define _IFT_ExportModule_regionsets "regionsets"
55#define _IFT_ExportModule_timescale "timescale"
56#define _IFT_ExportModule_pythonexport "pythonexport"
58
59namespace oofem {
60class EngngModel;
61class TimeStep;
62
73{
74protected:
76 int number;
84 std :: list< Range >tsteps_out;
92
97
100
102 double timeScale;
103
106
109
111 Set *giveRegionSet(int i);
112
115
116
117public:
118
120 ExportModule(int n, EngngModel * e);
122 virtual ~ExportModule();
124 virtual void initializeFrom(InputRecord &ir);
130 virtual void doOutput(TimeStep *tStep, bool forcedOutput = false) = 0;
135 void doForcedOutput(TimeStep *tStep) { doOutput(tStep, true); }
143 bool testSubStepOutput() { return this->tstep_substeps_out_flag; }
144
145 virtual void initialize();
146
151 virtual void initializeElementSet();
152
158 virtual void terminate() { }
160 virtual const char *giveClassName() const = 0;
161
162protected:
167 std :: string giveOutputBaseFileName(TimeStep *tStep);
173 bool testTimeStepOutput(TimeStep *tStep);
178 bool testDomainOutput(int n);
179
181 std :: string errorInfo(const char *func) const;
182};
183} // end namespace oofem
184#endif // exportmodule_h
double timeScale
Scaling time in output, e.g. conversion from seconds to hours.
virtual const char * giveClassName() const =0
Returns class name of the receiver.
std ::list< Range > tsteps_out
List of user selected step numbers.
std::string giveOutputBaseFileName(TimeStep *tStep)
int number
Component number.
virtual void terminate()
virtual void initializeFrom(InputRecord &ir)
Initializes receiver according to object description stored in input record.
bool pythonExport
Output is carried out as a python list instead of writing files.
Set * giveRegionSet(int i)
Returns element set.
bool tstep_all_out_flag
Indicates all steps selection.
int tstep_step_out
User timeStep Output step. Indicates every tstep_step_out-th step selected.
IntArray regionSets
regions represented by sets
Set defaultElementSet
Default region set.
int giveNumberOfRegions()
Returns number of regions (aka regionSets).
std::string errorInfo(const char *func) const
Returns string for prepending output (used by error reporting macros).
IntArray domainMask
Domain selection mask.
bool testDomainOutput(int n)
ExportModule(int n, EngngModel *e)
Constructor. Creates empty Output Manager with number n.
EngngModel * emodel
Problem pointer.
bool testTimeStepOutput(TimeStep *tStep)
void doForcedOutput(TimeStep *tStep)
virtual void doOutput(TimeStep *tStep, bool forcedOutput=false)=0
bool domain_all_flag
Indicates all domains.
#define OOFEM_EXPORT
Definition oofemcfg.h:7

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011