Public Member Functions | List of all members
ConstantPrimitiveGenerator Class Reference

Class for creating computational cells of ghost points for free flow. More...

#include <ConstantPrimitiveGenerator.hpp>

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

Public Member Functions

 ConstantPrimitiveGenerator (ComputationalCell const &cell)
 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 computational cells of ghost points for free flow.

Author
Elad Steinberg

Definition at line 14 of file ConstantPrimitiveGenerator.hpp.

Constructor & Destructor Documentation

◆ ConstantPrimitiveGenerator()

ConstantPrimitiveGenerator::ConstantPrimitiveGenerator ( ComputationalCell const &  cell)
explicit

Class constructor.

Parameters
cellThe primitive variable to be set on the boundary

Definition at line 3 of file ConstantPrimitiveGenerator.cpp.

Member Function Documentation

◆ GetGhostGradient()

Slope ConstantPrimitiveGenerator::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 5 of file ConstantPrimitiveGenerator.cpp.

Here is the call graph for this function:

◆ operator()()

boost::container::flat_map< size_t, ComputationalCell > ConstantPrimitiveGenerator::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 22 of file ConstantPrimitiveGenerator.cpp.

Here is the call graph for this function:

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