Skip to content

Coupling#201

Open
ChasingNeutrons wants to merge 25 commits into
CambridgeNuclear:mainfrom
ChasingNeutrons:coupling
Open

Coupling#201
ChasingNeutrons wants to merge 25 commits into
CambridgeNuclear:mainfrom
ChasingNeutrons:coupling

Conversation

@ChasingNeutrons

Copy link
Copy Markdown
Collaborator

This PR centres around a couplingAdmin, which controls communication with other physics solvers/external scripts. This allows for more standard coupling strategies, i.e., exchanging physics data before full convergence, rather than only at the end of a solve.

The couplingAdmin object is a property of particular physics packages. It is initialised by the input, where it is given a tally, to output, which fields will be updated and where to look for them, the frequency of exchanging data, maximum number of iterations before coupling ceases, etc. The admin does not have a very large interaction with the physics package other than making and attaching a tally and checking whether a physics update should be performed. If it is performed, the tallies associated with the admin are output (and flushed), and the admin waits until it has a signal from another solver/script. Signal is performed by creating/reading a file containing the signal. Nicer strategies can surely be used in future.

While doing this, I implemented a way of flushing tallies and I also fixed a bug that I introduced into the movement subroutines with fields. It is back to not being very elegant, but I don't have any more robust ideas for it at the moment.

@ChasingNeutrons ChasingNeutrons added the enhancement New feature or request label Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant