Skip to main content

module providing a structured grid

Project description

Dune-SPGrid

The DUNE module dune-spgrid provides a structured, parallel grid: SPGrid.

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 no[^1] yes
Supports non-blocking communication no yes
Supports tensor-product grids yes no

[^1]: YaspGrid supports a different concept of periodicity.

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, but this list can be extended by downstream modules. By default, isotropic refinement is used.

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 splits 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.

Note: SPGrid does not support tensor-product grids, as YaspGrid does. This feature can be added by a metagrid layer, if desired.

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_SERIAL Default (Isotropic, no MPI)
SPGRID_ISOTROPIC Isotropic
SPGRID_ISOTROPIC_SERIAL Isotropic (no MPI)
SPGRID_ANISOTROPIC Anisotropic
SPGRID_ANISOTROPIC_SERIAL Anisotropic (no MPI)
SPGRID_BISECTION Bisection
SPGRID_BISECTION_SERIAL Bisection (no MPI)
SPGRID_COUNT_FLOPS use Dune::Fem::Double as ctype

git-bbaab20fa4e08cf53a6af150f5f0026a4ac80eba

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dune_spgrid-2.11.dev20250929.tar.gz (79.4 kB view details)

Uploaded Source

File details

Details for the file dune_spgrid-2.11.dev20250929.tar.gz.

File metadata

  • Download URL: dune_spgrid-2.11.dev20250929.tar.gz
  • Upload date:
  • Size: 79.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dune_spgrid-2.11.dev20250929.tar.gz
Algorithm Hash digest
SHA256 6a29b6df5da7515d75a3f79af149e47f179a40cb9818c55e78b0e1acba85e928
MD5 9b1936379d5018a36f57ccaac887c0e1
BLAKE2b-256 e3d2cbbaa0b935a0213539e7a85d4335a3bdc172614471950ebb19c87aabbce2

See more details on using hashes here.

Provenance

The following attestation bundles were made for dune_spgrid-2.11.dev20250929.tar.gz:

Publisher: packaging.yml on adedner/dune-testpypi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page