OOFEM 3.0
Loading...
Searching...
No Matches
gnuplotexportmodule.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 GNUPLOTEXPORTMODULE_H_
36#define GNUPLOTEXPORTMODULE_H_
37
38#include "exportmodule.h"
39#include "floatarray.h"
40
41#include <unordered_map>
42#include <memory>
43
45
46#define _IFT_GnuplotExportModule_Name "gnuplot"
47// Sum of reaction forces for each Dirichlet BC
48#define _IFT_GnuplotExportModule_ReactionForces "reactionforces"
49// Special output from boundary conditions
50#define _IFT_GnuplotExportModule_BoundaryConditions "boundaryconditions"
51#define _IFT_GnuplotExportModule_BoundaryConditionsExtra "boundaryconditionsextra"
52// Mesh
53#define _IFT_GnuplotExportModule_mesh "mesh"
54// XFEM stuff
55#define _IFT_GnuplotExportModule_xfem "xfem"
56// Node for monitoring displacement
57#define _IFT_GnuplotExportModule_monitornode "monitornode"
58// Radii for material force evaluation
59#define _IFT_GnuplotExportModule_materialforceradii "matforceradii"
60// Export length of cracks
61#define _IFT_GnuplotExportModule_cracklength "cracklength"
62// Special output for interface elements
63#define _IFT_GnuplotExportModule_interface_el "interfaceel"
65
66namespace oofem {
67class EnrichmentItem;
68class Crack;
69class PrescribedGradient;
70class PrescribedGradientBCNeumann;
71class PrescribedGradientBCWeak;
72class PrescribedGradientBC;
73class Domain;
74class DofManager;
75class MaterialForceEvaluator;
76
77
87{
88public:
90 virtual ~GnuplotExportModule();
91
92 void initializeFrom(InputRecord &ir) override;
93 void doOutput(TimeStep *tStep, bool forcedOutput = false) override;
94 void initialize() override;
95 void terminate() override;
96
97 const char *giveClassName() const override { return "GnuplotExportModule"; }
98 const char *giveInputRecordName() const { return _IFT_GnuplotExportModule_Name; }
99
103 void outputXFEM(EnrichmentItem &iEI, TimeStep *tStep);
104 void outputXFEM(Crack &iCrack, TimeStep *tStep);
105
106 void outputXFEMGeometry(const std::vector< std::vector<FloatArray> > &iEnrItemPoints);
107
111 void outputBoundaryCondition(PrescribedGradient &iBC, TimeStep *tStep);
112 void outputBoundaryCondition(PrescribedGradientBCNeumann &iBC, TimeStep *tStep);
113 void outputBoundaryCondition(PrescribedGradientBCWeak &iBC, TimeStep *tStep);
114
115
119 void outputGradient(int bc, Domain &d, FloatArray &grad, TimeStep *tStep);
120
124 void outputMesh(Domain &iDomain);
125
129 void outputNodeDisp(DofManager &iDMan, TimeStep *tStep);
130
134 void outputInterfaceEl(Domain &d, TimeStep *tStep);
135
136 static void WritePointsToGnuplot(const std :: string &iName, const std :: vector< std::vector<FloatArray> > &iPoints);
137
138protected:
146
148 std::vector<FloatArray> mMonitorNodeDispHist;
149
153 std::vector< std::vector<FloatArray> > mReactionForceHistory;
154 std::vector< std::vector<double> > mDispHist;
155
156 void outputReactionForces(TimeStep *tStep);
157
161 std :: unique_ptr< MaterialForceEvaluator > mpMatForceEvaluator;
163
167 std::unordered_map< int, std::vector<double> > mCrackLengthHist;
168 std::vector<double> mTimeHist;
169};
170} // end namespace oofem
171#endif /* GNUPLOTEXPORTMODULE_H_ */
ExportModule(int n, EngngModel *e)
Constructor. Creates empty Output Manager with number n.
std::unordered_map< int, std::vector< double > > mCrackLengthHist
std::vector< FloatArray > mMonitorNodeDispHist
GnuplotExportModule(int n, EngngModel *e)
const char * giveClassName() const override
Returns class name of the receiver.
const char * giveInputRecordName() const
std::vector< std::vector< double > > mDispHist
std::vector< double > mTimeHist
std::vector< std::vector< FloatArray > > mReactionForceHistory
void outputReactionForces(TimeStep *tStep)
void doOutput(TimeStep *tStep, bool forcedOutput=false) override
void initializeFrom(InputRecord &ir) override
Initializes receiver according to object description stored in input record.
std ::unique_ptr< MaterialForceEvaluator > mpMatForceEvaluator
#define _IFT_GnuplotExportModule_Name
#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