Skip to content

production

johnomotani edited this page May 10, 2021 · 1 revision

Reproducible grids for 'production' use

To make 'production' grids that are as accurate and reproducible as possible:

Note that these settings will tend to make grid generation slower, so should be used as a final step, after all other options (number of points, psi-ranges, etc.) have been set to suitable values.

To check the robustness of grid generation, you could try calling hypnotoad_geqdsk.main() with the add_noise argument (whose value is an int to use as the seed of a random number generator) to add machine-precision level noise, as is done in the *_with_rounding_error* integrated tests, see https://github.com/boutproject/hypnotoad/blob/master/integrated_tests/utils.py. This should result in a grid file with only very small differences from one produced without add_noise.

Clone this wiki locally