|
enum | { dimension = 3
} |
| Dimension of underlying grid.
|
|
enum | { mydimension = 3
} |
| Dimension of domain space of. More...
|
|
enum | { coorddimension = cdim
} |
| Dimension of range space of. More...
|
|
enum | { dimensionworld = 3
} |
| World dimension of underlying grid.
|
|
typedef double | ctype |
| Coordinate element type.
|
|
typedef FieldVector< ctype, mydimension > | LocalCoordinate |
| Domain type of. More...
|
|
typedef FieldVector< ctype, coorddimension > | GlobalCoordinate |
| Range type of. More...
|
|
typedef FieldMatrix< ctype, coorddimension, mydimension > | Jacobian |
| Type of Jacobian matrix.
|
|
typedef FieldMatrix< ctype, coorddimension, mydimension > | JacobianInverse |
| Type of inverse of Jacobian matrix.
|
|
typedef FieldMatrix< ctype, mydimension, coorddimension > | JacobianTransposed |
| Type of transposed Jacobian matrix.
|
|
typedef FieldMatrix< ctype, coorddimension, mydimension > | JacobianInverseTransposed |
| Type of the inverse of the transposed Jacobian matrix.
|
|
typedef Dune::Impl::FieldMatrixHelper< double > | MatrixHelperType |
|
|
| Geometry (const GlobalCoordinate &pos, ctype vol, const EntityVariable< cpgrid::Geometry< 0, 3 >, 3 > &allcorners, const int *corner_indices) |
| Construct from centroid, volume (1- and 0-moments) and corners. More...
|
|
| Geometry (const GlobalCoordinate &pos, ctype vol) |
| Construct from centroid and volume (1- and 0-moments). More...
|
|
| Geometry () |
| Default constructor, giving a non-valid geometry.
|
|
GlobalCoordinate | global (const LocalCoordinate &local_coord) const |
| Provide a trilinear mapping. More...
|
|
LocalCoordinate | local (const GlobalCoordinate &y) const |
| Mapping from the cell to the reference domain. More...
|
|
double | integrationElement (const LocalCoordinate &local_coord) const |
| Equal to \sqrt{\det{J^T J}} where J is the Jacobian. More...
|
|
GeometryType | type () const |
| Using the cube type for all entities now (cells and vertices), but we use the singular type for intersections.
|
|
int | corners () const |
| The number of corners of this convex polytope. More...
|
|
GlobalCoordinate | corner (int cor) const |
| The 8 corners of the hexahedral base cell.
|
|
ctype | volume () const |
| Cell volume.
|
|
void | set_volume (ctype volume) |
|
const GlobalCoordinate & | center () const |
| Returns the centroid of the geometry.
|
|
const JacobianTransposed | jacobianTransposed (const LocalCoordinate &local_coord) const |
| Jacobian transposed. More...
|
|
const JacobianInverseTransposed | jacobianInverseTransposed (const LocalCoordinate &local_coord) const |
| Inverse of Jacobian transposed. More...
|
|
Jacobian | jacobian (const LocalCoordinate &local_coord) const |
| The jacobian.
|
|
JacobianInverse | jacobianInverse (const LocalCoordinate &local_coord) const |
| The inverse of the jacobian.
|
|
bool | affine () const |
| The mapping implemented by this geometry is not generally affine.
|
|
std::vector< Geometry< 3, cdim > > | refine (const std::array< int, 3 > &cells_per_dim, std::vector< EntityVariable< Geometry< 0, 3 >, 3 >> &corner_storage, std::vector< std::array< int, 8 >> &indices_storage) |
| Refine a single cell with regular intervals. More...
|
|
template<int cdim>
class Dune::cpgrid::Geometry< 3, cdim >
Specialization for 3-dimensional geometries, i.e. cells.
Refine a single cell with regular intervals.
For each cell to be created, storage must be passed for its corners and the indices. That storage must be externally managed, since the newly created geometry structures only store pointers and do not free them on destruction.
- Parameters
-
cells_per_dim | The number of sub-cells in each direction. |
corner_storage | A vector of mutable references to storage for the corners of each new cell. |
indices_storage | A vector of mutable references to storage for the indices of each new cell. |
- Returns
- A vector with the created cells.
Refine a single cell with regular intervals.
- Parameters
-
cells | The number of sub-cells in each direction, |
corner_storage | A vector of mutable references to storage for the corners of each new cell. |
indices_storage | A vector of mutable references to storage for the indices of each new cell. |