|
WarpX
|
Classes | |
| struct | char_to_explicit_char |
| struct | char_to_explicit_char< false > |
| struct | char_to_explicit_char< true > |
Functions | |
| std::string | snakeToCamel (const std::string &snake_string) |
| Convert a snake_case string to a camelCase one. | |
| std::string | getSeriesOptions (std::string const &operator_type, std::map< std::string, std::string > const &operator_parameters, std::string const &engine_type, std::map< std::string, std::string > const &engine_parameters) |
| std::pair< std::string, std::string > | name2openPMD (std::string const &fullName) |
| std::vector< std::string > | getParticlePositionComponentLabels (amrex::Vector< int > const &write_real_comp, amrex::Vector< std::string > const &real_comp_names) |
| std::vector< std::string > | getFieldAxisLabels (bool const var_in_theta_mode) |
| std::vector< std::string > | getFieldComponentLabels (bool const var_in_theta_mode) |
| std::map< openPMD::UnitDimension, double > | getUnitDimension (std::string const &record_name) |
| void | setOpenPMDUnit (openPMD::Mesh mesh, const std::string &field_name) |
| For a given field that is to be written to an openPMD file, set the metadata that indicates the physical unit. | |
| template<typename T> | |
| auto | get_or_throw (std::string const &prefix, std::string const &name) |
| auto detail::get_or_throw | ( | std::string const & | prefix, |
| std::string const & | name ) |
Helper Function for Property Getters
This queries an amrex::ParmParse entry. This throws a std::runtime_error if the entry is not found.
This handles the most common throw exception logic in WarpX instead of going over library boundaries via amrex::Abort().
| T | type of the amrex::ParmParse entry |
| prefix | the prefix, e.g., "warpx" or "amr" |
| name | the actual key of the entry, e.g., "particle_shape" |
|
inline |
Return the axis (index) names of a mesh
This will be returned in C order. This is inverse of the Fortran order of the index labels for the AMReX FArrayBox.
| var_in_theta_mode | indicate if this field will be output with theta modes (instead of a reconstructed 2D slice) |
|
inline |
Return the component names of a mesh
| var_in_theta_mode | indicate if this field will be output with theta modes (instead of a reconstructed 2D slice) |
|
inline |
|
inline |
Create the option string
|
inline |
|
inline |
|
inline |
For a given field that is to be written to an openPMD file, set the metadata that indicates the physical unit.
|
inline |
Convert a snake_case string to a camelCase one.
WarpX uses snake_case internally for some component names, but OpenPMD assumes "_" indicates vector or tensor fields.