Grids

Grids

RegularCartesianGrid

A Cartesian grid with regularly spaces cells and faces so that $Δx$, $Δy$, and $Δz$ are constants. Fields are stored using floating-point values of type T.

source
RegularCartesianGrid(metadata::ModelMetadata, N, L)

Create a regular Cartesian grid with size $N = (N_x, N_y, N_z)$ and domain size $L = (L_x, L_y, L_z)$ where fields are stored using floating-point values of type T.

Examples

julia> g = RegularCartesianGrid((16, 16, 8), (2π, 2π, 2π))
source