You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix EQDSK geometry coupling and add a new ITER hybrid test case.
New ITERhybrid EQDSK file generated from CHEASE data. Good comparison with the
simulation using CHEASE geometry.
Summary of fixes:
1. vpr definition bug leading to major impact on plasma volume
2. Avoiding LCFS flux-surface-integral issues for diverted cases by taking the last contour just inside the LCFS.
3. Rmaj taken now as Rgeo (LCFS Rmaj), and local Rmaj and Rmin used for delta (triangularity) calculations
4. StandardGeometryIntermediate values at the magnetic axis are prescribed, since a contour cannot be defined there.
The number of surfaces to calculate, and the location of the LCFS contour with respect to the boundary psi, are user-inputs, with reasonable defaults set but need to be checked against more varied sets of EQDSK files.
The EQDSK converter has only been tested against CHEASE-generated EQDSK which is at a specific COCOS. Therefore issues may arise if the input EQDSK is in a different COCOS. In near-future work we should demand that the EQDSK COCOS is an input, and we use the eqdsk convertor to convert to the TORAX COCOS, which itself also needs to be made fully self-consistent in a future PR.
This important caveat is mentioned in the documentation, as well as a user-warning when running TORAX with EQDSK geometry.
PiperOrigin-RevId: 697621831
Only used for ``geometry_type='chease'``. Sets the geometry file loaded.
412
-
The geometry directory is set with the ``TORAX_GEOMETRY_DIR`` environment variable. If none is set, then the default is ``torax/data/third_party/geo``.
414
+
Geometry dicts for all geometry types can contain the following additional keys.
413
415
414
-
``LY_file`` (str = None)
415
-
Only used for ``geometry_type='fbt'``. Sets a single-slice FBT LY geometry file to be loaded.
416
+
``nrho`` (int = 25)
417
+
Number of radial grid points
416
418
417
-
``LY_bundle_file`` (str = None)
418
-
Only used for ``geometry_type='fbt'``. Sets the FBT LY bundle file to be loaded, corresponding to multiple time-slices.
419
+
``hi_res_fac`` (int = 4)
420
+
Only used when the initial condition ``psi`` is from plasma current. Sets up a higher resolution mesh
421
+
with ``nrho_hires = nrho * hi_res_fac``, used for ``j`` to ``psi`` conversions.
419
422
420
-
``LY_to_torax_times`` (ndarray = None)
421
-
Only used for ``geometry_type='fbt'``. Sets the TORAX simulation times corresponding to the individual slices in the
422
-
FBT LY bundle file. If not provided, then the times are taken from the LY_bundle_file itself. The length of the array
423
-
must match the number of slices in the bundle.
423
+
Geometry dicts for all non-circular geometry types can contain the following additional keys.
424
424
425
-
``L_file`` (str = None)
426
-
Only used for ``geometry_type='fbt'``. Sets the FBT L geometry file loaded.
Required for all geometry types except ``'circular'``. Sets the geometry file loaded.
427
+
The geometry directory is set with the ``TORAX_GEOMETRY_DIR`` environment variable. If none is set, then the default is ``torax/data/third_party/geo``.
0 commit comments