ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
CellO2NS.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 CELLO2NS_H
32#define CELLO2NS_H
33
34#include "CellO2.h"
35
36class CellO2NS : public CellO2
37{
38public:
39 CellO2NS();
40 virtual ~CellO2NS();
41
42 virtual void allocateSecondOrderBuffersAndGradientVectors(Phase** phases, Mixture* mixture);
43 virtual void allocate(const std::vector<AddPhys*>& addPhys);
44 virtual void computeGradientsO2();
45 virtual void limitGradientsO2(Limiter& globalLimiter);
46 virtual void computeLocalSlopes(CellInterface& cellInterfaceRef);
47
48 // For 2nd order with parallel
49 virtual GradPhase* getGradPhase(const int& phaseNumber) const;
50 virtual GradMixture* getGradMixture() const;
51 virtual GradTransport* getGradTransport(const int& transportNumber) const;
52 virtual void getBufferSlopes(double* /*buffer*/, int& /*counter*/, const int& /*lvl*/) { Errors::errorMessage("getBufferSlopes not available for CellO2NS"); };
53 virtual void fillBufferSlopes(double* buffer, int& counter, const int& /*lvl*/, const int& /*neighbour*/) const;
54
55protected:
59};
60
61extern Phase** buffPhasesMin;
62extern Phase** buffPhasesMax;
63extern Mixture* buffMixtureMin;
64extern Mixture* buffMixtureMax;
65extern double* buffTransportMin;
66extern double* buffTransportMax;
67
68#endif
double * buffTransportMin
Stores minimum transport from neighbors of a cell.
Definition CellO2NS.cpp:7
Phase ** buffPhasesMin
Stores minimum phases from neighbors of a cell.
Definition CellO2NS.cpp:3
Phase ** buffPhasesMax
Stores maximum phases from neighbors of a cell.
Definition CellO2NS.cpp:4
double * buffTransportMax
Stores maximum transport from neighbors of a cell.
Definition CellO2NS.cpp:8
Mixture * buffMixtureMax
Stores maximum mixture from neighbors of a cell.
Definition CellO2NS.cpp:6
Mixture * buffMixtureMin
Stores minimum mixture from neighbors of a cell.
Definition CellO2NS.cpp:5
Definition CellInterface.h:52
Definition CellO2NS.h:37
virtual void fillBufferSlopes(double *buffer, int &counter, const int &, const int &) const
Definition CellO2NS.cpp:229
virtual void allocateSecondOrderBuffersAndGradientVectors(Phase **phases, Mixture *mixture)
Compute global variable buffers (min, max, etc.) and initialize speficic gradient vectors for 2nd-ord...
Definition CellO2NS.cpp:32
virtual void allocate(const std::vector< AddPhys * > &addPhys)
Memory allocation of cell attributes.
Definition CellO2NS.cpp:59
virtual GradTransport * getGradTransport(const int &transportNumber) const
Definition CellO2NS.cpp:222
GradMixture * m_gradMixture
Definition CellO2NS.h:57
virtual GradPhase * getGradPhase(const int &phaseNumber) const
Definition CellO2NS.cpp:208
virtual void computeGradientsO2()
Compute gradients for 2nd-order scheme on unstructured mesh.
Definition CellO2NS.cpp:79
virtual ~CellO2NS()
Definition CellO2NS.cpp:18
virtual void getBufferSlopes(double *, int &, const int &)
Definition CellO2NS.h:52
GradTransport * m_gradTransport
Definition CellO2NS.h:58
CellO2NS()
Definition CellO2NS.cpp:12
GradPhase ** m_gradPhase
Definition CellO2NS.h:56
virtual void computeLocalSlopes(CellInterface &cellInterfaceRef)
Compute slopes for 2nd-order scheme on unstructured mesh.
Definition CellO2NS.cpp:190
virtual GradMixture * getGradMixture() const
Definition CellO2NS.cpp:215
virtual void limitGradientsO2(Limiter &globalLimiter)
Definition CellO2NS.cpp:93
Definition CellO2.h:38
static void errorMessage(const std::string &message)
Definition Errors.cpp:56
Mixture variable gradients. Stored for 2nd-order computation on unstructured mesh (O2 NS)
Definition GradMixture.h:45
Phase variable gradients. Stored for 2nd-order computation on unstructured mesh (O2 NS)
Definition GradPhase.h:44
Transport variable gradients. Stored for 2nd-order computation on unstructured mesh (O2 NS)
Definition GradTransport.h:43
Definition Limiter.h:38
Abstract class for mixture variables.
Definition Mixture.h:43
Abstract class for a phase.
Definition Phase.h:47