fields.base#

Base classes for geometric field representations.

base provides the core classes defining the behavior of all geometric fields in Pymetric. This includes the base class _FieldBase and its two descendants DenseField and SparseField.

For must use-cases, only the dense and sparse fields are used.

Warning

Support for sparse fields is not yet fully implemented.

Classes

DenseField(grid, component)

Concrete field class for dense, single-component data on structured grids.

SparseField(*args, **kwargs)

Field class for sparse, multi-component representations on structured grids.