|
| AmrCoreData | init_amr_core () |
| |
| AmrCoreData | amrex_amrcore_gridding () |
| |
| AmrCoreData | one_box_per_rank () |
| |
| constexpr amrex::RealVect | undefined_geometry_prob_lo (-1.0) |
| | the fake domain size (lower end), used to indicate that the user made no choice for it
|
| |
| constexpr amrex::RealVect | undefined_geometry_prob_hi (1.0) |
| | the fake domain size (higher end), used to indicate that the user made no choice for it
|
| |
| void | default_init_AMReX (int argc, char *argv[]) |
| |
| void | default_init_AMReX () |
| |
| RefPart | read_reference_particle (amrex::ParmParse const &pp_dist) |
| |
| distribution::KnownDistributions | read_distribution (amrex::ParmParse const &pp_dist) |
| |
| Envelope | create_envelope (distribution::KnownDistributions const &distr, std::optional< amrex::ParticleReal > intensity=std::nullopt) |
| |
| void | set_distribution_parameters_from_phase_space_inputs (amrex::ParmParse const &pp_dist, amrex::ParticleReal &lambdax, amrex::ParticleReal &lambday, amrex::ParticleReal &lambdat, amrex::ParticleReal &lambdapx, amrex::ParticleReal &lambdapy, amrex::ParticleReal &lambdapt, amrex::ParticleReal &muxpx, amrex::ParticleReal &muypy, amrex::ParticleReal &mutpt, amrex::ParticleReal &meanx, amrex::ParticleReal &meany, amrex::ParticleReal &meant, amrex::ParticleReal &meanpx, amrex::ParticleReal &meanpy, amrex::ParticleReal &meanpt, amrex::ParticleReal &dispx, amrex::ParticleReal &disppx, amrex::ParticleReal &dispy, amrex::ParticleReal &disppy) |
| |
| void | set_distribution_parameters_from_twiss_inputs (amrex::ParmParse const &pp_dist, amrex::ParticleReal &lambdax, amrex::ParticleReal &lambday, amrex::ParticleReal &lambdat, amrex::ParticleReal &lambdapx, amrex::ParticleReal &lambdapy, amrex::ParticleReal &lambdapt, amrex::ParticleReal &muxpx, amrex::ParticleReal &muypy, amrex::ParticleReal &mutpt, amrex::ParticleReal &meanx, amrex::ParticleReal &meany, amrex::ParticleReal &meant, amrex::ParticleReal &meanpx, amrex::ParticleReal &meanpy, amrex::ParticleReal &meanpt, amrex::ParticleReal &dispx, amrex::ParticleReal &disppx, amrex::ParticleReal &dispy, amrex::ParticleReal &disppy) |
| |
| amrex::Vector< amrex::Real > | read_mr_prob_relative () |
| |
| void | overwrite_amrex_parser_defaults () |
| |
| void impactx::initialization::set_distribution_parameters_from_phase_space_inputs |
( |
amrex::ParmParse const & | pp_dist, |
|
|
amrex::ParticleReal & | lambdax, |
|
|
amrex::ParticleReal & | lambday, |
|
|
amrex::ParticleReal & | lambdat, |
|
|
amrex::ParticleReal & | lambdapx, |
|
|
amrex::ParticleReal & | lambdapy, |
|
|
amrex::ParticleReal & | lambdapt, |
|
|
amrex::ParticleReal & | muxpx, |
|
|
amrex::ParticleReal & | muypy, |
|
|
amrex::ParticleReal & | mutpt, |
|
|
amrex::ParticleReal & | meanx, |
|
|
amrex::ParticleReal & | meany, |
|
|
amrex::ParticleReal & | meant, |
|
|
amrex::ParticleReal & | meanpx, |
|
|
amrex::ParticleReal & | meanpy, |
|
|
amrex::ParticleReal & | meanpt, |
|
|
amrex::ParticleReal & | dispx, |
|
|
amrex::ParticleReal & | disppx, |
|
|
amrex::ParticleReal & | dispy, |
|
|
amrex::ParticleReal & | disppy ) |
Initialize the input parameters for all distributions that read phase space ellipse parameters from the input
This function sets the distribution parameters based on the provided phase space inputs. The parameters include the phase space ellipse intersections for position (lambdaX, lambdaY), time (lambdaT), momentum (lambdaPx, lambdaPy) and energy (lambdaPt), as well as the correlation terms (muxpx, muypy, mutpt).
- Parameters
-
| pp_dist | The parameter parser object. |
| lambdax | Reference to the variable storing the axis intersection of the phase space ellipse for x position. |
| lambday | Reference to the variable storing the axis intersection of the phase space ellipse for y position. |
| lambdat | Reference to the variable storing the axis intersection of the phase space ellipse for time. |
| lambdapx | Reference to the variable storing the axis intersection of the phase space ellipse for momentum in x direction. |
| lambdapy | Reference to the variable storing the axis intersection of the phase space ellipse for momentum in y direction. |
| lambdapt | Reference to the variable storing the axis intersection of the phase space ellipse for energy. |
| muxpx | Reference to the variable storing the correlation coefficient between the x position and the x momentum. |
| muypy | Reference to the variable storing the correlation coefficient between the y position and the y momentum. |
| mutpt | Reference to the variable storing the correlation coefficient between the t position and the t momentum. |
| meanx | Reference to the variable storing the mean for position in the x direction. |
| meany | Reference to the variable storing the mean for position in the y direction. |
| meant | Reference to the variable storing the mean for position in the t direction. |
| meanpx | Reference to the variable storing the mean for momentum in the x direction. |
| meanpy | Reference to the variable storing the mean for momentum in the y direction. |
| meanpt | Reference to the variable storing the mean for momentum in the t direction. |
| dispx | Reference to the variable storing the beam-based dispersion in the x direction. |
| disppx | Reference to the variable storing the derivative of the beam-based dispersion in the x direction. |
| dispy | Reference to the variable storing the beam-based dispersion in the y direction. |
| disppy | Reference to the variable storing the derivative of the beam-based dispersion in the y direction. |
| void impactx::initialization::set_distribution_parameters_from_twiss_inputs |
( |
amrex::ParmParse const & | pp_dist, |
|
|
amrex::ParticleReal & | lambdax, |
|
|
amrex::ParticleReal & | lambday, |
|
|
amrex::ParticleReal & | lambdat, |
|
|
amrex::ParticleReal & | lambdapx, |
|
|
amrex::ParticleReal & | lambdapy, |
|
|
amrex::ParticleReal & | lambdapt, |
|
|
amrex::ParticleReal & | muxpx, |
|
|
amrex::ParticleReal & | muypy, |
|
|
amrex::ParticleReal & | mutpt, |
|
|
amrex::ParticleReal & | meanx, |
|
|
amrex::ParticleReal & | meany, |
|
|
amrex::ParticleReal & | meant, |
|
|
amrex::ParticleReal & | meanpx, |
|
|
amrex::ParticleReal & | meanpy, |
|
|
amrex::ParticleReal & | meanpt, |
|
|
amrex::ParticleReal & | dispx, |
|
|
amrex::ParticleReal & | disppx, |
|
|
amrex::ParticleReal & | dispy, |
|
|
amrex::ParticleReal & | disppy ) |
Set the distribution parameters from Twiss inputs
This function reads Courant-Snyder / Twiss parameters from the provided ParmParse object and calculates the distribution parameters for a particle beam. It sets the values for the axis intercepts of the phase space ellipse (lambdaX, lambdaY, lambdaT, and lambdaPx, lambdaPy, lambdaPt) and correlation terms (muxpx, muypy, mutpt) normally accepted as input.
- Parameters
-
| pp_dist | The parameter parser object. |
| lambdax | Reference to the variable storing the axis intersection of the phase space ellipse for x position. |
| lambday | Reference to the variable storing the axis intersection of the phase space ellipse for y position. |
| lambdat | Reference to the variable storing the axis intersection of the phase space ellipse for time. |
| lambdapx | Reference to the variable storing the axis intersection of the phase space ellipse for momentum in x direction. |
| lambdapy | Reference to the variable storing the axis intersection of the phase space ellipse for momentum in y direction. |
| lambdapt | Reference to the variable storing the axis intersection of the phase space ellipse for energy. |
| muxpx | Reference to the variable storing the correlation coefficient between the x position and the x momentum. |
| muypy | Reference to the variable storing the correlation coefficient between the y position and the y momentum. |
| mutpt | Reference to the variable storing the correlation coefficient between the t position and the t momentum. |
| meanx | Reference to the variable storing the mean for position in the x direction. |
| meany | Reference to the variable storing the mean for position in the y direction. |
| meant | Reference to the variable storing the mean for position in the t direction. |
| meanpx | Reference to the variable storing the mean for momentum in the x direction. |
| meanpy | Reference to the variable storing the mean for momentum in the y direction. |
| meanpt | Reference to the variable storing the mean for momentum in the t direction. |
| dispx | Reference to the variable storing the beam-based dispersion in the x direction. |
| disppx | Reference to the variable storing the derivative of the beam-based dispersion in the x direction. |
| dispy | Reference to the variable storing the beam-based dispersion in the y direction. |
| disppy | Reference to the variable storing the derivative of the beam-based dispersion in the y direction. |