OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::MatlabExportModule Class Reference

(Under development) The Matlab export module enables oofem to export the results to a textfile containing the description of the mesh used along with the pertinent results. More...

#include <matlabexportmodule.h>

+ Inheritance diagram for oofem::MatlabExportModule:
+ Collaboration diagram for oofem::MatlabExportModule:

Public Member Functions

 MatlabExportModule (int n, EngngModel *e)
 
virtual ~MatlabExportModule ()
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver according to object description stored in input record. More...
 
virtual void doOutput (TimeStep *tStep, bool forcedOutput=false)
 Writes the output. More...
 
virtual void initialize ()
 
virtual void terminate ()
 Terminates the receiver. More...
 
void doOutputMesh (TimeStep *tStep, FILE *FID)
 
void doOutputData (TimeStep *tStep, FILE *FID)
 
void doOutputSpecials (TimeStep *tStep, FILE *FID)
 
void doOutputReactionForces (TimeStep *tStep, FILE *FID)
 
void doOutputIntegrationPointFields (TimeStep *tStep, FILE *FID)
 
void doOutputHomogenizeDofIDs (TimeStep *tStep, FILE *FID)
 
virtual const char * giveClassName () const
 Returns class name of the receiver. More...
 
virtual const char * giveInputRecordName () const
 
- Public Member Functions inherited from oofem::ExportModule
 ExportModule (int n, EngngModel *e)
 Constructor. Creates empty Output Manager with number n. More...
 
virtual ~ExportModule ()
 Destructor. More...
 
void doForcedOutput (TimeStep *tStep)
 Writes the output. More...
 
bool testSubStepOutput ()
 Initializes receiver. More...
 
virtual void initializeElementSet ()
 Fill regionSets with all elements if regionSets is initially empty. More...
 

Protected Member Functions

FILE * giveOutputStream (TimeStep *)
 
- Protected Member Functions inherited from oofem::ExportModule
int giveNumberOfRegions ()
 Returns number of regions (aka regionSets) More...
 
SetgiveRegionSet (int i)
 Returns element set. More...
 
std::string giveOutputBaseFileName (TimeStep *tStep)
 Gives the appropriate name (minus specific file extension). More...
 
bool testTimeStepOutput (TimeStep *tStep)
 Tests if given time step output is required. More...
 
bool testDomainOutput (int n)
 Test if domain output is required. More...
 
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros). More...
 

Protected Attributes

IntArray internalVarsToExport
 list of InternalStateType values, identifying the selected vars for export More...
 
IntArray elList
 
IntArray primaryVarsToExport
 list of primary unknowns to export More...
 
std::string functionname
 
std::vector< double > smax
 
std::vector< double > smin
 
std::vector< double > partVolume
 
std::vector< std::string > partName
 
double Area
 
double Volume
 
int ndim
 
bool exportMesh
 
bool exportData
 
bool exportArea
 
bool exportSpecials
 
bool exportReactionForces
 
bool exportIntegrationPointFields
 
bool exportHomogenizeIST
 
int reactionForcesNodeSet
 
int dataNodeSet
 
int IPFieldsElSet
 
bool noscaling
 
- Protected Attributes inherited from oofem::ExportModule
int number
 Component number. More...
 
EngngModelemodel
 Problem pointer. More...
 
bool tstep_all_out_flag
 Indicates all steps selection. More...
 
int tstep_step_out
 User timeStep Output step. Indicates every tstep_step_out-th step selected. More...
 
std::list< Rangetsteps_out
 List of user selected step numbers. More...
 
bool tstep_substeps_out_flag
 Flag turning output in solution step substeps/itarations. More...
 
bool domain_all_flag
 Indicates all domains. More...
 
IntArray domainMask
 Domain selection mask. More...
 
IntArray regionSets
 regions represented by sets More...
 
double timeScale
 Scaling time in output, e.g. conversion from seconds to hours. More...
 
Set defaultElementSet
 Default region set. More...
 

Private Member Functions

void computeArea (TimeStep *tStep)
 

Private Attributes

IntArray reactionForcesDofManList
 
IntArray dataDofManList
 

Detailed Description

(Under development) The Matlab export module enables oofem to export the results to a textfile containing the description of the mesh used along with the pertinent results.

Author
Carl Sandström
Jim Brouzoulis

Definition at line 71 of file matlabexportmodule.h.

Constructor & Destructor Documentation

oofem::MatlabExportModule::MatlabExportModule ( int  n,
EngngModel e 
)
oofem::MatlabExportModule::~MatlabExportModule ( )
virtual

Definition at line 90 of file matlabexportmodule.C.

Member Function Documentation

virtual const char* oofem::MatlabExportModule::giveClassName ( ) const
inlinevirtual

Returns class name of the receiver.

Implements oofem::ExportModule.

Definition at line 127 of file matlabexportmodule.h.

virtual const char* oofem::MatlabExportModule::giveInputRecordName ( ) const
inlinevirtual

Definition at line 128 of file matlabexportmodule.h.

References _IFT_MatlabExportModule_Name.

void oofem::MatlabExportModule::initialize ( )
virtual

Reimplemented from oofem::ExportModule.

Definition at line 680 of file matlabexportmodule.C.

References oofem::ExportModule::initialize().

void oofem::MatlabExportModule::terminate ( )
virtual

Terminates the receiver.

The terminating messages should be printed. All the streams should be closed.

Reimplemented from oofem::ExportModule.

Definition at line 687 of file matlabexportmodule.C.

Member Data Documentation

double oofem::MatlabExportModule::Area
protected

Definition at line 88 of file matlabexportmodule.h.

Referenced by computeArea(), and doOutput().

IntArray oofem::MatlabExportModule::dataDofManList
private

Definition at line 110 of file matlabexportmodule.h.

Referenced by doOutputData().

int oofem::MatlabExportModule::dataNodeSet
protected

Definition at line 100 of file matlabexportmodule.h.

Referenced by doOutputData(), and initializeFrom().

IntArray oofem::MatlabExportModule::elList
protected
bool oofem::MatlabExportModule::exportArea
protected

Definition at line 93 of file matlabexportmodule.h.

Referenced by doOutput(), and initializeFrom().

bool oofem::MatlabExportModule::exportData
protected

Definition at line 92 of file matlabexportmodule.h.

Referenced by doOutput(), and initializeFrom().

bool oofem::MatlabExportModule::exportHomogenizeIST
protected

Definition at line 97 of file matlabexportmodule.h.

Referenced by doOutput(), and initializeFrom().

bool oofem::MatlabExportModule::exportIntegrationPointFields
protected

Definition at line 96 of file matlabexportmodule.h.

Referenced by doOutput(), and initializeFrom().

bool oofem::MatlabExportModule::exportMesh
protected

Definition at line 91 of file matlabexportmodule.h.

Referenced by doOutput(), and initializeFrom().

bool oofem::MatlabExportModule::exportReactionForces
protected

Definition at line 95 of file matlabexportmodule.h.

Referenced by doOutput(), and initializeFrom().

bool oofem::MatlabExportModule::exportSpecials
protected

Definition at line 94 of file matlabexportmodule.h.

Referenced by doOutput(), and initializeFrom().

std :: string oofem::MatlabExportModule::functionname
protected

Definition at line 79 of file matlabexportmodule.h.

Referenced by doOutput(), and giveOutputStream().

IntArray oofem::MatlabExportModule::internalVarsToExport
protected

list of InternalStateType values, identifying the selected vars for export

Definition at line 75 of file matlabexportmodule.h.

Referenced by doOutputHomogenizeDofIDs(), doOutputIntegrationPointFields(), and initializeFrom().

int oofem::MatlabExportModule::IPFieldsElSet
protected

Definition at line 101 of file matlabexportmodule.h.

Referenced by doOutputIntegrationPointFields(), and initializeFrom().

int oofem::MatlabExportModule::ndim
protected

Definition at line 89 of file matlabexportmodule.h.

Referenced by doOutput().

bool oofem::MatlabExportModule::noscaling
protected

Definition at line 103 of file matlabexportmodule.h.

Referenced by doOutputHomogenizeDofIDs(), and initializeFrom().

std :: vector< std :: string > oofem::MatlabExportModule::partName
protected

Definition at line 86 of file matlabexportmodule.h.

Referenced by computeArea(), and doOutput().

std :: vector< double > oofem::MatlabExportModule::partVolume
protected

Definition at line 85 of file matlabexportmodule.h.

Referenced by computeArea(), and doOutput().

IntArray oofem::MatlabExportModule::primaryVarsToExport
protected

list of primary unknowns to export

Definition at line 78 of file matlabexportmodule.h.

IntArray oofem::MatlabExportModule::reactionForcesDofManList
private

Definition at line 109 of file matlabexportmodule.h.

Referenced by doOutputReactionForces(), and initializeFrom().

int oofem::MatlabExportModule::reactionForcesNodeSet
protected

Definition at line 99 of file matlabexportmodule.h.

Referenced by doOutputReactionForces(), and initializeFrom().

std :: vector< double > oofem::MatlabExportModule::smax
protected

Definition at line 82 of file matlabexportmodule.h.

Referenced by computeArea(), and doOutput().

std :: vector< double > oofem::MatlabExportModule::smin
protected

Definition at line 83 of file matlabexportmodule.h.

Referenced by computeArea(), and doOutput().

double oofem::MatlabExportModule::Volume
protected

Definition at line 88 of file matlabexportmodule.h.

Referenced by computeArea(), and doOutput().


The documentation for this class was generated from the following files:

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:38 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011