Skip to main content

No project description provided

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-0e5a3b234d885ac566c9622421ab4eab97c8a50e

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.8.0.post2.tar.gz (75.2 kB view details)

Uploaded Source

File details

Details for the file dune-spgrid-2.8.0.post2.tar.gz.

File metadata

  • Download URL: dune-spgrid-2.8.0.post2.tar.gz
  • Upload date:
  • Size: 75.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for dune-spgrid-2.8.0.post2.tar.gz
Algorithm Hash digest
SHA256 dacab6964e16006226ccefbb1c63426d447db4820cdd35417e56446e1ea26e1b
MD5 7d1b5e2f40db67e12ae77e28cbdb2442
BLAKE2b-256 433f6574a8ec58f72af8cb3fc44a1f103637ad2f0a26c61b4fd569c2e85cf6ad

See more details on using hashes here.

Supported by

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