Skip to content

Add selectors and boundary flow source diagnostics#27

Draft
mikekryjak wants to merge 4 commits intomainfrom
boundary-flows
Draft

Add selectors and boundary flow source diagnostics#27
mikekryjak wants to merge 4 commits intomainfrom
boundary-flows

Conversation

@mikekryjak
Copy link
Copy Markdown
Collaborator

2D particle and energy balances are challenging. One of the ways this is unwieldy is that the boundary flows must be calculated from flow diagnostics and care must be kept to select the right cells (e.g. the perpendicular flows are on the xlow side, which means you need to select the final domain cell at the PFR, but the guard cell at the SOL).

This PFR adds new diagnostics where the boundary flows are represented as sources in the final domain cells, making it a lot easier to tally up where things are going.

It also adds a few new selectors, adds the toroidal cell length variable and renames dl to dpol.

@mikekryjak mikekryjak changed the title Add selectors and boundary flow calculation Add selectors and boundary flow source diagnostics Feb 6, 2026
@mikekryjak mikekryjak marked this pull request as draft February 6, 2026 15:57
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.

1 participant