-
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
[WOUT2INDATA] add a tool that puts the plasma boundary geometry from a VMEC wout file into a new INDATA namelist #245
base: develop
Are you sure you want to change the base?
Conversation
So I was taking a look at this and I don't quite understand this. Wouldn't it be better to just have a utility which takes a wout file only and generates and input file from it? |
The problem I see is that some information is not reconstructable from the |
One could make the input file command line arg optional though and leave all parameters untouched wrt. their default values from the |
I would also suggest the name VMEC2INDATA as this is more consistent with our existing naming conventions. |
Also REAL(rprec), EXTERNAL :: pmass
IF (pmass(0.0) > 0.0) THEN
PRES_SCALE = presf(1)/pmass(0)
END IF |
Ok, I would then move forward as follows:
@lazersos Does that address your comments to your satisfaction? |
@jons-pf has there been progress on this? |
@lazersos Sorry for the delay, I was using the code as-is for now and did not get around yet to implementing your suggestions; will do ASAP. |
This PR adds a new tool
WOUT2INDATA
.This tool:
indata
namelist from a given VMEC input file,wout
file andindata
namelist to a new file, where the Fourier coefficientsRBC
, ... of the plasma boundary geometry have been replaced to represent the plasma boundary from thewout
file.The new output file is called
input.<ext>_new
and it is written with the same relative/absolute path as the given input file.