Public Member Functions | List of all members
SeveralGhostGenerators Class Reference

Class for creating computationalcells of ghost points from several different methods. More...

#include <SeveralGhostGenerators.hpp>

Inheritance diagram for SeveralGhostGenerators:
Inheritance graph
[legend]
Collaboration diagram for SeveralGhostGenerators:
Collaboration graph
[legend]

Public Member Functions

 SeveralGhostGenerators (vector< GhostPointGenerator *> ghosts, GhostCriteria const &ghostchooser)
 Class constructor. More...
 
boost::container::flat_map< size_t, ComputationalCelloperator() (const Tessellation &tess, const vector< ComputationalCell > &cells, double time, TracerStickerNames const &tracerstickernames) const
 Calculates the ghost points. More...
 
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
 Calculates the gradients for the ghost cells. More...
 
- Public Member Functions inherited from GhostPointGenerator
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

Class for creating computationalcells of ghost points from several different methods.

Author
Elad Steinberg

Definition at line 31 of file SeveralGhostGenerators.hpp.

Constructor & Destructor Documentation

◆ SeveralGhostGenerators()

SeveralGhostGenerators::SeveralGhostGenerators ( vector< GhostPointGenerator *>  ghosts,
GhostCriteria const &  ghostchooser 
)

Class constructor.

Parameters
ghostsList of ghost generators
ghostchooserCriteria for when to use each ghost generator

Definition at line 7 of file SeveralGhostGenerators.cpp.

Member Function Documentation

◆ GetGhostGradient()

Slope SeveralGhostGenerators::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
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

Implements GhostPointGenerator.

Definition at line 28 of file SeveralGhostGenerators.cpp.

Here is the call graph for this function:

◆ operator()()

boost::container::flat_map< size_t, ComputationalCell > SeveralGhostGenerators::operator() ( const Tessellation tess,
const vector< ComputationalCell > &  cells,
double  time,
TracerStickerNames const &  tracerstickernames 
) const
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

Implements GhostPointGenerator.

Definition at line 11 of file SeveralGhostGenerators.cpp.

Here is the call graph for this function:

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