postgkyl.extract_flux_surface¶
- postgkyl.extract_flux_surface(data, *, fs_grid=None, mapc2p=None, nodes_file=None, x_idx=0, nphi=128, nz_interp=8, comp=0, inplace=False, tag=None, label=None)¶
Sample a field component on a toroidal surface.
- Parameters:
data – Three-dimensional field-aligned modal DG dataset.
fs_grid – Reusable Python grid from resolve_flux_surface_grid; omit to load geometry. Geometry and sampling options belong on its builder.
mapc2p – Explicit modal geometry path, or ‘’ for the inferred modal file.
nodes_file – Explicit interior-node geometry path; excludes mapc2p. Omit both paths to infer geometry from data.file_name.
x_idx – Radial index on the interpolated computational grid.
nphi – Number of toroidal-angle samples.
nz_interp – Positive parallel-direction up-sampling factor.
comp – Zero-based physical field component to extract.
inplace – Mutate and return data instead of creating a dataset.
tag – Optional result tag.
label – Optional result label.