ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
CellO2GhostCartesian.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 CELLO2GHOSTCARTESIAN_H
32#define CELLO2GHOSTCARTESIAN_H
33
34#include "CellO2Cartesian.h"
35
36class CellInterface;
37
39{
40 public:
42 CellO2GhostCartesian(int lvl); //Pour AMR
43 ~CellO2GhostCartesian() override;
44
45 virtual void deleteSlopes(int s);
46 void pushBackSlope() override;
47 void popBackSlope() override;
48 void allocate(const std::vector<AddPhys*>& addPhys) override;
49 int getRankOfNeighborCPU() const override;
50 void setRankOfNeighborCPU(int rank) override;
51
52 void computeLocalSlopes(CellInterface& cellInterfaceRef,
53 Limiter& globalLimiter,
54 Limiter& interfaceLimiter,
55 Limiter& globalVolumeFractionLimiter,
56 Limiter& interfaceVolumeFractionLimiter,
57 double& alphaCellAfterOppositeSide,
58 double& alphaCell,
59 double& alphaCellOtherInterfaceSide,
60 double& epsInterface) override;
61 void createChildCell(const int& lvl) override;
62 void getBufferSlopes(double* buffer, int& counter, const int& lvl) override;
63 bool isCellGhost() const override { return true; };
64
65 protected:
67 std::vector<int> m_indexCellInterface;
68 std::vector<Phase**> m_vecPhasesSlopesGhost;
69 std::vector<Mixture*> m_mixtureSlopesGhost;
70 std::vector<double*> m_vecTransportsSlopesGhost;
71 std::vector<double> m_alphaCellAfterOppositeSide;
72
73 private:
74};
75
76#endif // CELLO2GHOSTCARTESIAN_H
Definition CellInterface.h:48
CellO2Cartesian()
Definition CellO2Cartesian.cpp:6
void createChildCell(const int &lvl) override
Definition CellO2GhostCartesian.cpp:282
void pushBackSlope() override
Definition CellO2GhostCartesian.cpp:69
bool isCellGhost() const override
Definition CellO2GhostCartesian.h:63
std::vector< Phase ** > m_vecPhasesSlopesGhost
Definition CellO2GhostCartesian.h:68
void getBufferSlopes(double *buffer, int &counter, const int &lvl) override
Definition CellO2GhostCartesian.cpp:291
void computeLocalSlopes(CellInterface &cellInterfaceRef, Limiter &globalLimiter, Limiter &interfaceLimiter, Limiter &globalVolumeFractionLimiter, Limiter &interfaceVolumeFractionLimiter, double &alphaCellAfterOppositeSide, double &alphaCell, double &alphaCellOtherInterfaceSide, double &epsInterface) override
Definition CellO2GhostCartesian.cpp:128
int m_rankOfNeighborCPU
Definition CellO2GhostCartesian.h:66
~CellO2GhostCartesian() override
Definition CellO2GhostCartesian.cpp:48
int getRankOfNeighborCPU() const override
Definition CellO2GhostCartesian.cpp:120
void setRankOfNeighborCPU(int rank) override
Definition CellO2GhostCartesian.cpp:124
std::vector< double > m_alphaCellAfterOppositeSide
Definition CellO2GhostCartesian.h:71
std::vector< double * > m_vecTransportsSlopesGhost
Definition CellO2GhostCartesian.h:70
virtual void deleteSlopes(int s)
Definition CellO2GhostCartesian.cpp:57
std::vector< Mixture * > m_mixtureSlopesGhost
Definition CellO2GhostCartesian.h:69
CellO2GhostCartesian()
Definition CellO2GhostCartesian.cpp:36
void allocate(const std::vector< AddPhys * > &addPhys) override
Memory allocation of cell attributes.
Definition CellO2GhostCartesian.cpp:94
void popBackSlope() override
Definition CellO2GhostCartesian.cpp:80
std::vector< int > m_indexCellInterface
Definition CellO2GhostCartesian.h:67
Definition Limiter.h:38