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

(Under development) The Gnuplot export module enables OOFEM to export some data in a format that can be directly plotted with Gnuplot. More...

#include <gnuplotexportmodule.h>

+ Inheritance diagram for oofem::GnuplotExportModule:
+ Collaboration diagram for oofem::GnuplotExportModule:

Public Member Functions

 GnuplotExportModule (int n, EngngModel *e)
 
virtual ~GnuplotExportModule ()
 
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...
 
virtual const char * giveClassName () const
 Returns class name of the receiver. More...
 
virtual const char * giveInputRecordName () const
 
void outputXFEM (EnrichmentItem &iEI, TimeStep *tStep)
 XFEM output. More...
 
void outputXFEM (Crack &iCrack, TimeStep *tStep)
 
void outputXFEMGeometry (const std::vector< std::vector< FloatArray > > &iEnrItemPoints)
 
void outputBoundaryCondition (PrescribedGradient &iBC, TimeStep *tStep)
 Boundary condition output. More...
 
void outputBoundaryCondition (PrescribedGradientBCNeumann &iBC, TimeStep *tStep)
 
void outputBoundaryCondition (PrescribedGradientBCWeak &iBC, TimeStep *tStep)
 
void outputGradient (int bc, Domain &d, FloatArray &grad, TimeStep *tStep)
 Help functions. More...
 
void outputMesh (Domain &iDomain)
 Mesh output. More...
 
void outputNodeDisp (DofManager &iDMan, TimeStep *tStep)
 Monitor node output. More...
 
void outputInterfaceEl (Domain &d, TimeStep *tStep)
 Custom output for interface elements. More...
 
- 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...
 

Static Public Member Functions

static void WritePointsToGnuplot (const std::string &iName, const std::vector< std::vector< FloatArray > > &iPoints)
 

Protected Member Functions

void outputReactionForces (TimeStep *tStep)
 
- 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

bool mExportReactionForces
 
bool mExportBoundaryConditions
 
bool mExportBoundaryConditionsExtra
 
bool mExportMesh
 
bool mExportXFEM
 
bool mExportCrackLength
 
bool mExportInterfaceEl
 
int mMonitorNodeIndex
 
std::vector< FloatArraymMonitorNodeDispHist
 
std::vector< std::vector< FloatArray > > mReactionForceHistory
 Stores the sum of reaction forces for each BC. More...
 
std::vector< std::vector< double > > mDispHist
 
std::unique_ptr< MaterialForceEvaluatormpMatForceEvaluator
 Evaluator for material forces. More...
 
FloatArray mMatForceRadii
 
std::unordered_map< int, std::vector< double > > mCrackLengthHist
 Store time history of crack lengths. More...
 
std::vector< double > mTimeHist
 
- 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...
 

Detailed Description

(Under development) The Gnuplot export module enables OOFEM to export some data in a format that can be directly plotted with Gnuplot.

Author
Erik Svenning

Created on: Jan 29, 2014

Definition at line 86 of file gnuplotexportmodule.h.

Constructor & Destructor Documentation

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

Definition at line 84 of file gnuplotexportmodule.C.

Member Function Documentation

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

Returns class name of the receiver.

Implements oofem::ExportModule.

Definition at line 97 of file gnuplotexportmodule.h.

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

Definition at line 98 of file gnuplotexportmodule.h.

References _IFT_GnuplotExportModule_Name.

void oofem::GnuplotExportModule::initialize ( )
virtual

Reimplemented from oofem::ExportModule.

Definition at line 183 of file gnuplotexportmodule.C.

References oofem::ExportModule::initialize().

void oofem::GnuplotExportModule::outputNodeDisp ( DofManager iDMan,
TimeStep tStep 
)

Monitor node output.

Definition at line 896 of file gnuplotexportmodule.C.

References oofem::DofManager::giveCompleteUnknownVector(), mMonitorNodeDispHist, and WritePointsToGnuplot().

Referenced by doOutput().

void oofem::GnuplotExportModule::outputXFEM ( EnrichmentItem iEI,
TimeStep tStep 
)

XFEM output.

Definition at line 298 of file gnuplotexportmodule.C.

Referenced by oofem::Crack::callGnuplotExportModule().

void oofem::GnuplotExportModule::outputXFEMGeometry ( const std::vector< std::vector< FloatArray > > &  iEnrItemPoints)
void oofem::GnuplotExportModule::terminate ( )
virtual

Terminates the receiver.

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

Reimplemented from oofem::ExportModule.

Definition at line 188 of file gnuplotexportmodule.C.

void oofem::GnuplotExportModule::WritePointsToGnuplot ( const std::string &  iName,
const std::vector< std::vector< FloatArray > > &  iPoints 
)
static

Member Data Documentation

std::unordered_map< int, std::vector<double> > oofem::GnuplotExportModule::mCrackLengthHist
protected

Store time history of crack lengths.

Definition at line 167 of file gnuplotexportmodule.h.

Referenced by outputXFEM().

std::vector< std::vector<double> > oofem::GnuplotExportModule::mDispHist
protected

Definition at line 154 of file gnuplotexportmodule.h.

Referenced by outputReactionForces().

bool oofem::GnuplotExportModule::mExportBoundaryConditions
protected

Definition at line 140 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

bool oofem::GnuplotExportModule::mExportBoundaryConditionsExtra
protected

Definition at line 141 of file gnuplotexportmodule.h.

Referenced by initializeFrom(), and outputBoundaryCondition().

bool oofem::GnuplotExportModule::mExportCrackLength
protected

Definition at line 144 of file gnuplotexportmodule.h.

Referenced by initializeFrom().

bool oofem::GnuplotExportModule::mExportInterfaceEl
protected

Definition at line 145 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

bool oofem::GnuplotExportModule::mExportMesh
protected

Definition at line 142 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

bool oofem::GnuplotExportModule::mExportReactionForces
protected

Definition at line 139 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

bool oofem::GnuplotExportModule::mExportXFEM
protected

Definition at line 143 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

FloatArray oofem::GnuplotExportModule::mMatForceRadii
protected

Definition at line 162 of file gnuplotexportmodule.h.

Referenced by initializeFrom(), and outputXFEM().

std::vector<FloatArray> oofem::GnuplotExportModule::mMonitorNodeDispHist
protected

Definition at line 148 of file gnuplotexportmodule.h.

Referenced by outputNodeDisp().

int oofem::GnuplotExportModule::mMonitorNodeIndex
protected

Definition at line 147 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

std :: unique_ptr< MaterialForceEvaluator > oofem::GnuplotExportModule::mpMatForceEvaluator
protected

Evaluator for material forces.

Definition at line 161 of file gnuplotexportmodule.h.

Referenced by outputXFEM().

std::vector< std::vector<FloatArray> > oofem::GnuplotExportModule::mReactionForceHistory
protected

Stores the sum of reaction forces for each BC.

Definition at line 153 of file gnuplotexportmodule.h.

Referenced by outputReactionForces().

std::vector<double> oofem::GnuplotExportModule::mTimeHist
protected

Definition at line 168 of file gnuplotexportmodule.h.

Referenced by doOutput(), and outputXFEM().


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