Skip to content

Allow different radial boundary conditions in multiple sections - #379

Merged
johnomotani merged 4 commits into
masterfrom
radial-bc
Jul 8, 2025
Merged

Allow different radial boundary conditions in multiple sections#379
johnomotani merged 4 commits into
masterfrom
radial-bc

Conversation

@johnomotani

Copy link
Copy Markdown
Collaborator

Allow more flexible radial boundary conditions, e.g. different bc on different boundaries, or even different parts of a single boundary.

These were only saved and reloaded in case they were used as a radial
boundary condition. However, if they are used as a boundary condition,
then the radial boundary points of the distribution functions will be
set to the relevant values. The boundary values do not need to be saved
separately unless the aim was to do an initial run with some other
radial boundary condition, and then later restart setting the boundary
values to the initial values from the first run - this seems like a very
unlikely use-case, it is more likely that it would be useful to run one
simulation (e.g. a 1D one) to steady state, then restart and fix the
boundary values to the values at the beginning of the restart (which
would be supported by the code as of this commit, but not the previous
version).
Should be p_neutral, not pz_neutral. Correct array (p_neutral) was
always passed to this function, so behaviour was correct even though
argument was mis-named.
@johnomotani johnomotani added the enhancement New feature or request label Jul 8, 2025
@johnomotani
johnomotani merged commit bd1861d into master Jul 8, 2025
11 checks passed
@johnomotani
johnomotani deleted the radial-bc branch July 8, 2025 12:21
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