OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
poiexportmodule.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 poiexportmodule_h
36 #define poiexportmodule_h
37 
38 #include "exportmodule.h"
39 #include "intarray.h"
40 #include "internalstatetype.h"
41 #include "unknowntype.h"
42 
43 #include <list>
44 #include <memory>
45 
47 
48 #define _IFT_POIExportModule_Name "poi"
49 #define _IFT_POIExportModule_vars "vars"
50 #define _IFT_POIExportModule_primvars "primvars"
51 #define _IFT_POIExportModule_mtype "mtype"
52 #define _IFT_POIExportModule_poifilename "poifilename"
53 
54 
55 namespace oofem {
56 class MaterialMappingAlgorithm;
57 
63 {
64 protected:
66  struct POI_dataType {
67  int id;
68  double x, y, z;
69  // bp: region is now the set number (which is more flexible)
70  int region;
71  };
72 
78  std :: list< POI_dataType >POIList;
79 
83  std :: unique_ptr< MaterialMappingAlgorithm > mapper;
84  //
85 
86 public:
88  POIExportModule(int n, EngngModel * e);
90  virtual ~POIExportModule();
91 
93 
94  virtual void doOutput(TimeStep *tStep, bool forcedOutput = false);
95  virtual void initialize();
96  virtual void terminate();
97  virtual const char *giveInputRecordName() const { return _IFT_POIExportModule_Name; }
98  virtual const char *giveClassName() const { return "POIExportModule"; }
99 
100 protected:
101  void readPOIFile(const std :: string &poiFileName);
103  FILE *giveOutputStream(TimeStep *tStep);
107  void exportIntVars(FILE *stream, TimeStep *tStep);
111  void exportPrimaryVars(FILE *stream, TimeStep *tStep);
113  void exportIntVarAs(InternalStateType valID, FILE *stream, TimeStep *tStep);
115  void exportPrimVarAs(UnknownType valID, FILE *stream, TimeStep *tStep);
117 };
118 } // end namespace oofem
119 #endif // poiexportmodule_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
POIEM_MapperType
Smoother type.
virtual const char * giveClassName() const
Returns class name of the receiver.
void exportPrimVarAs(UnknownType valID, FILE *stream, TimeStep *tStep)
Exports single variable.
void exportPrimaryVars(FILE *stream, TimeStep *tStep)
Export primary variables.
The class representing the general material model mapping algorithm.
Represents export output module - a base class for all output modules.
Definition: exportmodule.h:71
Class implementing an array of integers.
Definition: intarray.h:61
virtual void terminate()
Terminates the receiver.
void exportIntVarAs(InternalStateType valID, FILE *stream, TimeStep *tStep)
Exports single variable.
enum oofem::POIExportModule::POIEM_MapperType mtype
virtual void initialize()
virtual ~POIExportModule()
Destructor.
UnknownType
Type representing particular unknown (its physical meaning).
Definition: unknowntype.h:55
std::unique_ptr< MaterialMappingAlgorithm > mapper
Mapper.
Represents POI (Point Of Interest) export module.
#define _IFT_POIExportModule_Name
FILE * giveOutputStream(TimeStep *tStep)
Returns the output stream for given solution step.
std::list< POI_dataType > POIList
List of POIs.
void exportIntVars(FILE *stream, TimeStep *tStep)
Export internal variables.
virtual void doOutput(TimeStep *tStep, bool forcedOutput=false)
Writes the output.
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
MaterialMappingAlgorithm * giveMapper()
void readPOIFile(const std::string &poiFileName)
IntArray internalVarsToExport
List of InternalStateType values, identifying the selected vars for export.
IntArray primaryVarsToExport
List of primary unknowns to export.
Abstract base class representing the "problem" under consideration.
Definition: engngm.h:181
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
virtual const char * giveInputRecordName() const
POIExportModule(int n, EngngModel *e)
Constructor. Creates empty Output Manager. By default all components are selected.

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