38 #include <sys/types.h>
71 Output(std::string nameRun,
int fileNumberRestartMeshMapping,
Input* input);
84 throw ErrorECOGEN(
"locateProbeInMesh not available for requested output format");
93 throw ErrorECOGEN(
"locateProbeInMesh not available for requested output format");
109 throw ErrorECOGEN(
"writeResults not available for requested output format");
118 throw ErrorECOGEN(
"writeResults not available for requested output format");
130 virtual void printTree(
Mesh* mesh,
const std::vector<Cell*>* cellsLvl,
int m_resumeAMRsaveFreq)
const;
137 throw ErrorECOGEN(
"initializeSpecificOutput not available for requested output format");
146 throw ErrorECOGEN(
"initializeSpecificOutput not available for requested output format");
167 throw ErrorECOGEN(
"readResults not available for requested output format");
187 const std::vector<AddPhys*>& addPhys,
188 int& nbCellsTotalAMR);
191 virtual void writeErrorInFile(std::vector<Errors>& v,
const int& ErrorType,
const int& iteration,
bool& warn)
const;
205 const std::vector<AddPhys*>& addPhys,
213 throw ErrorECOGEN(
"getNextTime not available for requested output format");
223 throw ErrorECOGEN(
"possesses not available for requested output format");
234 throw ErrorECOGEN(
"getTransferMode not available for requested output format");
246 std::string
outputPhaseName(
int phase, std::string phaseName, std::string& eosName)
const
248 return "F" + std::to_string(phase) +
"_" + phaseName + eosName;
255 std::string
createFilename(
const char* name,
int lvl = -1,
int proc = -1,
int numFichier = -1)
const;
257 void writeDataset(std::vector<double> dataset, std::ofstream& fileStream,
TypeData typeData)
const;
258 void getDataset(std::istringstream& data, std::vector<double>& dataset)
const;
Base class for a mesh cell.
Definition Cell.h:59
Abstract class for a mesh.
Definition Mesh.h:55
virtual void readTree(Mesh *mesh, TypeMeshContainer< Cell * > *cellsLvl, TypeMeshContainer< Cell * > *cellsLvlGhost, TypeMeshContainer< CellInterface * > *cellInterfacesLvl, const std::vector< AddPhys * > &addPhys, int &nbCellsTotalAMR)
Read 'meshInfo' file that stores for each cell its subdivision status (1 if subdivided,...
Definition Output.cpp:311
virtual void prepareErrorFiles() const
Definition Output.cpp:686
std::string m_folderOutput
Folder to store results.
Definition Output.h:273
virtual Cell * locateProbeInAMRSubMesh(std::vector< Cell * > *, const int &)
Definition Output.h:90
std::string m_folderBoundaries
Boundaries flux results folder location.
Definition Output.h:280
const std::string & getFolderOutput()
Definition Output.h:242
const TypeOutput & getType() const
Definition Output.h:243
void writeDataset(std::vector< double > dataset, std::ofstream &fileStream, TypeData typeData) const
Definition Output.cpp:404
virtual void probeDisplacement(const double &)
Definition Output.h:79
int m_precision
Output files precision (number of digits) for GNU and VTK outputs //default: 6.
Definition Output.h:288
virtual double getNextTime()
Definition Output.h:210
std::string m_fileNameResults
Filename of result file.
Definition Output.h:269
void readDomainDecompostion(Mesh *mesh)
Definition Output.cpp:294
std::string m_infoCalcul
Filename to save useful info of computation.
Definition Output.h:266
int m_numFile
Definition Output.h:291
virtual void printTree(Mesh *mesh, const std::vector< Cell * > *cellsLvl, int m_resumeAMRsaveFreq) const
Write 'meshInfo' file that stores for each cell its subdivision status (1 if subdivided,...
Definition Output.cpp:261
std::string m_fileCollectionParaview
Chemin du file collection regroupant les fichiers resultats (for Paraview).
Definition Output.h:281
Output()
Default constructor for specific output without specific needs.
Definition Output.cpp:40
Cell m_cellRef
Reference cell to extract variables name.
Definition Output.h:296
std::string m_treeStructure
Filename for tree structure backup.
Definition Output.h:267
std::string m_filenameCollectionParaview
Name of the collection containing the results files (for Paraview).
Definition Output.h:270
void printWritingInfo() const
Definition Output.cpp:524
std::string m_endianMode
Definition Output.h:292
void saveInfos() const
Definition Output.cpp:538
virtual ~Output()
Definition Output.cpp:162
virtual void initializeSpecificOutput(std::vector< CellInterface * > *)
Definition Output.h:143
virtual void initializeSpecificOutput()
Definition Output.h:134
virtual void writeProgress()
Definition Output.cpp:391
Run * m_run
Pointer to run.
Definition Output.h:261
int getNumFile() const
Definition Output.h:209
virtual void readResults(Mesh *, std::vector< Cell * > *, int=-1)
Read results of a previous simulation to resume from it.
Definition Output.h:164
void initializeOutputMeshMapping(const Cell &cell)
To initialize output for Mesh Mapping Restart.
Definition Output.cpp:226
bool getReducedOutput() const
Definition Output.h:244
TypeOutput m_type
Type of output.
Definition Output.h:262
std::string m_filenameVTKHDFTimeseries
Name of the timeseries file containing the list of result files at vtkhdf format (for Paraview).
Definition Output.h:272
void readTree_common(Mesh *mesh, TypeMeshContainer< Cell * > *cellsLvl, TypeMeshContainer< Cell * > *cellsLvlGhost, TypeMeshContainer< CellInterface * > *cellInterfacesLvl, const std::vector< AddPhys * > &addPhys, int &lvl)
Refine ghost cells, update of persistent communications of cells lvl + 1, reconstruct arrays of cells...
Definition Output.cpp:347
bool m_writeBinary
Choice to write binary/ASCII (available for GNU and VTK outputs, GNU format only supports ASCII).
Definition Output.h:286
virtual void writeErrorInFile(std::vector< Errors > &v, const int &ErrorType, const int &iteration, bool &warn) const
Definition Output.cpp:701
std::string outputPhaseName(int phase, std::string phaseName, std::string &eosName) const
Definition Output.h:246
std::string m_folderCuts
Cuts results folder location.
Definition Output.h:277
void copyInputFiles() const
Definition Output.cpp:166
std::string m_folderDatasets
Folder to save the datasets.
Definition Output.h:275
std::string createFilename(const char *name, int lvl=-1, int proc=-1, int numFichier=-1) const
Definition Output.cpp:669
virtual void writeResults(Mesh *, std::vector< Cell * > *)
Definition Output.h:106
std::string m_folderGlobalQuantities
Global quantity (e.g. mass) results folder location.
Definition Output.h:279
virtual bool possesses()
Definition Output.h:220
Input * m_input
Pointer to input.
Definition Output.h:260
void initializeOutput(const Cell &cell)
Definition Output.cpp:183
std::string m_filenameCollectionVisIt
Name of the collection containing the results files (for VisIt).
Definition Output.h:271
virtual void locateProbeInMesh(const TypeMeshContainer< Cell * > &, const int &, bool=false)
Definition Output.h:81
std::string m_domainDecomposition
Filename for domain decomposition backup.
Definition Output.h:268
virtual const void * getTransferMode() const
Get m_transfer_mode field. For OutputVTKHDF derived class only.
Definition Output.h:231
int readNbCpu()
Read and return the number of cpu from the infoCalcul file of a performed simulation.
Definition Output.cpp:646
int m_nbCpusRestarted
Number of CPUs of the simulation to be restarted.
Definition Output.h:293
virtual void initializeOutputInfos()
Definition Output.cpp:244
std::string m_simulationName
Test case name (defined in "main.xml").
Definition Output.h:265
std::string m_folderErrorsAndWarnings
File path for errors and warnings.
Definition Output.h:283
std::string m_folderSavesInput
Folder to store a copy of input files.
Definition Output.h:274
std::string m_folderProbes
Probes results folder location.
Definition Output.h:278
void readInfos()
Currently only used for OutputBoundaryMassflowGNU.
Definition Output.cpp:579
bool m_reducedOutput
Choice of reduced number of output variables when possible (depends on the model).
Definition Output.h:289
bool m_splitData
Choice print data in separate files.
Definition Output.h:287
std::string m_folderInfoMesh
Folder to store mesh info.
Definition Output.h:276
virtual void writeResults(std::vector< CellInterface * > *)
Definition Output.h:115
void getDataset(std::istringstream &data, std::vector< double > &dataset) const
Definition Output.cpp:468
std::string m_fileCollectionVisIt
Chemin du file collection regroupant les fichiers resultats (for VisIt).
Definition Output.h:282
virtual void writeInfos()
Definition Output.cpp:382
Class regrouping all information for a simulation.
Definition Run.h:63
Definition tinyxml2.h:1148