Skip to content

Fix impurity density not being stored in SI units#3

Open
clarkindy wants to merge 1 commit intoiterorganization:developfrom
clarkindy:fix/#2/jeonm
Open

Fix impurity density not being stored in SI units#3
clarkindy wants to merge 1 commit intoiterorganization:developfrom
clarkindy:fix/#2/jeonm

Conversation

@clarkindy
Copy link

This commit fixes wrong conversions for the five impurity ion densities, so that they are stored and retrieved as #/m3 instead of 1e19/m3.

DINA GUI can load variables from DINA's *.dat input files and store them in the IDS format. However, while main ion density is correctly converted to SI units when it is stored in the IDS, impurity ion densities were not.

Although #2 mentions that there seems to be no treatment of tritium ion density, there is in fact code in dina_params_imas.f90 routine which converts and stores tritium ion density in SI units. It appears a few lines below the part treating deuterium ion density, where one would not normally expect it to be.

Users will need to run DINA GUI again and re-generate input IDSs if they want to replicate previous DINA-PS runs. DINA inputs in *.dat files does not have to be changed.

Closes: #2

This commit fixes wrong conversions for the five impurity ion densities,
so that they are stored and retrieved as #/m3 instead of 1e19/m3.

DINA GUI can load variables from DINA's *.dat input files and store them
in the IDS format. However, while main ion density is correctly
converted to SI units when it is stored in the IDS, impurity ion
densities were not.

Although iterorganization#2 mentions that there seems to be no treatment of tritium ion
density, there is in fact code in dina_params_imas.f90 routine which
converts and stores tritium ion density in SI units. It appears a few
lines below the part treating deuterium ion density, where one would not
normally expect it to be.

Users will need to run DINA GUI again and re-generate input IDSs if they
want to replicate previous DINA-PS runs. DINA inputs in *.dat files does
not have to be changed.

Closes: iterorganization#2
@ksunhee8 ksunhee8 requested a review from MaxDubrov February 6, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mismatch in the units of impurity densities

1 participant