LifeV
ExporterEmpty< MeshType > Class Template Reference

#include <ExporterEmpty.hpp>

+ Inheritance diagram for ExporterEmpty< MeshType >:
+ Collaboration diagram for ExporterEmpty< MeshType >:

Public typedefs

typedef MeshType mesh_Type
 
typedef Exporter< MeshTypesuper
 
typedef super::meshPtr_Type meshPtr_Type
 
typedef super::vectorPtr_Type vectorPtr_Type
 
typedef super::commPtr_Type commPtr_Type
 

Static members

static MapEpetraType const MapType
 returns the type of the map to use for the VectorEpetra More...
 

Constructors

 ExporterEmpty ()
 
 ExporterEmpty (const GetPot &dfile, meshPtr_Type mesh, const std::string &prefix, const int &procId)
 
 ExporterEmpty (const GetPot &dfile, const std::string &prefix)
 

Public methods

void postProcess (const Real &)
 Post-process the variables added to the list. More...
 
void exportPID (meshPtr_Type, commPtr_Type, const bool=false)
 
void exportRegionMarkerID (std::shared_ptr< MeshType >, std::shared_ptr< Epetra_Comm >)
 
UInt importFromTime (const Real &)
 Import data from previous simulations at a certain time. More...
 
void import (const Real &, const Real &)
 Import data from previous simulations. More...
 
void import (const Real &)
 Read only last timestep. More...
 

Get methods

MapEpetraType mapType () const
 returns the type of the map to use for the VectorEpetra More...
 

Private methods

virtual void readScalar (ExporterData< MeshType > &)
 
virtual void readVector (ExporterData< MeshType > &)
 

Additional Inherited Members

- Public Types inherited from Exporter< MeshType >
typedef MeshType mesh_Type
 
typedef std::shared_ptr< MeshTypemeshPtr_Type
 
typedef Epetra_Comm comm_Type
 
typedef std::shared_ptr< comm_TypecommPtr_Type
 
typedef ExporterData< mesh_TypeexporterData_Type
 
typedef exporterData_Type::vector_Type vector_Type
 
typedef exporterData_Type::vectorPtr_Type vectorPtr_Type
 
typedef exporterData_Type::feSpace_Type feSpace_Type
 
typedef exporterData_Type::feSpacePtr_Type feSpacePtr_Type
 
typedef exporterData_Type::WhereEnum WhereEnum
 
typedef exporterData_Type::FieldTypeEnum FieldTypeEnum
 
typedef exporterData_Type::FieldRegimeEnum FieldRegimeEnum
 
typedef std::vector< exporterData_TypedataVector_Type
 
typedef dataVector_Type::iterator dataVectorIterator_Type
 
typedef std::multimap< WhereEnum, UIntwhereToDataIdMap_Type
 
typedef std::multimap< FE_TYPE, UIntfeTypeToDataIdMap_Type
 
- Public Member Functions inherited from Exporter< MeshType >
 Exporter ()
 Empty constructor for Exporter. More...
 
 Exporter (const GetPot &dfile, const std::string &prefix)
 Constructor for Exporter without prefix and procID. More...
 
virtual ~Exporter ()
 Destructor. More...
 
void addVariable (const FieldTypeEnum &type, const std::string &variableName, const feSpacePtr_Type &feSpacePtr, const vectorPtr_Type &vectorPtr, const UInt &start, const FieldRegimeEnum &regime=exporterData_Type::UnsteadyRegime, const WhereEnum &where=exporterData_Type::Node)
 Adds a new variable to be post-processed. More...
 
virtual void readVariable (exporterData_Type &dvar)
 
virtual void exportPID (meshPtr_Type &mesh, commPtr_Type &comm, const bool binaryFormat=false)
 Export the Processor ID as P0 variable. More...
 
void exportRegionMarkerID (std::shared_ptr< MeshType > mesh, std::shared_ptr< Epetra_Comm > comm)
 Export the region marker ID as P0 variable. More...
 
virtual void exportFlags (std::shared_ptr< MeshType > mesh, std::shared_ptr< Epetra_Comm > comm, flag_Type const &flag=EntityFlags::ALL)
 Export entity flags. More...
 
virtual void setDataFromGetPot (const GetPot &dataFile, const std::string &section="exporter")
 Set data from file. More...
 
void setPrefix (const std::string &prefix)
 Set prefix. More...
 
void setPostDir (const std::string &Directory)
 Set the folder for pre/postprocessing. More...
 
void setTimeIndex (const UInt &timeIndex)
 Set the current time index. More...
 
void setTimeIndexStart (const UInt &timeIndexStart)
 Set the time index of the first file. More...
 
void setSave (const UInt &save)
 Set how many time step between two snapshots. More...
 
void setMultimesh (const bool &multimesh)
 Set if to save the mesh at each time step. More...
 
virtual void setMeshProcId (const meshPtr_Type mesh, const int &procId)
 
virtual void closeFile ()
 Close the output file. More...
 
const UIntsave () const
 returns how many time steps between two snapshots More...
 
const UInttimeIndexStart () const
 returns the time index of the first snapshot More...
 
const UInttimeIndex () const
 returns the time index of the current snapshot More...
 
- Protected Member Functions inherited from Exporter< MeshType >
void computePostfix ()
 compute postfix More...
 
virtual void readScalar (exporterData_Type &dvar)=0
 A method to read a scalar field (to be implemented in derived classes) More...
 
virtual void readVector (exporterData_Type &dvar)=0
 A method to read a vector field (to be implemented in derived classes) More...
 
- Protected Attributes inherited from Exporter< MeshType >
std::string M_prefix
 the file prefix More...
 
std::string M_postDir
 the name of the folder where to read or write files More...
 
UInt M_timeIndexStart
 the time index of the first snapshot More...
 
UInt M_timeIndex
 the time index of the current snapshot More...
 
UInt M_save
 how many time steps between subsequent snapshots More...
 
bool M_multimesh
 do we want to save the mesh with each snapshot? More...
 
UInt M_timeIndexWidth
 how many digits (in the file suffix) for the time index More...
 
meshPtr_Type M_mesh
 a pointer to the mesh More...
 
Int M_procId
 the ID of the process More...
 
std::string M_postfix
 the file suffix More...
 
UInt M_numImportProc
 how many processes produced the data that we want to import More...
 
whereToDataIdMap_Type M_whereToDataIdMap
 a map to retrieve all data located in the same geo entities (node or element) More...
 
feTypeToDataIdMap_Type M_feTypeToDataIdMap
 a map to retrieve all data defined in the same FE space More...
 
dataVector_Type M_dataVector
 the vector of ExporterData objects More...
 
std::list< RealM_timeSteps
 the list of time steps (for use in import procedures) More...
 

Detailed Description

template<typename MeshType>
class LifeV::ExporterEmpty< MeshType >

Definition at line 47 of file ExporterEmpty.hpp.

Member Typedef Documentation

◆ mesh_Type

Definition at line 53 of file ExporterEmpty.hpp.

◆ super

Definition at line 54 of file ExporterEmpty.hpp.

◆ meshPtr_Type

Definition at line 55 of file ExporterEmpty.hpp.

◆ vectorPtr_Type

Definition at line 56 of file ExporterEmpty.hpp.

◆ commPtr_Type

Definition at line 57 of file ExporterEmpty.hpp.

Constructor & Destructor Documentation

◆ ExporterEmpty() [1/3]

Definition at line 116 of file ExporterEmpty.hpp.

◆ ExporterEmpty() [2/3]

ExporterEmpty ( const GetPot dfile,
meshPtr_Type  mesh,
const std::string &  prefix,
const int &  procId 
)

Definition at line 122 of file ExporterEmpty.hpp.

◆ ExporterEmpty() [3/3]

ExporterEmpty ( const GetPot dfile,
const std::string &  prefix 
)

Definition at line 130 of file ExporterEmpty.hpp.

Member Function Documentation

◆ postProcess()

void postProcess ( const Real time)
inlinevirtual

Post-process the variables added to the list.

Parameters
timethe solver time

Implements Exporter< MeshType >.

Definition at line 77 of file ExporterEmpty.hpp.

◆ exportPID()

void exportPID ( meshPtr_Type  ,
commPtr_Type  ,
const bool  = false 
)
inline

Definition at line 78 of file ExporterEmpty.hpp.

◆ exportRegionMarkerID()

void exportRegionMarkerID ( std::shared_ptr< MeshType ,
std::shared_ptr< Epetra_Comm >   
)
inline

Definition at line 79 of file ExporterEmpty.hpp.

◆ importFromTime()

UInt importFromTime ( const Real Time)
inlinevirtual

Import data from previous simulations at a certain time.

Parameters
Timethe time of the data to be imported

Implements Exporter< MeshType >.

Definition at line 80 of file ExporterEmpty.hpp.

◆ import() [1/2]

void import ( const Real startTime,
const Real dt 
)
inlinevirtual

Import data from previous simulations.

Parameters
timethe solver time
dttime step used to rebuild the history up to now

Implements Exporter< MeshType >.

Definition at line 85 of file ExporterEmpty.hpp.

◆ import() [2/2]

void import ( const Real startTime)
inlinevirtual

Read only last timestep.

Implements Exporter< MeshType >.

Definition at line 86 of file ExporterEmpty.hpp.

◆ mapType()

MapEpetraType mapType ( ) const
virtual

returns the type of the map to use for the VectorEpetra

Implements Exporter< MeshType >.

Definition at line 140 of file ExporterEmpty.hpp.

◆ readScalar()

virtual void readScalar ( ExporterData< MeshType > &  )
inlineprivatevirtual

Definition at line 97 of file ExporterEmpty.hpp.

◆ readVector()

virtual void readVector ( ExporterData< MeshType > &  )
inlineprivatevirtual

Definition at line 98 of file ExporterEmpty.hpp.

Field Documentation

◆ MapType

MapEpetraType const MapType
static

returns the type of the map to use for the VectorEpetra

Definition at line 65 of file ExporterEmpty.hpp.


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