OOFEM 3.0
Loading...
Searching...
No Matches
vtkexportmodule.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 vtkexportmodule_h
36#define vtkexportmodule_h
37
38#include "exportmodule.h"
39#include "intarray.h"
40#include "nodalrecoverymodel.h"
42#include "unknowntype.h"
43#include "valuemodetype.h"
44
46
47#define _IFT_VTKExportModule_Name "vtk"
48#define _IFT_VTKExportModule_cellvars "cellvars"
49#define _IFT_VTKExportModule_vars "vars"
50#define _IFT_VTKExportModule_primvars "primvars"
51#define _IFT_VTKExportModule_stype "stype"
52#define _IFT_VTKExportModule_regionstoskip "regionstoskip"
54
55namespace oofem {
56class DofManager;
57
65{
66protected:
73
79
82
84 NodalRecoveryModel :: NodalRecoveryModelType stype;
86 std::unique_ptr<NodalRecoveryModel> smoother;
89
90public:
94 virtual ~VTKExportModule();
95
96 void initializeFrom(InputRecord &ir) override;
97
98 void doOutput(TimeStep *tStep, bool forcedOutput = false) override;
99 void initialize() override;
100 void terminate() override;
101 const char *giveClassName() const override { return "VTKExportModule"; }
102 const char *giveInputRecordName() const { return _IFT_VTKExportModule_Name; }
103
104protected:
106 NodalRecoveryModel *giveSmoother();
107
109 FILE *giveOutputStream(TimeStep *tStep);
114 int giveCellType(Element *tStep);
118 int giveNumberOfElementCells(Element *);
122 int giveNumberOfNodesPerCell(int cellType);
126 void giveElementCell(IntArray &answer, Element *elem, int cell);
130 void exportIntVars(FILE *stream, TimeStep *tStep);
134 void exportPrimaryVars(FILE *stream, TimeStep *tStep);
138 void exportIntVarAs(InternalStateType valID, InternalStateValueType type, FILE *stream, TimeStep *tStep);
142 void exportPrimVarAs(UnknownType valID, FILE *stream, TimeStep *tStep);
146 void exportCellVars(FILE *stream, int elemToProcess, TimeStep *tStep);
147
156 int initRegionNodeNumbering(IntArray &regionNodalNumbers, int &regionDofMans,
157 int offset, Domain *domain, int reg, int mode);
162 int giveTotalRBRNumberOfNodes(Domain *d);
168 void getDofManPrimaryVariable(FloatArray &answer, DofManager *dman, IntArray &dofIDMask,
169 ValueModeType mode, TimeStep *tStep, InternalStateType iType);
170};
171} // end namespace oofem
172#endif // vtkexportmodule_h
ExportModule(int n, EngngModel *e)
Constructor. Creates empty Output Manager with number n.
NodalRecoveryModel::NodalRecoveryModelType stype
Smoother type.
VTKExportModule(int n, EngngModel *e)
Constructor. Creates empty Output Manager with number n. By default all components are selected.
void initializeFrom(InputRecord &ir) override
Initializes receiver according to object description stored in input record.
modeType
Determines how regions should be exported.
@ rbrmode
Region by region.
std::unique_ptr< NodalRecoveryModel > smoother
Smoother.
void doOutput(TimeStep *tStep, bool forcedOutput=false) override
IntArray primaryVarsToExport
List of primary unknowns to export.
IntArray internalVarsToExport
List of InternalStateType values, identifying the selected vars for export.
void terminate() override
IntArray regionsToSkip
List of regions to skip.
void initialize() override
IntArray cellVarsToExport
List of cell data to export.
const char * giveClassName() const override
Returns class name of the receiver.
const char * giveInputRecordName() const
InternalStateValueType
Determines the type of internal variable.
#define OOFEM_EXPORT
Definition oofemcfg.h:7
#define _IFT_VTKExportModule_Name

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