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

Support 2D projections #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

DanShort12
Copy link
Contributor

This PR suggests to support 2D projections in either the ry or rz planes. This would allow the source to be used for pseudo-2D simulations. Note that the initial direction of the particle has not been modified as the 2D model may or may not be constrained in the third dimension, for example reflective boundaries could be provided to constrain the model, or no boundary could be provided in which case that dimension goes to infinity.

Supply the required projection as a basis of either xyz, ry, or rz.
If the basis is 2D then project the cross section of the plasma onto the
provided dimensions.
@@ -24,6 +24,7 @@ const double shafranov_shift = 0.0; //metres
const std::string name = "parametric_plasma_source";
const int number_of_bins = 100;
const int plasma_type = 1; // 1 is default; //0 = L mode anything else H/A mode
const std::string basis = "xyz"; // xyz for 3D, ry or rz for 2D
Copy link
Owner

Choose a reason for hiding this comment

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

can we tie this to an enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. Linked to an enum now. The enum will need a bit of a tweak when serialising but not major.

@DanShort12
Copy link
Contributor Author

Apologies for the noisy commits... I'd made a tweak to my WSL install that seemed to screw around with my account. Hopefully fixed now.

@shimwell
Copy link
Contributor

shimwell commented Oct 6, 2020

Sorry to be a pain is there any chance this PR can be redirect to the new repository

https://github.com/open-radiation-sources/parametric-plasma-source

@DanShort12

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.

3 participants