ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
OutputProbeGNU Class Reference

Printing results for a probe in flow. More...

#include <OutputProbeGNU.h>

Inherits OutputGNU.

Public Member Functions

 OutputProbeGNU (std::string casTest, std::string run, tinyxml2::XMLElement *element, std::string fileName, Input *entree)
 Probe output constructor from a XML format reading.
 
virtual ~OutputProbeGNU ()
 
virtual void locateProbeInMesh (const TypeMeshContainer< Cell * > &cells, const int &nbCells, bool localSeeking=false)
 
virtual CelllocateProbeInAMRSubMesh (std::vector< Cell * > *cells, const int &nbCells)
 
virtual void initializeSpecificOutput ()
 
virtual void writeResults (Mesh *, std::vector< Cell * > *)
 
virtual void initializeOutputInfos ()
 
virtual void writeInfos ()
 
virtual double getNextTime ()
 
virtual bool possesses ()
 
- Public Member Functions inherited from OutputGNU
 OutputGNU ()
 Default constructor for specific output without specific needs.
 
 OutputGNU (std::string casTest, std::string run, tinyxml2::XMLElement *element, std::string fileName, Input *entree)
 Main constructor for datasets.
 
 OutputGNU (tinyxml2::XMLElement *element)
 Constructor for specific derived GNU outputs (boundary, probe, cut)
 
virtual ~OutputGNU ()
 
virtual void initializeSpecificOutput (std::vector< CellInterface * > *)
 
virtual void writeResults (std::vector< CellInterface * > *)
 
- Public Member Functions inherited from Output
 Output ()
 Default constructor for specific output without specific needs.
 
 Output (std::string casTest, std::string nameRun, tinyxml2::XMLElement *element, std::string fileName, Input *entree)
 Main constructor for datasets used for OutputXML and OutputGNU according to outputMode.
 
 Output (std::string nameRun, int fileNumberRestartMeshMapping, Input *input)
 Constructor for datasets used for OutputXML when mesh mapping restart option is activated.
 
 Output (tinyxml2::XMLElement *element)
 Constructor for specific derived GNU outputs (boundary, probe, cut)
 
virtual ~Output ()
 
void copyInputFiles () const
 
void initializeOutput (const Cell &cell)
 
void initializeOutput (std::vector< CellInterface * > *cellInterfacesLvl)
 To initialize OutputBoundaryMassflowGNU.
 
void initializeOutputMeshMapping (const Cell &cell)
 To initialize output for Mesh Mapping Restart.
 
void printTree (Mesh *mesh, std::vector< Cell * > *cellsLvl, int m_restartAMRsaveFreq)
 
virtual void writeProgress ()
 
void saveInfoCells () const
 
void readInfos ()
 Currently only used for OutputBoundaryMassflowGNU.
 
int readNbCpu ()
 Read and return the number of cpu from the infoCalcul file of a performed simulation.
 
virtual void readResults (Mesh *, std::vector< Cell * > *)
 Read results of a previous simulation to restart from it.
 
virtual void readResultsCpu (Mesh *, std::vector< Cell * > *, int)
 Read results of a single partition of a previous simulation to restart from it.
 
void readDomainDecompostion (Mesh *mesh)
 
void readTree (Mesh *mesh, TypeMeshContainer< Cell * > *cellsLvl, TypeMeshContainer< Cell * > *cellsLvlGhost, TypeMeshContainer< CellInterface * > *cellInterfacesLvl, const std::vector< AddPhys * > &addPhys, int &nbCellsTotalAMR)
 
int getNumFile () const
 
const std::string & getFolderOutput ()
 
const TypeOutputgetType () const
 
bool getReducedOutput () const
 

Private Attributes

double m_acqFreq
 Acquisition time frequency.
 
double m_nextAcq
 Next acquisition time.
 
Cellm_cell
 Pointer to the level 0 cell containing the probe.
 
GeometricObjectm_objet
 To store position.
 
bool * m_possessesProbe
 True if the CPU possesses probe.
 

Additional Inherited Members

- Protected Member Functions inherited from OutputGNU
void writeScriptGnuplot (const int &dim)
 
void writeScriptGnuplot (const std::string &varName)
 
std::string createFilenameGNU (const char *name, int lvl=-1, int proc=-1, int numFichier=-1, std::string nameVariable="defaut") const
 
void printBlocGnuplot (std::ofstream &fileStream, int &index, const int &dim)
 
std::string formatVarNameStyle (std::string const &strToFormat) const
 
- Protected Member Functions inherited from Output
void printWritingInfo () const
 
void saveInfos () const
 
std::string createFilename (const char *name, int lvl=-1, int proc=-1, int numFichier=-1) const
 
void writeDataset (std::vector< double > dataset, std::ofstream &fileStream, TypeData typeData)
 
void getDataset (std::istringstream &data, std::vector< double > &dataset)
 
- Protected Attributes inherited from OutputGNU
std::string m_fileNameVisu
 
std::string m_folderScriptGnuplot
 
- Protected Attributes inherited from Output
Inputm_input
 Pointer to input.
 
Runm_run
 Pointer to run.
 
TypeOutput m_type
 Type of output.
 
std::string m_simulationName
 Test case name (defined in "main.xml")
 
std::string m_infoCalcul
 Filename to save useful info of computation.
 
std::string m_infoMesh
 Filename of mesh info file.
 
std::string m_treeStructure
 Filename for tree structure backup.
 
std::string m_domainDecomposition
 Filename for domain decomposition backup.
 
std::string m_fileNameResults
 Filename of result file.
 
std::string m_filenameCollectionParaview
 Name of the collection containing the results files (for Paraview)
 
std::string m_filenameCollectionVisIt
 Name of the collection containing the results files (for VisIt)
 
std::string m_folderOutput
 Folder to store results.
 
std::string m_folderSavesInput
 Folder to store a copy of input files.
 
std::string m_folderDatasets
 Folder to save the datasets.
 
std::string m_folderInfoMesh
 Folder to store mesh info.
 
std::string m_folderCuts
 Cuts results folder location.
 
std::string m_folderProbes
 Probes results folder location.
 
std::string m_folderGlobalQuantities
 Global quantity (e.g. mass) results folder location.
 
std::string m_folderBoundaries
 Boundaries flux results folder location.
 
std::string m_fileCollectionParaview
 Chemin du file collection regroupant les fichiers resultats (for Paraview)
 
std::string m_fileCollectionVisIt
 Chemin du file collection regroupant les fichiers resultats (for VisIt)
 
std::string m_folderErrorsAndWarnings
 File path for errors and warnings.
 
bool m_writeBinary
 Choice to write binary/ASCII.
 
bool m_splitData
 Choice print data in separate files.
 
int m_precision
 Output files precision (number of digits) //default: 0.
 
bool m_reducedOutput
 Choice of reduced number of output variables when possible (depends on the model)
 
int m_numFichier
 
std::string m_endianMode
 
int m_nbCpusRestarted
 Number of CPUs of the simulation to be restarted.
 
Cell m_cellRef
 Reference cell to extract variables name.
 

Detailed Description

Printing results for a probe in flow.

Constructor & Destructor Documentation

◆ OutputProbeGNU()

OutputProbeGNU::OutputProbeGNU ( std::string  casTest,
std::string  run,
tinyxml2::XMLElement element,
std::string  fileName,
Input entree 
)

Probe output constructor from a XML format reading.

Reading data from XML file under the following format: ex: <probe name="sensor1"> <vertex x = "0.3" y = "0.05" z = "0.05" / > <timeControl acqFreq = "1e-5." / > </probe>

Parameters
casTestFolder name of test case input files
runResutls folder name (defined in 'main.xml')
elementXML element to read for probe data
fileNamestring name of readed XML file
entreePointer to corresponding run entry object

◆ ~OutputProbeGNU()

OutputProbeGNU::~OutputProbeGNU ( )
virtual

Member Function Documentation

◆ getNextTime()

virtual double OutputProbeGNU::getNextTime ( )
inlinevirtual

Reimplemented from Output.

◆ initializeOutputInfos()

virtual void OutputProbeGNU::initializeOutputInfos ( )
inlinevirtual

Reimplemented from Output.

◆ initializeSpecificOutput()

void OutputProbeGNU::initializeSpecificOutput ( )
virtual

Reimplemented from OutputGNU.

◆ locateProbeInAMRSubMesh()

Cell * OutputProbeGNU::locateProbeInAMRSubMesh ( std::vector< Cell * > *  cells,
const int &  nbCells 
)
virtual

Reimplemented from Output.

◆ locateProbeInMesh()

void OutputProbeGNU::locateProbeInMesh ( const TypeMeshContainer< Cell * > &  cells,
const int &  nbCells,
bool  localSeeking = false 
)
virtual

Reimplemented from Output.

◆ possesses()

virtual bool OutputProbeGNU::possesses ( )
inlinevirtual

Reimplemented from Output.

◆ writeInfos()

virtual void OutputProbeGNU::writeInfos ( )
inlinevirtual

Reimplemented from Output.

◆ writeResults()

void OutputProbeGNU::writeResults ( Mesh ,
std::vector< Cell * > *   
)
virtual

Reimplemented from OutputGNU.

Member Data Documentation

◆ m_acqFreq

double OutputProbeGNU::m_acqFreq
private

Acquisition time frequency.

◆ m_cell

Cell* OutputProbeGNU::m_cell
private

Pointer to the level 0 cell containing the probe.

◆ m_nextAcq

double OutputProbeGNU::m_nextAcq
private

Next acquisition time.

◆ m_objet

GeometricObject* OutputProbeGNU::m_objet
private

To store position.

◆ m_possessesProbe

bool* OutputProbeGNU::m_possessesProbe
private

True if the CPU possesses probe.


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