-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Geometry refactor for clarity and consistency.
1. Remove unnecessary usage of J = F/(BR) 2. Rename intermediate.RBPhi to intermediate.F 3. Make toroidal flux Phi the required "intermediate" geometry input, and define Phib, rho, rho_norm all with respect to Phi. Better since not all geometry codes provide rho directly 4. Reduce usage of rmax. Replace with Phi or Phib 5. Rename r and r_face to rho and rho_face throughout TORAX. "r" is a legacy from when only circular geometry was present, and geometric radius was the same as rho. It is clearer to just call everything rho (toroidal flux coordinate). (3) led to differences in rho and rho_norm for CHEASE geometry test cases due to rho now being derived from Phi, which is interpolated first onto the TORAX grid. For circular geometry there is no interpolation so no differences are seen. The differences led to rel errors of order 1e-3-1e-4 for all CHEASE cases. The references were updated. test_iterhybrid_rampup (and the run_simulation_test based on it) pass locally but needed coarser rel error (now 1e-6) to pass TAP tests. PiperOrigin-RevId: 657021031
- Loading branch information
Showing
54 changed files
with
351 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.