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

#include <vtkpfemexportmodule.h>

Inheritance diagram for oofem::VTKPFEMXMLExportModule:
Collaboration diagram for oofem::VTKPFEMXMLExportModule:

Public Member Functions

 VTKPFEMXMLExportModule (int n, EngngModel *e)
 Constructor. Creates empty Output Manager. By default all components are selected.
virtual ~VTKPFEMXMLExportModule ()
 Destructor.
void initializeFrom (InputRecord &ir) override
 Initializes receiver according to object description stored in input record.
void doOutput (TimeStep *tStep, bool forcedOutput=false) override
Public Member Functions inherited from oofem::VTKBaseExportModule
 VTKBaseExportModule (int n, EngngModel *e)
 Constructor. Creates empty Output Manager. By default all components are selected.
virtual ~VTKBaseExportModule ()
 Destructor.
void initialize () override
void terminate () override
const char * giveClassName () const override
 Returns class name of the receiver.
int giveCellType (Element *element)
int giveCellType (int num)
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 ()

Protected Member Functions

std::string giveOutputFileName (TimeStep *tStep)
 Returns the filename for the given time step.
std::ofstream giveOutputStream (TimeStep *tStep)
 Returns the output stream for given solution step.
Protected Member Functions inherited from oofem::VTKBaseExportModule
virtual void setupVTKPiece (ExportRegion &vtkPiece, TimeStep *tStep, Set &region)
virtual void exportPrimaryVars (ExportRegion &piece, Set &region, IntArray &primaryVarsToExport, NodalRecoveryModel &smoother, TimeStep *tStep)
virtual void exportIntVars (ExportRegion &piece, Set &region, IntArray &internalVarsToExport, NodalRecoveryModel &smoother, TimeStep *tStep)
void exportExternalForces (ExportRegion &piece, int region, TimeStep *tStep)
void exportCellVars (ExportRegion &piece, Set &region, IntArray &cellVarsToExport, TimeStep *tStep)
 Exports cell variables (typically internal variables).
void exportExternalForces (ExportRegion &piece, Set &region, IntArray &externalForcesToExport, TimeStep *tStep)
void exportSetMembership (ExportRegion &piece, Set &region, TimeStep *tStep)
void getNodalVariableFromPrimaryField (FloatArray &answer, DofManager *dman, TimeStep *tStep, UnknownType type, Set &region, NodalRecoveryModel &smoother)
void getNodalVariableFromIS (FloatArray &answer, Node *node, TimeStep *tStep, InternalStateType type, Set &region, NodalRecoveryModel &smoother)
void getCellVariableFromIS (FloatArray &answer, Element *el, InternalStateType type, TimeStep *tStep)
int giveNumberOfNodesPerCell (int cellType)
void giveElementCell (IntArray &answer, Element *elem)
virtual int initRegionNodeNumbering (ExportRegion &vtkPiece, Domain *domain, TimeStep *tStep, Set &region)
bool isElementComposite (Element *elem)
void exportCompositeElement (ExportRegion &vtkPiece, Element *el, TimeStep *tStep)
 Returns true if element geometry type is composite (not a single cell).
void exportCompositeElement (std::vector< ExportRegion > &vtkPieces, Element *el, 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

std::ofstream fileStream
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.

Additional Inherited Members

Static Public Member Functions inherited from oofem::VTKBaseExportModule
static void computeIPAverage (FloatArray &answer, IntegrationRule *iRule, Element *elem, InternalStateType isType, TimeStep *tStep)
Static Protected Member Functions inherited from oofem::VTKBaseExportModule
static void makeFullTensorForm (FloatArray &answer, const FloatArray &reducedForm, InternalStateValueType vtype)
 Gives the full form of given symmetrically stored tensors, missing components are filled with zeros.
Static Protected Attributes inherited from oofem::VTKBaseExportModule
static IntArray redToFull
 Map from Voigt to full tensor.

Detailed Description

Definition at line 67 of file vtkpfemexportmodule.h.

Constructor & Destructor Documentation

◆ VTKPFEMXMLExportModule()

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

Constructor. Creates empty Output Manager. By default all components are selected.

References doOutput(), giveOutputFileName(), giveOutputStream(), initializeFrom(), and VTKPFEMXMLExportModule().

Referenced by VTKPFEMXMLExportModule().

◆ ~VTKPFEMXMLExportModule()

oofem::VTKPFEMXMLExportModule::~VTKPFEMXMLExportModule ( )
virtual

Destructor.

Definition at line 66 of file vtkpfemexportmodule.C.

References ~VTKPFEMXMLExportModule().

Referenced by ~VTKPFEMXMLExportModule().

Member Function Documentation

◆ doOutput()

void oofem::VTKPFEMXMLExportModule::doOutput ( TimeStep * tStep,
bool forcedOutput = false )
overridevirtual

◆ giveOutputFileName()

std::string oofem::VTKPFEMXMLExportModule::giveOutputFileName ( TimeStep * tStep)
protected

Returns the filename for the given time step.

Definition at line 75 of file vtkpfemexportmodule.C.

References oofem::ExportModule::giveOutputBaseFileName(), and giveOutputFileName().

Referenced by giveOutputFileName(), giveOutputStream(), and VTKPFEMXMLExportModule().

◆ giveOutputStream()

std::ofstream oofem::VTKPFEMXMLExportModule::giveOutputStream ( TimeStep * tStep)
protected

Returns the output stream for given solution step.

Definition at line 82 of file vtkpfemexportmodule.C.

References giveOutputFileName(), giveOutputStream(), NULL_DEVICE, OOFEM_ERROR, and oofem::ExportModule::pythonExport.

Referenced by doOutput(), giveOutputStream(), and VTKPFEMXMLExportModule().

◆ initializeFrom()

void oofem::VTKPFEMXMLExportModule::initializeFrom ( InputRecord & ir)
overridevirtual

Initializes receiver according to object description stored in input record.

Reimplemented from oofem::ExportModule.

Definition at line 69 of file vtkpfemexportmodule.C.

References oofem::ExportModule::initializeFrom(), and initializeFrom().

Referenced by initializeFrom(), and VTKPFEMXMLExportModule().

Member Data Documentation

◆ fileStream

std::ofstream oofem::VTKPFEMXMLExportModule::fileStream
protected

Definition at line 70 of file vtkpfemexportmodule.h.

Referenced by doOutput().


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