Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple source functionality #250

Merged
merged 24 commits into from
Sep 13, 2024
Merged

Multiple source functionality #250

merged 24 commits into from
Sep 13, 2024

Conversation

LucasMontoya4
Copy link
Collaborator

Can now add multiple sources to the input files, where sources are numbered, so

[ion_source_1]
...

[ion_source_2]
...

[neutral_source_1]
...

All input files for tests and example input files have been updated, and plots can now be made for each source individually.

LucasMontoya4 and others added 21 commits September 6, 2024 14:02
…ource for each species as a vector of structs, rather than a NamedTuple for each. This means each amplitude array for the moments structs has one extra dimension, one for each source, so that each source can be applied to each species pdf in turn.
…ment and species as an r, z, n array instead of just r, z.
…ion for ions when n_neutrals = 0, and fix some more small errors introduced during restructuring of source system
…each species has its information written out to the HDF5 file. Need to update this when possible, so that each source_amplitude can be written out for each source instead.
This change makes it simple to add an extra dimension for which there is
not a `coordinate` struct, replacing the special-purpose arguments for
n_ion_species, n_neutral_species and diagnostic_var_size.
…llow create_dynamic_variable() to take in not just coords but NamedTuples to help define dimensions of an array)
`counter` is not the same as `length(ion_sources)` when one or more ion
source sections are found. It is simpler to directly iterate over
`ion_sources`.
@johnomotani johnomotani added the enhancement New feature or request label Sep 13, 2024
@johnomotani
Copy link
Collaborator

Thanks @LucasMontoya4! Eventually we should add a test case that uses multiple sources, but that can wait until you've had time to work with them a bit and pick a favourite 🙂 I'll make an issue to remind us.

@johnomotani johnomotani merged commit 3038940 into master Sep 13, 2024
17 checks passed
@johnomotani johnomotani deleted the multiple_sources branch September 13, 2024 07:49
@LucasMontoya4
Copy link
Collaborator Author

Thanks @johnomotani! I'm sorry about those typos - I hope they weren't too pesky to find...

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.

2 participants