ECOGEN 4.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
37
39{
40public:
41 OutputBoundaryFluxGNU(std::string casTest, std::string run, tinyxml2::XMLElement* element, std::string fileName, Input* entree);
42 virtual ~OutputBoundaryFluxGNU();
43
44 // Virtual methods
45 virtual void initializeSpecificOutputBound();
46 virtual void writeResults(std::vector<CellInterface*>* cellInterfacesLvl);
47
48protected:
50 double getFlux(std::vector<CellInterface*>* cellInterfacesLvl);
51
53 double extractMassflow(std::vector<CellInterface*>* cellInterfacesLvl);
54
56 double extractEnthalpyFlux(std::vector<CellInterface*>* cellInterfacesLvl);
57
60
63
66
68 double m_flux;
69};
70
71#endif // OUTPUTBOUNDARYFLUXGNU_H
FluxType
Definition OutputBoundaryFluxGNU.h:36
@ POWERFLUX
Definition OutputBoundaryFluxGNU.h:36
@ MASSFLOW
Definition OutputBoundaryFluxGNU.h:36
Definition CellInterface.h:52
Definition Input.h:55
Definition OutputBoundaryFluxGNU.h:39
virtual void writeResults(std::vector< CellInterface * > *cellInterfacesLvl)
Definition OutputBoundaryFluxGNU.cpp:205
virtual void initializeSpecificOutputBound()
Definition OutputBoundaryFluxGNU.cpp:60
double m_flux
Flux recorded through boundary either massflow (kg.s-1) or power flux (W)
Definition OutputBoundaryFluxGNU.h:68
FluxType m_fluxType
Flux type could be either massflow or power flux.
Definition OutputBoundaryFluxGNU.h:67
double computeTotalEnthalpyFluxFace(CellInterface *bound)
Compute the enthalpy flux contribution of a single cell interface.
Definition OutputBoundaryFluxGNU.cpp:164
double getFlux(std::vector< CellInterface * > *cellInterfacesLvl)
Get flux either massflow or enthalpy through the boundary.
Definition OutputBoundaryFluxGNU.cpp:83
double computeMassflowFace(CellInterface *bound)
Compute the massflow contribution of a single cell interface.
Definition OutputBoundaryFluxGNU.cpp:151
double computeTotalEnthalpyFluxFaceMRF(CellInterface *bound)
Compute the enthalpy flux contribution of a single cell interface when MRF is activated.
Definition OutputBoundaryFluxGNU.cpp:178
double extractMassflow(std::vector< CellInterface * > *cellInterfacesLvl)
Extract massflow throught the whole boundary surface.
Definition OutputBoundaryFluxGNU.cpp:98
virtual ~OutputBoundaryFluxGNU()
Definition OutputBoundaryFluxGNU.cpp:54
double extractEnthalpyFlux(std::vector< CellInterface * > *cellInterfacesLvl)
Extract enthalpy flux throught the whole boundary surface.
Definition OutputBoundaryFluxGNU.cpp:115
Definition OutputBoundaryGNU.h:37
Definition tinyxml2.h:1149