grids.mixins.mathops#
Grid operator mixins for differential geometry and field computations.
This module provides mixin classes that add high-level mathematical operations
to grid classes. These operations include gradient, divergence, Laplacian, and
tensor contractions, and are implemented as thin wrappers over lower-level
kernels from the differential_geometry
package.
The mixins handle tasks such as:
Automatically computing coordinate-based expressions from the grid’s coordinate system.
Performing operations in memory-efficient chunks using the grid’s chunking interface.
Broadcasting input fields and auxiliary buffers to the appropriate grid shape.
Managing metric and volume element dependencies implicitly.
These mixins are intended to be inherited by structured grid classes (e.g., UniformGrid
)
to provide a clean and consistent API for field-based differential operators.
Classes
Mixin class for dense differential geometry operations on structured grids. |