fields.base.DenseField.__init__#
- DenseField.__init__(grid: GridBase, component: FieldComponent)[source]#
Initialize a dense, single-component field on a structured grid.
- Parameters:
grid (
GridBase
) – The structured grid over which the field is defined. This provides coordinate access, chunking logic, and metric information needed for geometric operations.component (
FieldComponent
) – The sole field component representing the field data. This encapsulates the field buffer, axis metadata, and tensor rank, and is used for all internal computations.
Notes
This class is intended for dense fields—those with a single buffer representing either scalar, vector, or tensor values over the entire domain. Multi-component or symbolic fields should use the corresponding multi-component field classes.