dune-spgrid

dune-spgrid

SPGrid is an efficient structured, parallel implementation of the DUNE grid interface.

Requires:
dune-grid
Python bindings:
yes
Maintainer: Martin Nolte
Git repository:
https://gitlab.dune-project.org/extensions/dune-spgrid

Dune-SPGrid

The DUNE module dune-spgrid provides a structured, parallel grid. Though the dune-grid module already contains the structured grid YaspGrid, it lacks important features (see below for details).

Features

The following table compares the features of SPGrid to those of SGrid and YaspGrid:

YaspGrid SPGrid
Can communicate on codimensions all all
Coordinate type is template parameter yes yes
Supports anisotropic refinement no yes
Supports periodic boundary conditions no1 yes
Supports non-blocking communication no yes

SPGrid supports different (global) refinement techniques, selected by a template parameter. Some refinement techniques allow an optional parameter, the refinement policy, to be passed to globalRefine. Currently, isotropic, anisotropic and bisection refinement are supported. If no policy is given, both, isotropic and anisotropic refinement, split each cube into 2^dim child cubes. For anisotropic refinement, a policy may be used to say which directions to split. Bisection refinement always split a cube into 2 child cubes; the split direction can be given by the policy. If no policy is given, the split directions are cycled through. By default, isotropic refinement is used.

Preprocessor Magic

SPGrid can be used through the preprocessor magic. The following table shows how to select different variants of SPGrid:

GRIDTYPE Refinement
SPGRID Default (Isotropic)
SPGRID_ISOTROPIC Isotropic
SPGRID_ANISOTROPIC Anisotropic
SPGRID_BISECTION Bisection

  1. YaspGrid supports a different concept of periodicity. ↩︎

Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 20, 23:25, 2024)