ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
OutputProbeGNU.h
Go to the documentation of this file.
1//
2// ,---. ,--, .---. ,--, ,---. .-. .-.
3// | .-' .' .') / .-. ) .' .' | .-' | \| |
4// | `-. | |(_) | | |(_) | | __ | `-. | | |
5// | .-' \ \ | | | | \ \ ( _) | .-' | |\ |
6// | `--. \ `-. \ `-' / \ `-) ) | `--. | | |)|
7// /( __.' \____\ )---' )\____/ /( __.' /( (_)
8// (__) (_) (__) (__) (__)
9// Official webSite: https://code-mphi.github.io/ECOGEN/
10//
11// This file is part of ECOGEN.
12//
13// ECOGEN is the legal property of its developers, whose names
14// are listed in the copyright file included with this source
15// distribution.
16//
17// ECOGEN is free software: you can redistribute it and/or modify
18// it under the terms of the GNU General Public License as published
19// by the Free Software Foundation, either version 3 of the License,
20// or (at your option) any later version.
21//
22// ECOGEN is distributed in the hope that it will be useful,
23// but WITHOUT ANY WARRANTY; without even the implied warranty of
24// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25// GNU General Public License for more details.
26//
27// You should have received a copy of the GNU General Public License
28// along with ECOGEN (file LICENSE).
29// If not, see <http://www.gnu.org/licenses/>.
30
31#ifndef OUTPUTPROBEGNU_H
32#define OUTPUTPROBEGNU_H
33
34#include "OutputGNU.h"
35#include "../Maths/GOLine.h"
36#include "../Maths/GOPlan.h"
37
40
42{
43public:
55 OutputProbeGNU(std::string casTest, std::string run, tinyxml2::XMLElement* element, std::string fileName, Input *entree);
56 virtual ~OutputProbeGNU();
57
58 virtual void locateProbeInMesh(const TypeMeshContainer<Cell*>& cells, const int& nbCells, bool localSeeking = false);
59 virtual Cell* locateProbeInAMRSubMesh(std::vector<Cell*>* cells, const int& nbCells);
60
61 virtual void initializeSpecificOutput();
62 virtual void writeResults(Mesh* /*mesh*/, std::vector<Cell*>* /*cellsLvl*/);
63
64 virtual void initializeOutputInfos() {}; //nothing to print
65 virtual void writeInfos() {};
66
67 //Accessors
68 virtual double getNextTime() { return m_nextAcq; };
69 virtual bool possesses() { return m_possessesProbe[rankCpu]; };
70
71private:
72 double m_acqFreq;
73 double m_nextAcq;
77};
78
79#endif //OUTPUTPROBEGNU_H
int rankCpu
Definition Parallel.cpp:36
std::vector< Type > TypeMeshContainer
Template for the type of the mesh container (std::list for now, but may change to something else if w...
Definition Tools.h:83
Base class for a mesh cell.
Definition Cell.h:59
Abstract class for geometric object.
Definition GeometricObject.h:41
Definition Input.h:55
Abstract class for a mesh.
Definition Mesh.h:53
Definition OutputGNU.h:36
Printing results for a probe in flow.
Definition OutputProbeGNU.h:42
Cell * m_cell
Pointer to the level 0 cell containing the probe.
Definition OutputProbeGNU.h:74
GeometricObject * m_objet
To store position.
Definition OutputProbeGNU.h:75
virtual void locateProbeInMesh(const TypeMeshContainer< Cell * > &cells, const int &nbCells, bool localSeeking=false)
Definition OutputProbeGNU.cpp:92
virtual void initializeOutputInfos()
Definition OutputProbeGNU.h:64
virtual double getNextTime()
Definition OutputProbeGNU.h:68
virtual void writeInfos()
Definition OutputProbeGNU.h:65
double m_acqFreq
Acquisition time frequency.
Definition OutputProbeGNU.h:72
virtual void initializeSpecificOutput()
Definition OutputProbeGNU.cpp:153
double m_nextAcq
Next acquisition time.
Definition OutputProbeGNU.h:73
virtual ~OutputProbeGNU()
Definition OutputProbeGNU.cpp:84
virtual bool possesses()
Definition OutputProbeGNU.h:69
virtual void writeResults(Mesh *, std::vector< Cell * > *)
Definition OutputProbeGNU.cpp:184
virtual Cell * locateProbeInAMRSubMesh(std::vector< Cell * > *cells, const int &nbCells)
Definition OutputProbeGNU.cpp:129
bool * m_possessesProbe
True if the CPU possesses probe.
Definition OutputProbeGNU.h:76
Definition tinyxml2.h:1149