-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIELDLINES] allow start from plasma boundary given in VMEC INDATA
, not only wout
#241
base: develop
Are you sure you want to change the base?
[FIELDLINES] allow start from plasma boundary given in VMEC INDATA
, not only wout
#241
Conversation
…oundary as read from VMEC INDATA, not only VMEC wout
… fieldlines to start on plasma boundary
…oundary from wout file
Note: Assuming one has an existing |
… This one also checks that no errornous mystart, myend are created if more ranks are tried to be assigned than work items (e.g. loop iterations, field lines to be traced, ...) are available
… fieldlines to start on plasma boundary
@lazersos FYI, I think this should now be compatible again with the recently merged py_stel update. |
@@ -176,6 +185,8 @@ SUBROUTINE write_fieldlines_namelist(iunit_out, istat) | |||
WRITE(iunit_out,outflt) 'FOLLOW_TOL',follow_tol | |||
WRITE(iunit_out,outint) 'NPOINC',npoinc | |||
WRITE(iunit_out,outflt) 'MU',mu | |||
WRITE(iunit_out,outint) 'NSTART_POL',nstart_pol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should only be written out if they're >0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The modifications in FIELDLINES_INIT_MGRID and COIL (All the BCASTS) shouldn't be there. When you call init_edgestart, you should re-read the INDATA
namelist. This better compartmentalizes the code. Also mylocalmaster
doesn't need to be broadcast.
These changes allow to provide the command-line argument
-edge
to FIELDLINES not only in combination with tracing over a VMEC equilibrium, but also in vacuum (-vac
).The plasma boundary geometry is then read from the VMEC
INDATA
namelist usingRBC
andZBS
(and in case oflasym
, alsoRBS
andZBC
). Furthermore,nfp
,mpol
andntor
are needed.Additional input parameters (in the
FIELDLINES_INPUT
namelist) namednstart_pol
andnstart_tor
are provided to specify how many grid points over the plasma boundary are to be used in each of the tangential directions. They default to 0, in which case (as if they are not specified in theFIELDLINES_INPUT
namelist) operation defaults toint(floor(sqrt(maxlines)))
per direction, as previously implemented.