fields#

Field representation and operations on geometric grids.

The fields module defines core abstractions for representing physical quantities— such as scalars, vectors, and tensors—on structured geometric grids within the Pymetric framework. The module supports the following:

  • Seamless support for fields in curvilinear and orthogonal coordinate systems

  • Rich support for arithmetic operations, broadcasting, and indexing

  • Automatic grid validation and component management

  • Integration with differential operators and coordinate transformations

This module is designed to be extensible for both dense and sparse field types, and integrates tightly with the grids and coordinates subsystems.

Modules

base

Base classes for geometric field representations.

buffers

Unified buffer system for backend-agnostic field storage in PyMetric.

components

Field component classes for structured geometric data.

mixins

Mixin operation classes for fields and components.

tensors

Tensor Fields.

utils

Utility module for field support.