unpack.field takes a vector and produces a 2D array.

unpack.field(phi, nx, ny)

Arguments

phi

Tabulated function

nx

Number of grid cells in the x direction

ny

Number of grid cells in the y direction

Details

length(phi) must equal nx * ny.