OOFEM 3.0
Loading...
Searching...
No Matches
matlabexportmodule.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 matlabexportmodule_h_
36#define matlabexportmodule_h_
37
38#include <vector>
39
40#include "exportmodule.h"
41
43
44#define _IFT_MatlabExportModule_Name "matlab"
45#define _IFT_MatlabExportModule_mesh "mesh"
46#define _IFT_MatlabExportModule_data "data"
47#define _IFT_MatlabExportModule_DataNodeSet "datanodeset" // dofmanager set from which data should be exported //JF
48#define _IFT_MatlabExportModule_area "area"
49#define _IFT_MatlabExportModule_specials "specials"
50#define _IFT_MatlabExportModule_homogenizeInternalVars "homogenizeivars"
51#define _IFT_MatlabExportModule_noScaledHomogenization "noscaling"
52// Reaction forces
53#define _IFT_MatlabExportModule_ReactionForces "reactionforces"
54#define _IFT_MatlabExportModule_DofManList "dofmanlist"
55#define _IFT_MatlabExportModule_ReactionForcesNodeSet "reactionforcesnodeset"
56// Integration points
57#define _IFT_MatlabExportModule_IntegrationPoints "integrationpoints"
58#define _IFT_MatlabExportModule_internalVarsToExport "internalvars"
59#define _IFT_MatlabExportModule_ElementList "elementlist"
60#define _IFT_MatlabExportModule_IPFieldsElSet "ipelset"
62
63namespace oofem {
72{
73protected:
79 std :: string functionname;
80
82 std :: vector< double >smax;
83 std :: vector< double >smin;
84
85 std :: vector< double > partVolume;
86 std :: vector< std :: string > partName;
87
88 double Area, Volume;
89 int ndim;
90
98
102
104
105private:
106 void computeArea(TimeStep *tStep);
107
108 // Export reaction forces
109 IntArray reactionForcesDofManList; // Holds which dof managers reaction forces should be exported from.
110 IntArray dataDofManList; // Holds which dof managers data should be exported from.
111
112public:
114 virtual ~MatlabExportModule();
115
116 void initializeFrom(InputRecord &ir) override;
117 void doOutput(TimeStep *tStep, bool forcedOutput = false) override;
118 void initialize() override;
119 void terminate() override;
120
121 void doOutputMesh(TimeStep *tStep, FILE *FID);
122 void doOutputData(TimeStep *tStep, FILE *FID);
123 void doOutputSpecials(TimeStep *tStep, FILE *FID);
124 void doOutputReactionForces(TimeStep *tStep, FILE *FID);
125 void doOutputIntegrationPointFields(TimeStep *tStep, FILE *FID);
126 void doOutputHomogenizeDofIDs(TimeStep *tStep, FILE *FID);
127
128 const char *giveClassName() const override { return "MatlabExportModule"; }
129 const char *giveInputRecordName() const { return _IFT_MatlabExportModule_Name; }
130};
131} // end namespace oofem
132#endif // matlabexportmodule_h_
ExportModule(int n, EngngModel *e)
Constructor. Creates empty Output Manager with number n.
void initializeFrom(InputRecord &ir) override
Initializes receiver according to object description stored in input record.
FILE * giveOutputStream(TimeStep *)
std ::vector< double > smin
void computeArea(TimeStep *tStep)
void doOutputMesh(TimeStep *tStep, FILE *FID)
void doOutputHomogenizeDofIDs(TimeStep *tStep, FILE *FID)
const char * giveInputRecordName() const
std ::vector< std ::string > partName
void doOutputData(TimeStep *tStep, FILE *FID)
MatlabExportModule(int n, EngngModel *e)
IntArray primaryVarsToExport
list of primary unknowns to export
void doOutput(TimeStep *tStep, bool forcedOutput=false) override
IntArray internalVarsToExport
list of InternalStateType values, identifying the selected vars for export
void doOutputSpecials(TimeStep *tStep, FILE *FID)
void doOutputReactionForces(TimeStep *tStep, FILE *FID)
std ::vector< double > smax
std ::vector< double > partVolume
void doOutputIntegrationPointFields(TimeStep *tStep, FILE *FID)
const char * giveClassName() const override
Returns class name of the receiver.
#define _IFT_MatlabExportModule_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