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
Parameterised, analytic equilibria can be created following the recipe in [Cerfon&Freidberg (2010)]. There is already a Python implementation https://github.com/johnomotani/CerfonFreidbergGeometry (although it could do with a few cosmetic upgrades). It would be nice to add a new tab to the hypnotoad GUI which could allow a user to tweak the parameters of the analytic equilibrium and save them into an input .yml file. Then the Psi function from CerfonFreidberg could be passed to TokamakEquilibrium (which should only need a small upgrade to TokamakEquilibrium), allowing hypnotoad to grid the analytical equilibrium.
Edit (updating comment below): Should note the health warning with these analytic equilibria - the equilibrium implies a pressure profile, which will generally not be consistent with a real machine or with the plasma solution produced by your code. Outside the separatrix things are probably even more dodgy - there's an analytic form for psi, but it assumes that the pressure is a linear function of psi, which is not realistic as in the SOL pressure is (a) not a flux function and (b) should drop quickly to ~0 and cannot (physically) be negative...
The text was updated successfully, but these errors were encountered:
Should note the health warning with these analytic equilibria - the equilibrium implies a pressure profile, which will generally not be consistent with a real machine or with the plasma solution produced by your code. Outside the separatrix things are probably even more dodgy - there's an analytic form for psi, but there are no flux surfaces so 'pressure profile' is not well defined, are there parallel currents as well or instead??
It could also be nice to have something like an n-wire vacuum-field option. The TorpexEquilibrium case already has code to create a psi function (and the other needed functions) from a list of coil fields and currents.
Todo for this:
Could do with tidying up the interface to 'psi' functions a bit. Probably would be good to make a base PsiFunction class, with subclass implementations for 'read from g-file', 'psi from coils', maybe a 'CerfonFreidberg psi', etc.
GUI tab for 'psi from set of coils'.
Probably need a work-around in TokamakEquilibrium because there'll be a singularity at the centre (where a coil representing the 'plasma current' is) rather than an O-point. Should be simple, we could say something like 'the first coil is the centre of the plasma. Need some kind of fudge to define psi_norm too, because psi diverges on the coil, so there's no maximum 'psi_axis'.
Parameterised, analytic equilibria can be created following the recipe in [Cerfon&Freidberg (2010)]. There is already a Python implementation https://github.com/johnomotani/CerfonFreidbergGeometry (although it could do with a few cosmetic upgrades). It would be nice to add a new tab to the hypnotoad GUI which could allow a user to tweak the parameters of the analytic equilibrium and save them into an input
.yml
file. Then thePsi
function fromCerfonFreidberg
could be passed toTokamakEquilibrium
(which should only need a small upgrade toTokamakEquilibrium
), allowing hypnotoad to grid the analytical equilibrium.Edit (updating comment below): Should note the health warning with these analytic equilibria - the equilibrium implies a pressure profile, which will generally not be consistent with a real machine or with the plasma solution produced by your code. Outside the separatrix things are probably even more dodgy - there's an analytic form for psi, but it assumes that the pressure is a linear function of psi, which is not realistic as in the SOL pressure is (a) not a flux function and (b) should drop quickly to ~0 and cannot (physically) be negative...
The text was updated successfully, but these errors were encountered: