Skip to content

Commit

Permalink
Update default isotope mix to 50-50 DT with correct masses.
Browse files Browse the repository at this point in the history
Minor modifications to test cases. Relative differences are O(1e-4) level.

Precursor to refactor setting Ai, Aimp based on constants.ION_PROPERTIES. The refactor should now pass the tests.

PiperOrigin-RevId: 713340227
  • Loading branch information
jcitrin authored and Torax team committed Jan 8, 2025
1 parent f27552c commit a54a177
Show file tree
Hide file tree
Showing 50 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion torax/config/plasma_composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PlasmaComposition(
"""Configuration for the plasma composition."""

# amu of main ion (if multiple isotope, make average)
Ai: float = 2.5
Ai: float = 2.51505
# charge of main ion
Zi: float = 1.0
# needed for qlknn and fusion power
Expand Down
Binary file modified torax/tests/test_data/test_all_transport_crank_nicolson.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_all_transport_fusion_qlknn.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_bohmgyrobohm_all.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_bootstrap.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_bremsstrahlung.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_bremsstrahlung_time_dependent_Zimp.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_cgmheat.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_changing_config_after.nc
Binary file not shown.
2 changes: 1 addition & 1 deletion torax/tests/test_data/test_changing_config_after.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'runtime_params': {
'plasma_composition': {
# physical inputs
'Ai': 2.5, # amu of main ion (if multiple isotope, make average)
'Ai': 2.51505, # amu of main ion (bundled isotope average)
'Zeff': 1.8, # needed for qlknn and fusion power
# effective impurity charge state assumed for matching
# dilution=0.862.
Expand Down
Binary file modified torax/tests/test_data/test_changing_config_before.nc
Binary file not shown.
2 changes: 1 addition & 1 deletion torax/tests/test_data/test_changing_config_before.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'runtime_params': {
'plasma_composition': {
# physical inputs
'Ai': 2.5, # amu of main ion (if multiple isotope, make average)
'Ai': 2.51505, # amu of main ion (bundled isotope average)
'Zeff': 1.6, # needed for qlknn and fusion power
# effective impurity charge state assumed for matching
# dilution=0.862.
Expand Down
Binary file modified torax/tests/test_data/test_fixed_dt.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_fusion_power.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_iterbaseline_mockup.nc
Binary file not shown.
2 changes: 1 addition & 1 deletion torax/tests/test_data/test_iterbaseline_mockup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'runtime_params': {
'plasma_composition': {
# physical inputs
'Ai': 2.5, # amu of main ion (if multiple isotope, make average)
'Ai': 2.51505, # amu of main ion (bundled isotope average)
'Zeff': 1.74, # needed for qlknn and fusion power
# effective impurity charge state assumed for matching
# dilution=0.862
Expand Down
Binary file modified torax/tests/test_data/test_iterhybrid_mockup.nc
Binary file not shown.
2 changes: 1 addition & 1 deletion torax/tests/test_data/test_iterhybrid_mockup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'runtime_params': {
'plasma_composition': {
# physical inputs
'Ai': 2.5, # amu of main ion (if multiple isotope, make average)
'Ai': 2.51505, # amu of main ion (bundled isotope average)
'Zeff': 1.6, # needed for qlknn and fusion power
# effective impurity charge state assumed for matching
# dilution=0.862.
Expand Down
Binary file modified torax/tests/test_data/test_iterhybrid_newton.nc
Binary file not shown.
2 changes: 1 addition & 1 deletion torax/tests/test_data/test_iterhybrid_newton.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'runtime_params': {
'plasma_composition': {
# physical inputs
'Ai': 2.5, # amu of main ion (if multiple isotope, make average)
'Ai': 2.51505, # amu of main ion (bundled isotope average)
'Zeff': 1.6, # needed for qlknn and fusion power
# effective impurity charge state assumed for matching
# dilution=0.862.
Expand Down
Binary file modified torax/tests/test_data/test_iterhybrid_predictor_corrector.nc
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'runtime_params': {
'plasma_composition': {
# physical inputs
'Ai': 2.5, # amu of main ion (if multiple isotope, make average)
'Ai': 2.51505, # amu of main ion (bundled isotope average)
'Zeff': 1.6, # needed for qlknn and fusion power
# effective impurity charge state assumed for matching
# dilution=0.862.
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'runtime_params': {
'plasma_composition': {
# physical inputs
'Ai': 2.5, # amu of main ion (if multiple isotope, make average)
'Ai': 2.51505, # amu of main ion (bundled isotope average)
'Zeff': 1.6, # needed for qlknn and fusion power
# effective impurity charge state assumed for matching
# dilution=0.862.
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified torax/tests/test_data/test_iterhybrid_rampup.nc
Binary file not shown.
2 changes: 1 addition & 1 deletion torax/tests/test_data/test_iterhybrid_rampup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'runtime_params': {
'plasma_composition': {
# physical inputs
'Ai': 2.5, # amu of main ion (if multiple isotope, make average)
'Ai': 2.51505, # amu of main ion (bundled isotope average)
'Zeff': 1.6, # needed for qlknn and fusion power
# effective impurity charge state assumed for matching
# dilution=0.862.
Expand Down
2 changes: 1 addition & 1 deletion torax/tests/test_data/test_iterhybrid_rampup_short.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
'runtime_params': {
'plasma_composition': {
# physical inputs
'Ai': 2.5, # amu of main ion (if multiple isotope, make average)
'Ai': 2.51505, # amu of main ion (bundled isotope average)
'Zeff': 1.6, # needed for qlknn and fusion power
# effective impurity charge state assumed for matching
# dilution=0.862.
Expand Down
Binary file modified torax/tests/test_data/test_ne_qlknn_deff_veff.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_ne_qlknn_defromchie.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_ohmic_power.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_particle_sources_cgm.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_particle_sources_constant.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_pc_method_ne.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_pedestal.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_prescribed_generic_current_source.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_prescribed_timedependent_ne.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_psi_and_heat.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_psi_heat_dens.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_qei.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_qei_chease_highdens.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_qlknnheat.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_semiimplicit_convection.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_time_dependent_circular_geo.nc
Binary file not shown.
Binary file modified torax/tests/test_data/test_timedependence.nc
Binary file not shown.

0 comments on commit a54a177

Please sign in to comment.