|
WarpX
|
Struct to store velocity properties, for use in momentum initialization. More...
#include <VelocityProperties.H>
Public Member Functions | |
| VelocityProperties (const amrex::ParmParse &pp, std::string const &source_name) | |
| Read runtime parameters to populate constant or spatially-varying velocity information. | |
Public Attributes | |
| VelocityInitType | m_type |
| int | m_dir |
| int | m_sign_dir |
| amrex::Real | m_velocity {0} |
| std::unique_ptr< amrex::Parser > | m_ptr_velocity_parser |
| amrex::Real | m_ux_mean {0.0} |
| amrex::Real | m_uy_mean {0.0} |
| amrex::Real | m_uz_mean {0.0} |
| std::unique_ptr< amrex::Parser > | m_ptr_ux_mean_parser |
| std::unique_ptr< amrex::Parser > | m_ptr_uy_mean_parser |
| std::unique_ptr< amrex::Parser > | m_ptr_uz_mean_parser |
Struct to store velocity properties, for use in momentum initialization.
Reads in and stores velocity used to initialize the Maxwellian and Maxwell-Juttner momentum distributions in InjectorMomentum. The information is read from the parameters of the species being initialized, and will be accessed by GetVelocity.
| VelocityProperties::VelocityProperties | ( | const amrex::ParmParse & | pp, |
| std::string const & | source_name ) |
Read runtime parameters to populate constant or spatially-varying velocity information.
Construct VelocityProperties based on the passed parameters. If velocity is a constant, store value. If a parser, make and store the parser function
| [in] | pp | Reference to the parameter parser object for the species being initialized |
| [in] | source_name | Optional group name of the input parameters |
Construct VelocityProperties from the passed particle source parameters. Parse the momentum distribution type and initialize the corresponding velocity parameters: ux_mean, uy_mean, and uz_mean for maxwellian distributions, or bulk_vel_dir and beta for maxwell_juttner.
| int VelocityProperties::m_dir |
| std::unique_ptr<amrex::Parser> VelocityProperties::m_ptr_ux_mean_parser |
| std::unique_ptr<amrex::Parser> VelocityProperties::m_ptr_uy_mean_parser |
| std::unique_ptr<amrex::Parser> VelocityProperties::m_ptr_uz_mean_parser |
| std::unique_ptr<amrex::Parser> VelocityProperties::m_ptr_velocity_parser |
| int VelocityProperties::m_sign_dir |
| VelocityInitType VelocityProperties::m_type |
| amrex::Real VelocityProperties::m_ux_mean {0.0} |
| amrex::Real VelocityProperties::m_uy_mean {0.0} |
| amrex::Real VelocityProperties::m_uz_mean {0.0} |
| amrex::Real VelocityProperties::m_velocity {0} |