|
ARTEMIS
|
#include <FieldProbe.H>
Public Member Functions | |
| FieldProbe (std::string rd_name) | |
| void | InitData () override final |
| void | LoadBalance () override final |
| void | ComputeDiags (int step) override final |
Public Member Functions inherited from ReducedDiags | |
| ReducedDiags (std::string rd_name) | |
| virtual | ~ReducedDiags ()=default |
| void | BackwardCompatibility () |
Static Public Attributes | |
| static constexpr int | noutputs = FieldProbePIdx::nattribs + 3 + 1 |
| noutputs is 11 for particle id + (x, y, z, Ex, Ey, Ez, Bx, By, Bz, S) More... | |
Private Member Functions | |
| virtual 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._rt |
| amrex::Real | y_probe = 0._rt |
| amrex::Real | x1_probe = 0._rt |
| amrex::Real | y1_probe = 0._rt |
| amrex::Real | target_normal_x = 0._rt |
| amrex::Real | target_normal_y = 1._rt |
| amrex::Real | target_normal_z = 0._rt |
| amrex::Real | target_up_x = 0._rt |
| amrex::Real | target_up_y = 0._rt |
| amrex::Real | target_up_z = 1._rt |
| 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 More... | |
| int | m_last_compute_step = 0 |
| remember the last time More... | |
| DetectorGeometry | m_probe_geometry = DetectorGeometry::Point |
| determines geometry of detector point distribution More... | |
| int | m_resolution = 0 |
| determines number of particles places for non-point geometries More... | |
| amrex::Vector< amrex::Real > | m_data |
| Empty vector for to which data is pushed. More... | |
| amrex::Vector< amrex::Real > | m_data_out |
| Empty array to be used by IOProcessor node to store and output data. More... | |
| FieldProbeParticleContainer | m_probe |
| this is the particle container in which probe particles are stored More... | |
| bool | m_field_probe_integrate = false |
| if true, integrate values over time instead of probing instantaneous values More... | |
| int | interp_order = 1 |
| particle shape used for field gather More... | |
| bool | raw_fields = false |
| Judges whether to gather raw fields or interpolated data. More... | |
| bool | do_moving_window_FP = false |
| Judges whether to follow a moving window. More... | |
Additional Inherited Members | |
Public Attributes inherited from ReducedDiags | |
| std::string | m_path = "./diags/reducedfiles/" |
| output path (default) More... | |
| std::string | m_extension = "txt" |
| output extension (default) More... | |
| std::string | m_rd_name |
| diags name More... | |
| utils::parser::IntervalsParser | m_intervals |
| output intervals More... | |
| int | m_IsNotRestart = 1 |
| check if it is a restart run More... | |
| std::string | m_sep = " " |
| separator in the output file More... | |
| std::vector< amrex::Real > | m_data |
| output data More... | |
This class mainly contains a function that computes the value of each component of the EM field at a given point
| FieldProbe::FieldProbe | ( | std::string | rd_name | ) |
constructor
| [in] | rd_name | reduced diags names |
|
finaloverridevirtual |
This function computes the value of Ex, Ey, Ez, Bx, By, Bz and at a given point
| [in] | step | current time step |
Implements ReducedDiags.
|
finaloverridevirtual |
This function assins test/data particles to constructed environemnt
Reimplemented from ReducedDiags.
|
finaloverridevirtual |
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
|
staticconstexpr |
noutputs is 11 for particle id + (x, y, z, Ex, Ey, Ez, Bx, By, Bz, S)
|
private |
Judges whether to gather raw fields or interpolated data.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |