gafusion / omas

Ordered Multidimensional Array Structure
http://gafusion.github.io/omas
MIT License
30 stars 14 forks source link

The E coils and F coils do not use same unit #267

Closed AreWeDreaming closed 8 months ago

AreWeDreaming commented 10 months ago

The E and F coils are combined when loading from the EFIT tree. However, the F coils have the turns multiplied with the current, which one could argue is an preexisting error in MDS+. This would be at least consistently wrong but the F-coils are combined with the E-coils in pf_current in constraints which are stored correctly. Following options:

torrinba commented 10 months ago

The second option would be the best in my opinion. The MDS+ organization used by different machines (if they even do) is not universal, so I would consider most of the EFIT mapping to be DIII-D specific. Some parts are the same for NSTX (and are used), but I would consider that an exception rather than the norm.

I also think leaving pf_current with different units/interpretations for different elements is confusing for any use case besides EFIT and does not follow the IMAS definition (pf_current specifies it should have the same size as pf_active.coil and pf_active.coil[:].current is defined as the measured current in a single turn).

My second choice would be the first option, which should be fine temporarily since this isn't being used anywhere yet.

github-actions[bot] commented 8 months ago

Stale pull request message