Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dune-spgrid

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dune-spgrid

module providing a structured grid

  • 2.9.0
  • PyPI
  • Socket score

Maintainers
3

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:

YaspGridSPGrid
Can communicate on codimensionsallall
Coordinate type is template parameteryesyes
Supports anisotropic refinementnoyes
Supports periodic boundary conditionsno1yes
Supports non-blocking communicationnoyes
Supports tensor-product gridsyesno

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:

GRIDTYPERefinement
SPGRIDDefault (Isotropic)
SPGRID_SERIALDefault (Isotropic, no MPI)
SPGRID_ISOTROPICIsotropic
SPGRID_ISOTROPIC_SERIALIsotropic (no MPI)
SPGRID_ANISOTROPICAnisotropic
SPGRID_ANISOTROPIC_SERIALAnisotropic (no MPI)
SPGRID_BISECTIONBisection
SPGRID_BISECTION_SERIALBisection (no MPI)
SPGRID_COUNT_FLOPSuse Dune::Fem::Double as ctype

git-8f7e156e8bb68543e195e44a012bc8453e18ddac

Footnotes

  1. YaspGrid supports a different concept of periodicity.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc