Public Member Functions | List of all members
GhostPointGenerator Class Referenceabstract

Abstract class for creating ghost points. More...

#include <GhostPointGenerator.hpp>

Inheritance diagram for GhostPointGenerator:
Inheritance graph
[legend]

Public Member Functions

virtual boost::container::flat_map< size_t, ComputationalCelloperator() (const Tessellation &tess, const vector< ComputationalCell > &cells, double time, TracerStickerNames const &tracerstickernames) const =0
 Calculates the ghost points. More...
 
virtual Slope GetGhostGradient (const Tessellation &tess, const vector< ComputationalCell > &cells, const vector< Slope > &gradients, size_t ghost_index, double time, const Edge &edge, TracerStickerNames const &tracerstickernames) const =0
 Calculates the gradients for the ghost cells. More...
 
virtual ~GhostPointGenerator (void)
 Virtual destructor.
 
vector< std::pair< size_t, size_t > > GetOuterEdgesIndeces (Tessellation const &tess) const
 Finds the indeces of the outer edges points. More...
 

Detailed Description

Abstract class for creating ghost points.

Author
Elad Steinberg

Definition at line 16 of file GhostPointGenerator.hpp.

Member Function Documentation

◆ GetGhostGradient()

virtual Slope GhostPointGenerator::GetGhostGradient ( const Tessellation tess,
const vector< ComputationalCell > &  cells,
const vector< Slope > &  gradients,
size_t  ghost_index,
double  time,
const Edge edge,
TracerStickerNames const &  tracerstickernames 
) const
pure virtual

Calculates the gradients for the ghost cells.

Parameters
tessThe tessellation
cellsThe computational cells
gradientsThe gradients for the non-ghost cells
ghost_indexThe index of the ghost cell
timeThe time
edgeThe edge of the ghost cell
tracerstickernamesThe names of the tracers and stickers
Returns
The gradient of the ghost cell

Implemented in SeveralGhostGenerators, ConstantPrimitiveGenerator, NoGhostGenerator, PeriodicGhostGenerator, FreeFlowGenerator, and RigidWallGenerator.

Here is the caller graph for this function:

◆ GetOuterEdgesIndeces()

vector< std::pair< size_t, size_t > > GhostPointGenerator::GetOuterEdgesIndeces ( Tessellation const &  tess) const

Finds the indeces of the outer edges points.

Parameters
tessThe tessellation
Returns
The indeces of the outer edges and whether the ghost is the first neighbor (1) or the second (2)

Definition at line 18 of file GhostPointGenerator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()()

virtual boost::container::flat_map<size_t, ComputationalCell> GhostPointGenerator::operator() ( const Tessellation tess,
const vector< ComputationalCell > &  cells,
double  time,
TracerStickerNames const &  tracerstickernames 
) const
pure virtual

Calculates the ghost points.

Parameters
tessThe tessellation
cellsThe computational cells
timeThe time
tracerstickernamesThe names of the tracers and stickers
Returns
A map where the key is the index of the ghost cell and the value is its' comuptational cell

Implemented in SeveralGhostGenerators, ConstantPrimitiveGenerator, FreeFlowGenerator, NoGhostGenerator, PeriodicGhostGenerator, and RigidWallGenerator.


The documentation for this class was generated from the following files: