Skip to main content

Module fields

Module fields 

Source
Expand description

Uniform-grid scalar fields.

Minimal backfill of the Part 2 ScalarField2/ScalarField3 types that later roadmap phases build on: row-major storage with grid spacing and bilinear/trilinear sampling.

Structs§

ScalarField2
2D scalar field on an nx×ny uniform grid with spacing dx (row-major: index = y·nx + x; physical position of node (i, j) is (i·dx, j·dx)).
ScalarField3
3D scalar field on an nx×ny×nz uniform grid with spacing dx (index = (k·ny + j)·nx + i).