|
WarpX
|
#include <FieldProbe.H>
Public Member Functions | |
| FieldProbe (const std::string &rd_name) | |
| void | InitData () final |
| void | LoadBalance () final |
| void | ComputeDiags (int step) final |
Public Member Functions inherited from ReducedDiags | |
| ReducedDiags (const std::string &rd_name) | |
| virtual | ~ReducedDiags ()=default |
| ReducedDiags (const ReducedDiags &)=default | |
| ReducedDiags & | operator= (const ReducedDiags &)=default |
| ReducedDiags (ReducedDiags &&)=default | |
| ReducedDiags & | operator= (ReducedDiags &&)=default |
| virtual void | ComputeDiagsMidStep (int step) |
| bool | DoDiags (int step) const |
| virtual void | WriteCheckpointData (std::string const &dir) |
| Write out checkpoint related data. | |
| virtual void | ReadCheckpointData (std::string const &dir) |
| Read in checkpoint related data. | |
| void | BackwardCompatibility () const |
Static Public Attributes | |
| static const int | noutputs = 11 |
| noutputs is 11 for particle id + (x, y, z, Ex, Ey, Ez, Bx, By, Bz, S) | |
Private Member Functions | |
| void | WriteToFile (int step) const override |
| bool | ProbeInDomain () const |
| void | normalize (amrex::Real &AMREX_RESTRICT x, amrex::Real &AMREX_RESTRICT y, amrex::Real &AMREX_RESTRICT z) |
Private Attributes | |
| amrex::Real | x_probe = 0. |
| amrex::Real | y_probe = 0. |
| amrex::Real | x1_probe = 0. |
| amrex::Real | y1_probe = 0. |
| amrex::Real | target_normal_x = 0. |
| amrex::Real | target_normal_y = 1. |
| amrex::Real | target_normal_z = 0. |
| amrex::Real | target_up_x = 0. |
| amrex::Real | target_up_y = 0. |
| amrex::Real | target_up_z = 1. |
| amrex::Real | z_probe |
| amrex::Real | z1_probe |
| amrex::Real | detector_radius |
| long | m_valid_particles {0} |
| counts number of particles for all MPI ranks | |
| int | m_last_compute_step = 0 |
| remember the last time | |
| DetectorGeometry | m_probe_geometry = DetectorGeometry::Point |
| determines geometry of detector point distribution | |
| int | m_resolution = 0 |
| determines number of particles places for non-point geometries | |
| amrex::Vector< amrex::Real > | m_data |
| Empty vector for to which data is pushed. | |
| amrex::Vector< amrex::Real > | m_data_out |
| Empty array to be used by IOProcessor node to store and output data. | |
| FieldProbeParticleContainer | m_probe |
| this is the particle container in which probe particles are stored | |
| bool | m_field_probe_integrate = false |
| if true, integrate values over time instead of probing instantaneous values | |
| int | interp_order = 1 |
| particle shape used for field gather | |
| bool | do_moving_window_FP = false |
| Judges whether to follow a moving window. | |
Additional Inherited Members | |
Public Attributes inherited from ReducedDiags | |
| std::string | m_path = "./diags/reducedfiles/" |
| output path (default) | |
| std::string | m_extension = "txt" |
| output extension (default) | |
| std::string | m_rd_name |
| diags name | |
| utils::parser::IntervalsParser | m_intervals |
| output intervals | |
| bool | m_write_header = false |
| check if header should be written | |
| std::string | m_sep = " " |
| separator in the output file | |
| int | m_precision = 14 |
| precision for data in the output file | |
| std::vector< amrex::Real > | m_data |
| output data | |
This class mainly contains a function that computes the value of each component of the EM field at a given point
| FieldProbe::FieldProbe | ( | const std::string & | rd_name | ) |
constructor
| [in] | rd_name | reduced diags names |
|
finalvirtual |
This function computes the value of Ex, Ey, Ez, Bx, By, Bz and at a given point
| [in] | step | current time step |
Implements ReducedDiags.
|
finalvirtual |
This function assins test/data particles to constructed environemnt
Reimplemented from ReducedDiags.
|
finalvirtual |
Redistribute parallel data structures during load balance
Reimplemented from ReducedDiags.
|
inlineprivate |
Simple utility function to normalize the components of a "vector"
|
private |
Check if the probe is in the simulation domain boundary
|
overrideprivatevirtual |
Built-in function in ReducedDiags to write out test data
Reimplemented from ReducedDiags.
|
private |
|
private |
Judges whether to follow a moving window.
|
private |
particle shape used for field gather
|
private |
Empty vector for to which data is pushed.
|
private |
Empty array to be used by IOProcessor node to store and output data.
|
private |
if true, integrate values over time instead of probing instantaneous values
|
private |
remember the last time
|
private |
this is the particle container in which probe particles are stored
|
private |
determines geometry of detector point distribution
|
private |
determines number of particles places for non-point geometries
|
private |
counts number of particles for all MPI ranks
|
static |
noutputs is 11 for particle id + (x, y, z, Ex, Ey, Ez, Bx, By, Bz, S)
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |