You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have pushed commits in the branch 'develop'. Now FOCUS can follow fieldlines and calculate rotational transform for vacuum magnetic field produced by coils. Here are some instructions you might need.
1. How to use?
Set case_postproc = 3 and provide appropriate input arguments. Here is the list of parameters.
pp_phi = 0.000D+00 ! toroidal plane for poincare plots, cylindrical angle phi = pp_phi*Pi
pp_raxis = 0.000D+00 ! pp_raxis, pp_zaxis are initial guesses for magnetic axis at the specified toroidal angle
pp_zaxis = 0.000D+00 ! If both zero, FOCUS will take the geometric center as initial guess
pp_rmax = 0.000D+00 ! pp_rmax, pp_zmax are the upper bounds for performing fieldline tracing
pp_zmax = 0.000D+00 ! FOCUS will start follow fieldlines at interpolation between (pp_raxis, pp_zaxis) and (pp_rmax, pp_zmax)
pp_ns = 10 ! number of following fieldlines
pp_maxiter = 1000 ! number of periods for each fieldline following
pp_xtol = 1.000D-06 ! tolarence of ODE solver during fieldline fowllowing
By default, FOCUS will find the magnetic axis with an initial guess of [Ra,Za]=[R(0,phi) + R(Pi,phi))/2, R(0,phi) + R(Pi,phi))/2 ] at phi=0.0. Then interpolate pp_ns=10 points between [Ra, Za] and [Rmax, Zmax] (if both zero, will set to [R(0,phi), Z(0,phi)]). Afterwards, it will following the fieldlines for 'pp_maxiter' times and calculate the rotational transform.
The following is piece of screening output with settings of pp_ns = 50, pp_phi = 0.5, pp_rmax = 1.4.
Hi, I have pushed commits in the branch 'develop'. Now FOCUS can follow fieldlines and calculate rotational transform for vacuum magnetic field produced by coils. Here are some instructions you might need.
1. How to use?
Set
case_postproc = 3
and provide appropriate input arguments. Here is the list of parameters.By default, FOCUS will find the magnetic axis with an initial guess of
[Ra,Za]=[R(0,phi) + R(Pi,phi))/2, R(0,phi) + R(Pi,phi))/2 ]
atphi=0.0
. Then interpolatepp_ns=10
points between[Ra, Za]
and[Rmax, Zmax]
(if both zero, will set to[R(0,phi), Z(0,phi)]
). Afterwards, it will following the fieldlines for 'pp_maxiter' times and calculate the rotational transform.The following is piece of screening output with settings of
pp_ns = 50, pp_phi = 0.5, pp_rmax = 1.4
.2. Data processing
The calculated data are store in hdf5 file with the following variables.
Here is an example of plotting scripts using python (in my personal package
coilpy
).3. Misc.
I will merge this into
master
after testing. Any comments or suggestions are welcome.The text was updated successfully, but these errors were encountered: