Skip to content

v1.0.2

Compare
Choose a tag to compare
@jcitrin jcitrin released this 05 Jun 11:23
· 415 commits to main since this release

What's Changed

Features

  • New 'combined' transport model for additive coefficients from an arbitrary number of transport models each with configurable radial domain
  • 'constant' transport model can now accept generally prescribed profile shapes (TimeVaryingArrays) at input
  • More outputs:
    • A_i, A_impurity
    • beta_tor, beta_pol, beta_N
    • integrated particle sources
    • Z_eff
  • Improved Pydantic validations of profile_conditions
    • Order-of-magnitude sanity checking for plasma current, densities, and temperatures
  • More informative logging if NaNs are discovered during the simulation

Cleanups / refactors

  • Internal CoreProfiles densities now in m^-3
  • Convertor utilities between scaled state vector x used in solver, and CoreProfiles attributes
  • Various docs cleanups and fixes

Bugfixes

  • Corrected spurious filtering of some geometry attributes from the output structure
  • ToraxConfig.update_fields now validates updated Pydantic objects after all keys are updated, instead of one at a time
  • W_thermal calculation now uses consistent integration method as sawtooth energy conservation, improving dW_thermal/dt consistency. NOTE: as part of this fix, pressure_thermal_e, pressure_thermal_i, pressure_thermal_total have internally become CellVariables and are now outputted on the extended cell grid, instead of the face grid.
  • Z_eff_face used in physics formulas are now self-consistently calculated from CoreProfiles, instead of using a less consistent interpolation from the input Z_eff profile