Open Mateasek opened 4 years ago
The EFIT equillibrium class is quite general, so we could probably rename it. Originally the EFITEquilibrium class was just call Equilibrium. It was renamed EFITEquilibrium as it includes some minor assumptions specific to EFIT in places. It should be relatively easy to clean these up.
I agree with both of these comments. Probably the best first step is to:
I suggest calling it Equilibrium2D because this type of equilibrium is essentially a 2D solution that is then mapped out with symmetry operators. You could also approximate some kind of error fields by applying a n=x perturbation on the field.
Thinking ahead, you may ultimately want a deeper base class that works for both Tokamaks and Stellerators. Just implements the magnetic field and a few other basics. This woudl also allow support for 3D Tokamak fields through VMEC, etc.
I think this has been floating around for quite some time and became obvious in few last issues, for example #147 . I think Cherab should have some general equilibrium class. It can be based on EFITEquilibrium (although I would rename it). The added functionality could be:
There is a lot more functionality it could cover...