beam-tracing / Scotty

Beam tracing code for diagnostics
https://scotty.readthedocs.io/en/latest/
GNU General Public License v3.0
8 stars 4 forks source link

Create carttest.py #98

Closed yvonneban closed 1 year ago

yvonneban commented 1 year ago

Methods to find B and bhat, as well as gradients, in Cartesian (X,Y,Z) coordinates, using class MagneticField

valerian-chen commented 1 year ago
  1. Your finite-difference gradients need to be divided by the step size
  2. I'd add some code to compare the Cartesian and cylindrical
valerian-chen commented 1 year ago

Looks fine, approving. However, I'd still like to see this code being applied