Skip to content

Fix NICE direct mode#166

Open
SBlokhuizen wants to merge 2 commits into
developfrom
feature/previous-input
Open

Fix NICE direct mode#166
SBlokhuizen wants to merge 2 commits into
developfrom
feature/previous-input

Conversation

@SBlokhuizen
Copy link
Copy Markdown
Collaborator

This uses the equilibrium IDS from a previous run as input for a subsequent run. This allows NICE direct mode to be used with the following workflow:

  1. Run NICE inverse mode, setting the desired shape.
  2. Run NICE direct mode afterwards, slightly altering the coil currents received from the previous inverse mode run to tweak the plasma shape.

Copy link
Copy Markdown
Collaborator

@maarten-ic maarten-ic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, some questions on edge cases:

Comment on lines +23 to +25
<algoStartFromScratch>0</algoStartFromScratch>
<algoStartFromScratchReconAB>0</algoStartFromScratchReconAB>
<algoStartPsiFromInData>1</algoStartPsiFromInData>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does NICE do if there is no 2D psi grid available in the input equilibrium IDS?


# Load previous equilibrium from communicator output if available
if self.communicator.equilibrium is not None:
equilibrium = self.communicator.equilibrium
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only valid if both runs use the same machine description, right?

equilibrium = self._create_equilibrium()

# Load previous equilibrium from communicator output if available
if self.communicator.equilibrium is not None:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should a user do if the previous run did not converge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants