Take the surface in test_compute_everything and add rho=0.8 to the constructor. FourierRZToroidalSurface(**elliptic_cross_section_with_torsion, rho=0.8). Then the grid only has rho =0.8 nodes and A(z) is computed as zero. I think the fix is to compute this like we do perimeter(z); fix_surface to the rho value of the surface and then divide by that rho value to get an approximation, but I'll take a closer look tomorrow.
Take the surface in
test_compute_everything
and add rho=0.8 to the constructor.FourierRZToroidalSurface(**elliptic_cross_section_with_torsion, rho=0.8)
. Then the grid only has rho =0.8 nodes and A(z) is computed as zero. I think the fix is to compute this like we doperimeter(z)
; fix_surface to the rho value of the surface and then divide by that rho value to get an approximation, but I'll take a closer look tomorrow._Originally posted by @unalmis in https://github.com/PlasmaControl/DESC/pull/1024#discussion_r1656635137_