-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: master
Are you sure you want to change the base?
Conversation
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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. |
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 |
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.