Skip to content

Field modules

Abstract field module

Abstract base class for fields defined on meshes.

This module defines the AbstractField interface that scalar and vector fields implement. It provides shared functionality for basis construction, file I/O, and HTML representation.

Scalar field module

Concrete implementation of a scalar field on a mesh.

A ScalarField associates a scalar value with each degree of freedom of the filed. Values can be set uniformly, from arrays, or from functions evaluated at DOF coordinates.

Vector field module

Concrete implementation of a vector field on a mesh.

A VectorField associates a 3-component vector with each degree of freedom of the field. Values can be set from arrays or functions evaluated at DOF coordinates.