![]() |
DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
|
Cell concept is at the heart of the finite volume discretization. Usage: Reconstruction procedure based on MUSCL (UL,UR at each face) MusclReconstruction w_muscl(); w_muscl.reconstr(GlobalDisretization aGDiscr); // based on cell face global Id retrieve a cell to perform some operation std::map<unsigned shortglobal cell face Id,fluxpairFL,FR> w_fluxFace; list<cell> w_listOfCell; for(Cell w_cell : w_listOfCell) { Create a flux algorithm FluxAlgorithm w_fluxAlgo;. More...
#include <dbpp_Cell.h>
Public Member Functions | |
Cell (short aCellIndex, short aNodeIndex) | |
Ctor from cell index and node nodex. | |
Cell (short aCellIndex, short aNodeIndex, const cellFace &aLeftFace, const cellFace &aRightFace) | |
Ctor from cell index and node nodex and left/right face. | |
void | setCellPair (const std::pair< cellFace, cellFace > &aPairFaces) |
Intitialize from pair of cell faces. | |
pairofface | getPairFaces () const noexcept |
Getter. | |
cellFace | getLeftFace () const noexcept |
Getter. | |
cellFace | getRightFace () const noexcept |
Getter. | |
void | setLeftFace (const cellFace &aCellF) noexcept |
Set cell left face. | |
void | setRightFace (const cellFace &aCellF) noexcept |
Set cell right face. | |
void | setCellNo (unsigned short aCellNo) noexcept |
Set cell index. | |
void | setNodeNo (unsigned short aNodeNo) noexcept |
Set node index. | |
unsigned | cellNo () const noexcept |
Getter. | |
unsigned | nodeNo () const noexcept |
Getter. | |
auto | operator<=> (const Cell &aOther) const =default |
spaceship operator comparison operator == and != defauted | |
void | printCell (std::iostream &aStream) |
print cell information |
Private Types | |
using | pairofface = std::pair<cellFace, cellFace> |
Alias (pair of cell face) |
Private Attributes | |
short | m_cellIndex |
short | m_nodalIndex |
cellFace | m_leftFace |
cellFace | m_rightFace |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Cell &aCell2Print) |
Stream operator. |
Cell concept is at the heart of the finite volume discretization. Usage: Reconstruction procedure based on MUSCL (UL,UR at each face) MusclReconstruction w_muscl(); w_muscl.reconstr(GlobalDisretization aGDiscr); // based on cell face global Id retrieve a cell to perform some operation std::map<unsigned shortglobal cell face Id,fluxpairFL,FR> w_fluxFace; list<cell> w_listOfCell; for(Cell w_cell : w_listOfCell) { Create a flux algorithm FluxAlgorithm w_fluxAlgo;.
// solve a Riemann problem at cell face w_fluxAlgo.setLeftFace( w_muscl.getLeftState( w_cell.getLeftFace().getCellFaceI())); //UL w_fluxAlgo.setRightFace( w_muscl.getRightState( w_cell.getRightFace().getCellFaceI())); //UR
std::pair<double FL,double FR > w_leftFaceFlux = w_fluxAlgo.calculFF(w_cell.getLeftFace());
std::pair<double FL,double FR> w_rightFaceFlux = w_fluxAlgo.calculFF(w_cell.getRightFace());
|
private |
Alias (pair of cell face)
dbpp::Cell::Cell | ( | short | aCellIndex, |
short | aNodeIndex ) |
Ctor from cell index and node nodex.
aCellIndex | cell index |
aNodeIndex | node index |
dbpp::Cell::Cell | ( | short | aCellIndex, |
short | aNodeIndex, | ||
const cellFace & | aLeftFace, | ||
const cellFace & | aRightFace ) |
Ctor from cell index and node nodex and left/right face.
aCellIndex | cell index |
aNodeIndex | node index |
aLeftFace | cell left face |
aRightFace | cell right face |
|
inlinenoexcept |
Getter.
|
inlinenoexcept |
Getter.
|
inlinenoexcept |
Getter.
|
inlinenoexcept |
Getter.
|
inlinenoexcept |
Getter.
|
default |
spaceship operator comparison operator == and != defauted
aOther | other object to compare with |
|
inline |
print cell information
aStream | stream operator |
|
inlinenoexcept |
Set cell index.
aCellNo | cell index |
Intitialize from pair of cell faces.
aPairFaces | pair cell faces |
|
inlinenoexcept |
Set cell left face.
aCellF | cell face |
|
inlinenoexcept |
Set node index.
aNodeNo | node index |
|
inlinenoexcept |
Set cell right face.
aCellF | cell face |
|
friend |
Stream operator.
os | stream operator |
aCell2Print | cell |
|
private |
cell index
|
private |
cell left face
|
private |
node index
|
private |
cell right face