Skip to content
Discussion options

You must be logged in to vote

Hi, I do have a prototype implementation (see below), but not published that yet properly. I might have a look if I can also pull together the tests. Be aware that this inverse coordinate transform needs serious testing, before it can be used in production.

In particular, the radial derivatives need proper regularization, because VMEC++ computes the flux surface geometry only on a discrete set of flux surfaces.

def evaluate_rz(rho_theta, r_cos, r_sin, z_cos, z_sin, modes):
  """Evaluate R(rho, theta) and Z(rho, theta) from Fourier coefficients.

  Args:
    rho_theta: Array of shape (n_points, 2) with (rho, theta) pairs
    r_cos: R^cos coefficients
    r_sin: R^sin coefficients
    z_cos…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mwiesenberger
Comment options

Answer selected by mwiesenberger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants