GK checks on right handed coordinate system #933
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add check to ensure that the GK coordinate system is right handed.
Most importantly, this PR changes the definition of y from y=-alpha to y=alpha, and we change the signs in the definition of the binormal coordinate y (and the size of B_Z) in IWL mapc2p input files.
NOTE: the IWL input files don't pass the consistency checks. We've tried to investigate this some, even completely rewriting the mapc2p for those input files, but have not figured out why they fail. We leave it as failing at the moment, but at least now we know. It prints messages like
Unfortunately, because we need every part of the domain to perform these checks and alert us if they fail, every MPI process is printing this warning, so the log file will have a lot of these at t=0.
Below we do a comparison of a TCV IWL 3x2v simulation ran with this branch vs. one ran in main.
IWL test
Here we compare a TCV IWL 3x2v with fixed source ran in main vs in this righthanded_checks branch. Up to nearly 0.5 ms the moments look basically the same.