OOFEM 3.0
Loading...
Searching...
No Matches
homexportmodule.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 homexportmodule_h
36#define homexportmodule_h
37
38#include "exportmodule.h"
39#include "floatarray.h"
40#include <iostream>
41#include <fstream>
42
44
45#define _IFT_HOMExportModule_Name "hom"
46#define _IFT_HOMExportModule_ISTs "ists"
47#define _IFT_HOMExportModule_reactions "reactions"
48#define _IFT_HOMExportModule_scale "scale"
49#define _IFT_HOMExportModule_strain_energy "strain_energy"
51
52using namespace std;
53namespace oofem {
63{
64protected:
66 double scale;
68 std::ofstream stream;
74 std::vector< FloatArray > lastStress;
76 std::vector< FloatArray > lastStrainStressDep;
81 // Sum of strain energy (total) and stress-dependent strain energy
83
84public:
88 virtual ~HOMExportModule();
89 void initializeFrom(InputRecord &ir) override;
90 void doOutput(TimeStep *tStep, bool forcedOutput = false) override;
91 //returns averaged property
92 void average(FloatArray &answer, double &volTot, int ist, bool subtractStressDepStrain, TimeStep *tStep);
93 void initialize() override;
94 void terminate() override;
95 const char *giveClassName() const override { return "HOMExportModule"; }
96 const char *giveInputRecordName() const { return _IFT_HOMExportModule_Name; }
97};
98} // end namespace oofem
99
100#endif
ExportModule(int n, EngngModel *e)
Constructor. Creates empty Output Manager with number n.
void terminate() override
bool reactions
Reactions to export.
HOMExportModule(int n, EngngModel *e)
Constructor. Creates empty Output Manager.
void doOutput(TimeStep *tStep, bool forcedOutput=false) override
std::vector< FloatArray > lastStress
Last averaged stress.
const char * giveInputRecordName() const
void initialize() override
IntArray ists
Internal states to export.
void average(FloatArray &answer, double &volTot, int ist, bool subtractStressDepStrain, TimeStep *tStep)
const char * giveClassName() const override
Returns class name of the receiver.
void initializeFrom(InputRecord &ir) override
Initializes receiver according to object description stored in input record.
double scale
Scale of all homogenized values.
bool strainEnergy
Allow calculation of strain energy, evaluated from mid-point rule (exact for linear elastic problems ...
IntArray elements
List of elements.
std::ofstream stream
Stream for file.
std::vector< FloatArray > lastStrainStressDep
Last averaged stress-dependent strain.
#define _IFT_HOMExportModule_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