stella icon indicating copy to clipboard operation
stella copied to clipboard

.eik file for geo_option?

Open rmchurch opened this issue 11 months ago • 1 comments

I'm wondering if a geo_option for using .eik files in the GS2 format would be compatible and easy enough to implement, similar to GX: https://gx.readthedocs.io/en/latest/Inputs.html#geo-option-eik I haven't looked deeply at it yet, just wanted to see if there are any obvious obstacles making it impossible before looking closer.

rmchurch avatar Jan 11 '25 02:01 rmchurch

I think the easiest way to implement it would be to copy the relevant part of the GS2’s geometry module directly into stella, in a file STELLA_CODE/geometry/geometry_eik.f90, and then adding a subroutine in STELLA_CODE/geometry/geometry.f90. This subroutine will be very similar to the VMEC, Miller and zpinch options that have already been implemented.

I see that GX compiles the GS2 geometry module separately and then calls it as an executable. This honestly sounds more difficult to implement then simply copying the relevant pieces of code into stella.

HanneThienpondt avatar Feb 25 '25 15:02 HanneThienpondt