WarpX
|
Struct to store data related to external electromagnetic fields (flags, field values, and field parsers) More...
#include <ExternalField.H>
Public Member Functions | |
ExternalFieldParams (const amrex::ParmParse &pp_warpx) | |
The constructor reads and stores the parameters related to the external fields. "pp_warpx" must point at the "warpx" parameter group in the inputfile. More... | |
Public Attributes | |
amrex::GpuArray< amrex::Real, 3 > | E_external_grid = {0,0,0} |
Initial electric field on the grid. More... | |
amrex::GpuArray< amrex::Real, 3 > | B_external_grid = {0,0,0} |
Initial magnetic field on the grid. More... | |
ExternalFieldType | B_ext_grid_type = ExternalFieldType::default_zero |
Initialization type for external magnetic field on the grid. More... | |
ExternalFieldType | E_ext_grid_type = ExternalFieldType::default_zero |
Initialization type for external electric field on the grid. More... | |
std::unique_ptr< amrex::Parser > | Bxfield_parser |
User-defined parser to initialize x-component of the magnetic field on the grid. More... | |
std::unique_ptr< amrex::Parser > | Byfield_parser |
User-defined parser to initialize y-component of the magnetic field on the grid. More... | |
std::unique_ptr< amrex::Parser > | Bzfield_parser |
User-defined parser to initialize z-component of the magnetic field on the grid. More... | |
std::unique_ptr< amrex::Parser > | Exfield_parser |
User-defined parser to initialize x-component of the electric field on the grid. More... | |
std::unique_ptr< amrex::Parser > | Eyfield_parser |
User-defined parser to initialize y-component of the electric field on the grid. More... | |
std::unique_ptr< amrex::Parser > | Ezfield_parser |
User-defined parser to initialize z-component of the electric field on the grid. More... | |
std::string | external_fields_path |
Path of the file where external fields are stored. More... | |
Struct to store data related to external electromagnetic fields (flags, field values, and field parsers)
ExternalFieldParams::ExternalFieldParams | ( | const amrex::ParmParse & | pp_warpx | ) |
The constructor reads and stores the parameters related to the external fields. "pp_warpx" must point at the "warpx" parameter group in the inputfile.
Strings storing parser function to initialize the components of the magnetic field on the grid
Strings storing parser function to initialize the components of the electric field on the grid
ExternalFieldType ExternalFieldParams::B_ext_grid_type = ExternalFieldType::default_zero |
Initialization type for external magnetic field on the grid.
amrex::GpuArray<amrex::Real,3> ExternalFieldParams::B_external_grid = {0,0,0} |
Initial magnetic field on the grid.
std::unique_ptr<amrex::Parser> ExternalFieldParams::Bxfield_parser |
User-defined parser to initialize x-component of the magnetic field on the grid.
std::unique_ptr<amrex::Parser> ExternalFieldParams::Byfield_parser |
User-defined parser to initialize y-component of the magnetic field on the grid.
std::unique_ptr<amrex::Parser> ExternalFieldParams::Bzfield_parser |
User-defined parser to initialize z-component of the magnetic field on the grid.
ExternalFieldType ExternalFieldParams::E_ext_grid_type = ExternalFieldType::default_zero |
Initialization type for external electric field on the grid.
amrex::GpuArray<amrex::Real,3> ExternalFieldParams::E_external_grid = {0,0,0} |
Initial electric field on the grid.
std::unique_ptr<amrex::Parser> ExternalFieldParams::Exfield_parser |
User-defined parser to initialize x-component of the electric field on the grid.
std::string ExternalFieldParams::external_fields_path |
Path of the file where external fields are stored.
std::unique_ptr<amrex::Parser> ExternalFieldParams::Eyfield_parser |
User-defined parser to initialize y-component of the electric field on the grid.
std::unique_ptr<amrex::Parser> ExternalFieldParams::Ezfield_parser |
User-defined parser to initialize z-component of the electric field on the grid.