ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
OutputBoundaryFluxGNU.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 OUTPUTBOUNDARYFLUXGNU_H
32#define OUTPUTBOUNDARYFLUXGNU_H
33
34#include "OutputBoundaryGNU.h"
35
41
43{
44 public:
45 OutputBoundaryFluxGNU(std::string casTest, std::string run, tinyxml2::XMLElement* element, std::string fileName, Input* entree);
46 ~OutputBoundaryFluxGNU() override;
47
48 // Virtual methods
49 void initializeSpecificOutputBound() override;
50 void writeResults(std::vector<CellInterface*>* cellInterfacesLvl) override;
51
52 protected:
54 double getFlux(std::vector<CellInterface*>* cellInterfacesLvl);
55
57 double extractMassflow(std::vector<CellInterface*>* cellInterfacesLvl);
58
60 double extractEnthalpyFlux(std::vector<CellInterface*>* cellInterfacesLvl);
61
64
67
70
72 double m_flux;
73};
74
75#endif // OUTPUTBOUNDARYFLUXGNU_H
FluxType
Definition OutputBoundaryFluxGNU.h:37
@ POWERFLUX
Definition OutputBoundaryFluxGNU.h:39
@ MASSFLOW
Definition OutputBoundaryFluxGNU.h:38
Definition CellInterface.h:48
Definition Input.h:55
double m_flux
Flux recorded through boundary either massflow (kg.s-1) or power flux (W).
Definition OutputBoundaryFluxGNU.h:72
FluxType m_fluxType
Flux type could be either massflow or power flux.
Definition OutputBoundaryFluxGNU.h:71
~OutputBoundaryFluxGNU() override
Definition OutputBoundaryFluxGNU.cpp:60
double computeTotalEnthalpyFluxFace(CellInterface *bound)
Compute the enthalpy flux contribution of a single cell interface.
Definition OutputBoundaryFluxGNU.cpp:171
void initializeSpecificOutputBound() override
Definition OutputBoundaryFluxGNU.cpp:64
double getFlux(std::vector< CellInterface * > *cellInterfacesLvl)
Get flux either massflow or enthalpy through the boundary.
Definition OutputBoundaryFluxGNU.cpp:91
void writeResults(std::vector< CellInterface * > *cellInterfacesLvl) override
Definition OutputBoundaryFluxGNU.cpp:206
double computeMassflowFace(CellInterface *bound)
Compute the massflow contribution of a single cell interface.
Definition OutputBoundaryFluxGNU.cpp:158
double computeTotalEnthalpyFluxFaceMRF(CellInterface *bound)
Compute the enthalpy flux contribution of a single cell interface when MRF is activated.
Definition OutputBoundaryFluxGNU.cpp:185
double extractMassflow(std::vector< CellInterface * > *cellInterfacesLvl)
Extract massflow throught the whole boundary surface.
Definition OutputBoundaryFluxGNU.cpp:106
double extractEnthalpyFlux(std::vector< CellInterface * > *cellInterfacesLvl)
Extract enthalpy flux throught the whole boundary surface.
Definition OutputBoundaryFluxGNU.cpp:123
OutputBoundaryFluxGNU(std::string casTest, std::string run, tinyxml2::XMLElement *element, std::string fileName, Input *entree)
Definition OutputBoundaryFluxGNU.cpp:35
OutputBoundaryGNU(std::string casTest, std::string run, tinyxml2::XMLElement *element, std::string fileName, Input *entree)
Definition OutputBoundaryGNU.cpp:36
Definition tinyxml2.h:1148