OOFEM 3.0
Loading...
Searching...
No Matches
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 - 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 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"
54
55namespace oofem {
56class MaterialMappingAlgorithm;
57
63{
64protected:
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
86public:
90 virtual ~POIExportModule();
91
92 void initializeFrom(InputRecord &ir) override;
93
94 void doOutput(TimeStep *tStep, bool forcedOutput = false) override;
95 void initialize() override;
96 void terminate() override;
97 const char *giveClassName() const override { return "POIExportModule"; }
98 const char *giveInputRecordName() const { return _IFT_POIExportModule_Name; }
99
100protected:
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
ExportModule(int n, EngngModel *e)
Constructor. Creates empty Output Manager with number n.
void exportIntVars(FILE *stream, TimeStep *tStep)
MaterialMappingAlgorithm * giveMapper()
void initialize() override
void exportPrimVarAs(UnknownType valID, FILE *stream, TimeStep *tStep)
void exportIntVarAs(InternalStateType valID, FILE *stream, TimeStep *tStep)
std ::unique_ptr< MaterialMappingAlgorithm > mapper
Mapper.
enum oofem::POIExportModule::POIEM_MapperType mtype
void exportPrimaryVars(FILE *stream, TimeStep *tStep)
const char * giveClassName() const override
Returns class name of the receiver.
IntArray primaryVarsToExport
List of primary unknowns to export.
void terminate() override
void initializeFrom(InputRecord &ir) override
Initializes receiver according to object description stored in input record.
virtual ~POIExportModule()
Destructor.
POIEM_MapperType
Smoother type.
IntArray internalVarsToExport
List of InternalStateType values, identifying the selected vars for export.
const char * giveInputRecordName() const
void readPOIFile(const std ::string &poiFileName)
std ::list< POI_dataType > POIList
List of POIs.
POIExportModule(int n, EngngModel *e)
Constructor. Creates empty Output Manager. By default all components are selected.
FILE * giveOutputStream(TimeStep *tStep)
Returns the output stream for given solution step.
void doOutput(TimeStep *tStep, bool forcedOutput=false) override
#define _IFT_POIExportModule_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