Skip to content

Commit

Permalink
Quick bug fix: Store avg ion temp in t_i_average
Browse files Browse the repository at this point in the history
We were storing the average ion temperature in ion[1].temperature but
in IMAS there is a dedicated field for this, t_i_average. This commit
fixes this.
  • Loading branch information
anchal-physics committed Apr 4, 2024
1 parent e852997 commit ff8a119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solps_var_to_imas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
na: ["ion[:].density[:].values", 5]
ua: ["ion[:].velocity[:].parallel", 5]
te: ["electrons.temperature[:].values", 5]
ti: ["ion[1].temperature[:].values", 5] # atom(ion) temperature is averaged over all species, so only store in 1st index
ti: ["t_i_average[:].values", 5] # atom(ion) temperature is averaged over all species, so only store in t_i_average
po: ["phi_potential[:].values", 5]

# --------
Expand Down Expand Up @@ -44,4 +44,4 @@ pe: ["electrons.pressure[:].values", 5]
# Page 391
ne2d: ["electrons.density[:].values", 5]
te2d: ["electrons.temperature[:].values", 5]
ti2d: ["ion[1].temperature[:].values", 5] # atom(ion) temperature is averaged over all species, so only store in 1st index
ti2d: ["t_i_average[:].values", 5] # atom(ion) temperature is averaged over all species, so only store in t_i_average

0 comments on commit ff8a119

Please sign in to comment.