OOFEM 3.0
Loading...
Searching...
No Matches
oofem::GnuplotExportModule Class Reference

#include <gnuplotexportmodule.h>

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

Public Member Functions

 GnuplotExportModule (int n, EngngModel *e)
virtual ~GnuplotExportModule ()
void initializeFrom (InputRecord &ir) override
 Initializes receiver according to object description stored in input record.
void doOutput (TimeStep *tStep, bool forcedOutput=false) override
void initialize () override
void terminate () override
const char * giveClassName () const override
 Returns class name of the receiver.
const char * giveInputRecordName () const
void outputXFEM (EnrichmentItem &iEI, TimeStep *tStep)
void outputXFEM (Crack &iCrack, TimeStep *tStep)
void outputXFEMGeometry (const std::vector< std::vector< FloatArray > > &iEnrItemPoints)
void outputBoundaryCondition (PrescribedGradient &iBC, TimeStep *tStep)
void outputBoundaryCondition (PrescribedGradientBCNeumann &iBC, TimeStep *tStep)
void outputBoundaryCondition (PrescribedGradientBCWeak &iBC, TimeStep *tStep)
void outputGradient (int bc, Domain &d, FloatArray &grad, TimeStep *tStep)
void outputMesh (Domain &iDomain)
void outputNodeDisp (DofManager &iDMan, TimeStep *tStep)
void outputInterfaceEl (Domain &d, TimeStep *tStep)
Public Member Functions inherited from oofem::ExportModule
 ExportModule (int n, EngngModel *e)
 Constructor. Creates empty Output Manager with number n.
virtual ~ExportModule ()
 Destructor.
void doForcedOutput (TimeStep *tStep)
bool testSubStepOutput ()
virtual void initializeElementSet ()

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).
SetgiveRegionSet (int i)
 Returns element set.
std::string giveOutputBaseFileName (TimeStep *tStep)
bool testTimeStepOutput (TimeStep *tStep)
bool testDomainOutput (int n)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

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
std::vector< std::vector< double > > mDispHist
std ::unique_ptr< MaterialForceEvaluatormpMatForceEvaluator
FloatArray mMatForceRadii
std::unordered_map< int, std::vector< double > > mCrackLengthHist
std::vector< double > mTimeHist
Protected Attributes inherited from oofem::ExportModule
int number
 Component number.
EngngModelemodel
 Problem pointer.
bool tstep_all_out_flag
 Indicates all steps selection.
int tstep_step_out
 User timeStep Output step. Indicates every tstep_step_out-th step selected.
std ::list< Rangetsteps_out
 List of user selected step numbers.
bool tstep_substeps_out_flag
bool domain_all_flag
 Indicates all domains.
IntArray domainMask
 Domain selection mask.
IntArray regionSets
 regions represented by sets
double timeScale
 Scaling time in output, e.g. conversion from seconds to hours.
Set defaultElementSet
 Default region set.
bool pythonExport
 Output is carried out as a python list instead of writing files.

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

◆ GnuplotExportModule()

oofem::GnuplotExportModule::GnuplotExportModule ( int n,
EngngModel * e )

◆ ~GnuplotExportModule()

oofem::GnuplotExportModule::~GnuplotExportModule ( )
virtual

Definition at line 84 of file gnuplotexportmodule.C.

References ~GnuplotExportModule().

Referenced by ~GnuplotExportModule().

Member Function Documentation

◆ doOutput()

◆ giveClassName()

const char * oofem::GnuplotExportModule::giveClassName ( ) const
inlineoverridevirtual

Returns class name of the receiver.

Implements oofem::ExportModule.

Definition at line 97 of file gnuplotexportmodule.h.

◆ giveInputRecordName()

const char * oofem::GnuplotExportModule::giveInputRecordName ( ) const
inline

Definition at line 98 of file gnuplotexportmodule.h.

References _IFT_GnuplotExportModule_Name.

◆ initialize()

void oofem::GnuplotExportModule::initialize ( )
overridevirtual

Reimplemented from oofem::ExportModule.

Definition at line 183 of file gnuplotexportmodule.C.

References initialize().

Referenced by GnuplotExportModule(), and initialize().

◆ initializeFrom()

◆ outputBoundaryCondition() [1/3]

◆ outputBoundaryCondition() [2/3]

◆ outputBoundaryCondition() [3/3]

void oofem::GnuplotExportModule::outputBoundaryCondition ( PrescribedGradientBCWeak & iBC,
TimeStep * tStep )

◆ outputGradient()

◆ outputInterfaceEl()

◆ outputMesh()

void oofem::GnuplotExportModule::outputMesh ( Domain & iDomain)

◆ outputNodeDisp()

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

◆ outputReactionForces()

◆ outputXFEM() [1/2]

◆ outputXFEM() [2/2]

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

XFEM output

Definition at line 298 of file gnuplotexportmodule.C.

References outputXFEM().

Referenced by oofem::Crack::callGnuplotExportModule(), outputXFEM(), and outputXFEM().

◆ outputXFEMGeometry()

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

◆ terminate()

void oofem::GnuplotExportModule::terminate ( )
overridevirtual

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.

References terminate().

Referenced by GnuplotExportModule(), and terminate().

◆ WritePointsToGnuplot()

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

Member Data Documentation

◆ mCrackLengthHist

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().

◆ mDispHist

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

Definition at line 154 of file gnuplotexportmodule.h.

Referenced by outputReactionForces().

◆ mExportBoundaryConditions

bool oofem::GnuplotExportModule::mExportBoundaryConditions
protected

Definition at line 140 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

◆ mExportBoundaryConditionsExtra

bool oofem::GnuplotExportModule::mExportBoundaryConditionsExtra
protected

Definition at line 141 of file gnuplotexportmodule.h.

Referenced by initializeFrom(), and outputBoundaryCondition().

◆ mExportCrackLength

bool oofem::GnuplotExportModule::mExportCrackLength
protected

Definition at line 144 of file gnuplotexportmodule.h.

Referenced by initializeFrom().

◆ mExportInterfaceEl

bool oofem::GnuplotExportModule::mExportInterfaceEl
protected

Definition at line 145 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

◆ mExportMesh

bool oofem::GnuplotExportModule::mExportMesh
protected

Definition at line 142 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

◆ mExportReactionForces

bool oofem::GnuplotExportModule::mExportReactionForces
protected

Definition at line 139 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

◆ mExportXFEM

bool oofem::GnuplotExportModule::mExportXFEM
protected

Definition at line 143 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

◆ mMatForceRadii

FloatArray oofem::GnuplotExportModule::mMatForceRadii
protected

Definition at line 162 of file gnuplotexportmodule.h.

Referenced by initializeFrom(), and outputXFEM().

◆ mMonitorNodeDispHist

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

Definition at line 148 of file gnuplotexportmodule.h.

Referenced by outputNodeDisp().

◆ mMonitorNodeIndex

int oofem::GnuplotExportModule::mMonitorNodeIndex
protected

Definition at line 147 of file gnuplotexportmodule.h.

Referenced by doOutput(), and initializeFrom().

◆ mpMatForceEvaluator

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

Evaluator for material forces.

Definition at line 161 of file gnuplotexportmodule.h.

Referenced by outputXFEM().

◆ mReactionForceHistory

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().

◆ mTimeHist

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-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