A curvilinear grid in nD, with some dimensions set to wrap Assume first point in a dimension equals the last point in that dimension.
More...
#include <periodicgrid.h>
|
| PeriodicGrid (GridPrimitive gridDimension, const std::vector< ind > &numCellsPerDim, const std::vector< bool > &isDimPeriodic) |
| Create an nD grid. More...
|
|
virtual ind | getNumCellsInDimension (ind dim) const override |
|
bool | isPeriodic (ind dim) const |
|
void | setPeriodic (ind dim, bool periodic=true) |
|
virtual void | getConnections (std::vector< ind > &result, ind index, GridPrimitive from, GridPrimitive to, bool isPosition=false) const override |
| Get the map from one element to another E.g. cell to its vertices, vertex to its neighbors, vertex to connected faces. More...
|
|
| StructuredGrid (GridPrimitive gridDimension, const std::vector< ind > &numCellsPerDim) |
| Create an nD grid. More...
|
|
void | getNumCells (std::vector< ind > &result) const |
|
virtual CellType | getCellType (GridPrimitive dim, ind index) const override |
| Get the cell type (i.e. triangle, quad...; tetrahedron, voxel...) More...
|
|
| Connectivity (GridPrimitive gridDimension) |
|
GridPrimitive | getDimension () const |
| Returns the maximal dimension of the grid.
|
|
virtual ind | getNumElements (GridPrimitive elementType) const |
| Return the number of elements of the given type. More...
|
|
ElementRange | all (GridPrimitive dim) const |
| Range of all elements to iterate over. More...
|
|
virtual CellType | getCellType (ElementIterator &element) const |
| Get the cell type (i.e. triangle, quad...; tetrahedron, voxel...) More...
|
|
|
void | sameLevelConnection (std::vector< ind > &result, ind idxLin, const std::vector< ind > &size) const |
|
|
std::vector< bool > | isDimPeriodic_ |
|
std::vector< ind > | numCellsPerDimension_ |
|
GridPrimitive | gridDimension_ |
| Highest dimension of GridPrimitives.
|
|
std::vector< ind > | numGridPrimitives_ |
| Saves the known number of primitves.
|
|
|
static void | sameLevelConnection (std::vector< ind > &result, ind idxLin, const std::vector< ind > &size) |
|
static std::vector< ind > | indexFromLinear (ind idxLin, const std::vector< ind > &size) |
|
A curvilinear grid in nD, with some dimensions set to wrap Assume first point in a dimension equals the last point in that dimension.
- Author
- Anke Friederici and Tino Weinkauf
◆ PeriodicGrid()
inviwo::discretedata::PeriodicGrid::PeriodicGrid |
( |
GridPrimitive |
gridDimension, |
|
|
const std::vector< ind > & |
numCellsPerDim, |
|
|
const std::vector< bool > & |
isDimPeriodic |
|
) |
| |
Create an nD grid.
- Parameters
-
gridDimension | Dimension of grid (not vertices) |
numCellsPerDim | Number of cells in each dimension, expect size gridDimension+1 |
◆ getConnections()
void inviwo::discretedata::PeriodicGrid::getConnections |
( |
std::vector< ind > & |
result, |
|
|
ind |
index, |
|
|
GridPrimitive |
from, |
|
|
GridPrimitive |
to, |
|
|
bool |
isPosition = false |
|
) |
| const |
|
overridevirtual |
Get the map from one element to another E.g. cell to its vertices, vertex to its neighbors, vertex to connected faces.
- Parameters
-
result | All connected indices in dimension 'to' |
index | Index of element in dimension 'from' |
from | Dimension the index lives in |
to | Dimension the result lives in |
isPosition | |
Reimplemented from inviwo::discretedata::StructuredGrid.
The documentation for this class was generated from the following files:
- periodicgrid.h
- periodicgrid.cpp