|
WarpX
|
Struct to store velocity properties, for use in momentum initialization. More...
#include <VelocityProperties.H>
Public Member Functions | |
| VelocityProperties (const amrex::ParmParse &pp) | |
| Read runtime parameters to populate constant or spatially-varying velocity information. More... | |
Public Attributes | |
| VelocityInitType | m_type |
| int | m_dir |
| int | m_sign_dir |
| amrex::Real | m_velocity |
| std::unique_ptr< amrex::Parser > | m_ptr_velocity_parser |
Struct to store velocity properties, for use in momentum initialization.
Reads in and stores velocity used to initialize the Maxwell-Boltzmann 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 | ) |
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 |
| int VelocityProperties::m_dir |
| std::unique_ptr<amrex::Parser> VelocityProperties::m_ptr_velocity_parser |
| int VelocityProperties::m_sign_dir |
| VelocityInitType VelocityProperties::m_type |
| amrex::Real VelocityProperties::m_velocity |