|
| | _cocos_params (cocos_index) |
| | Return COCOS sign/exponent parameters for a given COCOS index.
|
| | _crop_at_xpoint (seg, R0, Z0) |
| | Crop an open separatrix contour at the X-point to produce a closed LCFS.
|
| | _detect_xpoint_angle (R, Z, R0, Z0) |
| | Detect the X-point angle on a separatrix contour.
|
| | _flux_geometry (R, Z) |
| | Compute geometric properties of a single flux-surface contour.
|
| | _read_geqdsk (filename) |
| | Parse a GEQDSK (g-file) into a plain dict.
|
| | _read_pfile (filename) |
| | Parse an Osborne p-file into an OrderedDict.
|
| | _resample_contour (R, Z, npts=257, periodic=True) |
| | Resample a closed contour to npts equally-spaced-in-arc-length points.
|
| | _resample_contour_theta (R, Z, R0, Z0, npts=257, theta_xpt=None) |
| | Resample a closed contour to npts equally-spaced-in-angle points.
|
| | _select_main_contour (segments, R0, Z0, sigma_RpZ, sigma_rhotp) |
| | Select the main closed contour encircling the magnetic axis.
|
| | _trace_contours (R, Z, PSI, levels) |
| | Extract contour lines of \(\psi\) at given levels using contourpy.
|
| | _write_fortran_block (stream, values) |
| | Write values in standard GEQDSK format (5 per line, 16 chars each).
|
| | _write_geqdsk_to_stream (g, stream) |
| | Serialise a raw g-file dict g to an open text stream.
|
| | _write_pfile (profiles, filename) |
| | Write an OrderedDict of profiles to an Osborne p-file.
|
| | read_geqdsk (filename, cocos=1, nlevels=None, resample="theta", extrapolate_edge=True) |
| | Read a GEQDSK file and return a GEQDSKEquilibrium object.
|
| | read_pfile (filename) |
| | Read an Osborne p-file and return a PFile object.
|
| | write_geqdsk (g, filename) |
| | Write a raw g-file dict to filename.
|