7 #ifndef WARPX_BTDIAGNOSTICS_H_
8 #define WARPX_BTDIAGNOSTICS_H_
49 void Flush (
int i_buffer,
bool force_flush)
override;
58 bool DoDump (
int step,
int i_buffer,
bool force_flush=
false)
override;
281 return current_z_boost;
290 return current_z_lab;
297 amrex::Real
dz_lab (amrex::Real
dt, amrex::Real ref_ratio);
359 "jr",
"jt",
"jz",
"rho"};
367 "jx",
"jy",
"jz",
"rho"};
379 std::string snapshot_Header);
384 std::string snapshot_FabHeader_path,
385 std::string newsnapshot_FabFilename);
390 std::string snapshot_species_Header_path,
391 std::string species_name,
int new_data_index);
397 std::string snapshot_ParticleHdrFilename);
413 void settlab (
int i_buffer, amrex::Real tlab)
override {
m_t_lab[i_buffer] = tlab; }
Definition: BTDiagnostics.H:28
amrex::Real m_beta_boost
Definition: BTDiagnostics.H:158
int m_moving_window_dir
Definition: BTDiagnostics.H:163
void DerivedInitData() override
Definition: BTDiagnostics.cpp:62
void InitializeParticleBuffer() override
Definition: BTDiagnostics.cpp:1431
amrex::Vector< std::string > m_cellcenter_varnames
Definition: BTDiagnostics.H:357
amrex::Vector< std::unique_ptr< amrex::MultiFab > > m_cell_centered_data
Definition: BTDiagnostics.H:247
void Flush(int i_buffer, bool force_flush) override
Flush m_mf_output and particles to file. Currently, a temporary customized output format for the buff...
Definition: BTDiagnostics.cpp:1004
void DefineCellCenteredMultiFab(int lev)
Definition: BTDiagnostics.cpp:504
void InitializeFieldFunctorsRZopenPMD(int lev) override
Definition: BTDiagnostics.cpp:655
void IncrementBufferFlushCounter(int i_buffer)
Definition: BTDiagnostics.H:343
amrex::Real m_dz_snapshots_lab
Definition: BTDiagnostics.H:172
amrex::Real UpdateCurrentZLabCoordinate(amrex::Real t_lab, amrex::Real t_boost)
Definition: BTDiagnostics.H:287
void UpdateTotalParticlesFlushed(int i_buffer)
Definition: BTDiagnostics.cpp:1492
bool DoDump(int step, int i_buffer, bool force_flush=false) override
Definition: BTDiagnostics.cpp:293
bool GetKIndexInSnapshotBoxFlag(int i_buffer, int lev)
Definition: BTDiagnostics.cpp:997
amrex::Vector< std::string > m_cellcenter_varnames_fields
Definition: BTDiagnostics.H:360
amrex::Vector< amrex::RealBox > m_snapshot_domain_lab
Definition: BTDiagnostics.H:181
void AddRZModesToOutputNames(const std::string &field, int ncomp, bool cellcenter_data)
Definition: BTDiagnostics.cpp:712
amrex::Real m_dt_snapshots_lab
Definition: BTDiagnostics.H:168
amrex::Vector< int > m_lastValidZSlice
Definition: BTDiagnostics.H:233
void set_last_valid_Zslice(int i_buffer, int last_valid_Zslice) override
Definition: BTDiagnostics.H:421
void InterleaveBufferAndSnapshotHeader(std::string buffer_Header, std::string snapshot_Header)
Definition: BTDiagnostics.cpp:1294
void PrepareFieldDataForOutput() override
Definition: BTDiagnostics.cpp:785
bool m_do_back_transformed_particles
Definition: BTDiagnostics.H:148
void DefineFieldBufferMultiFab(int i_buffer, int lev)
Definition: BTDiagnostics.cpp:896
amrex::Vector< amrex::RealBox > m_buffer_domain_lab
Definition: BTDiagnostics.H:184
void ReadParameters()
Definition: BTDiagnostics.cpp:205
amrex::Vector< int > m_buffer_counter
Definition: BTDiagnostics.H:219
amrex::Vector< amrex::Real > m_old_z_boost
Definition: BTDiagnostics.H:201
void set_snapshot_full(int i_buffer, int snapshot_full) override
Definition: BTDiagnostics.H:423
amrex::Vector< int > m_snapshot_full
Definition: BTDiagnostics.H:228
int get_snapshot_full_flag(int i_buffer) override
Definition: BTDiagnostics.H:422
void NullifyFirstFlush(int i_buffer)
Definition: BTDiagnostics.H:327
amrex::Vector< amrex::Vector< std::unique_ptr< ComputeDiagFunctor const > > > m_cell_center_functors
Definition: BTDiagnostics.H:251
amrex::Real dz_lab(amrex::Real dt, amrex::Real ref_ratio)
Definition: BTDiagnostics.cpp:866
amrex::Real gettlab(int i_buffer) override
Definition: BTDiagnostics.H:412
int k_index_zlab(int i_buffer, int lev)
Definition: BTDiagnostics.cpp:872
utils::parser::BTDIntervalsParser m_intervals
Definition: BTDiagnostics.H:41
void ClearParticleBuffer(int i_buffer)
Definition: BTDiagnostics.cpp:1510
void MergeBuffersForPlotfile(int i_snapshot)
Definition: BTDiagnostics.cpp:1123
void InterleaveFabArrayHeader(std::string Buffer_FabHeader_path, std::string snapshot_FabHeader_path, std::string newsnapshot_FabFilename)
Definition: BTDiagnostics.cpp:1339
void settlab(int i_buffer, amrex::Real tlab) override
Definition: BTDiagnostics.H:413
int m_buffer_size
Definition: BTDiagnostics.H:175
amrex::Vector< amrex::Real > m_current_z_lab
Definition: BTDiagnostics.H:195
amrex::Real get_snapshot_domain_hi(int i_buffer, int idim) override
Definition: BTDiagnostics.H:417
bool buffer_full(int i_buffer)
Definition: BTDiagnostics.H:309
amrex::Vector< int > m_field_buffer_multifab_defined
Definition: BTDiagnostics.H:332
BTDiagnostics(int i, std::string name)
Definition: BTDiagnostics.cpp:55
amrex::Vector< int > m_max_buffer_multifabs
Definition: BTDiagnostics.H:224
bool buffer_empty(int i_buffer)
Definition: BTDiagnostics.H:317
void set_buffer_k_index_hi(int i_buffer, int kindex) override
Definition: BTDiagnostics.H:415
void RedistributeParticleBuffer(int i_buffer)
Definition: BTDiagnostics.cpp:1116
void SetSnapshotFullStatus(int i_buffer)
Definition: BTDiagnostics.cpp:887
amrex::Vector< int > m_buffer_flush_counter
Definition: BTDiagnostics.H:236
bool DoComputeAndPack(int step, bool force_flush=false) override
Definition: BTDiagnostics.cpp:321
void InterleaveSpeciesHeader(std::string buffer_species_Header_path, std::string snapshot_species_Header_path, std::string species_name, int new_data_index)
Definition: BTDiagnostics.cpp:1369
amrex::Vector< amrex::Box > m_buffer_box
Definition: BTDiagnostics.H:192
bool m_plot_raw_fields_guards
Definition: BTDiagnostics.H:37
void UpdateVarnamesForRZopenPMD()
Definition: BTDiagnostics.cpp:596
void PrepareParticleDataForOutput() override
Definition: BTDiagnostics.cpp:1454
amrex::Vector< amrex::Real > m_current_z_boost
Definition: BTDiagnostics.H:198
void UpdateBufferData() override
Definition: BTDiagnostics.cpp:763
void InitializeParticleFunctors() override
Definition: BTDiagnostics.cpp:1414
void InitializeBufferData(int i_buffer, int lev, bool restart=false) override
Definition: BTDiagnostics.cpp:332
void ResetTotalParticlesInBuffer(int i_buffer)
Definition: BTDiagnostics.cpp:1501
void DefineSnapshotGeometry(int i_buffer, int lev)
Definition: BTDiagnostics.cpp:956
bool m_plot_raw_fields
Definition: BTDiagnostics.H:35
amrex::Vector< int > m_buffer_k_index_hi
Definition: BTDiagnostics.H:240
bool m_do_back_transformed_fields
Definition: BTDiagnostics.H:144
amrex::Real m_gamma_boost
Definition: BTDiagnostics.H:157
amrex::Vector< amrex::IntVect > m_snapshot_ncells_lab
Definition: BTDiagnostics.H:186
amrex::Vector< amrex::Vector< amrex::Geometry > > m_geom_snapshot
Definition: BTDiagnostics.H:212
int get_last_valid_Zslice(int i_buffer) override
Definition: BTDiagnostics.H:420
amrex::Real get_snapshot_domain_lo(int i_buffer, int idim) override
Definition: BTDiagnostics.H:416
int get_flush_counter(int i_buffer) override
Definition: BTDiagnostics.H:418
void ResetBufferCounter(int i_buffer)
Definition: BTDiagnostics.H:337
amrex::Vector< int > m_first_flush_after_restart
Definition: BTDiagnostics.H:322
amrex::Vector< amrex::Box > m_snapshot_box
Definition: BTDiagnostics.H:189
void PrepareBufferData() override
Definition: BTDiagnostics.cpp:740
void InitializeFieldFunctors(int lev) override
Definition: BTDiagnostics.cpp:525
amrex::Real UpdateCurrentZBoostCoordinate(amrex::Real t_lab, amrex::Real t_boost)
Definition: BTDiagnostics.H:278
int m_num_snapshots_lab
Definition: BTDiagnostics.H:166
amrex::Vector< amrex::Real > m_t_lab
Definition: BTDiagnostics.H:178
void set_flush_counter([[maybe_unused]] int i_buffer, int flush_counter) override
Definition: BTDiagnostics.H:419
int get_buffer_k_index_hi(int i_buffer) override
Definition: BTDiagnostics.H:414
amrex::Vector< int > m_snapshot_geometry_defined
Definition: BTDiagnostics.H:330
void InterleaveParticleDataHeader(std::string buffer_ParticleHdrFilename, std::string snapshot_ParticleHdrFilename)
Definition: BTDiagnostics.cpp:1393
bool GetZSliceInDomainFlag(int i_buffer, int lev)
Definition: BTDiagnostics.cpp:979
base class for diagnostics. Contains main routines to filter, compute and flush diagnostics.
Definition: Diagnostics.H:31
This class is a parser for multiple slices of the form x,y,z,... where x, y and z are slices of the f...
Definition: IntervalsParser.H:177
static constexpr auto c
vacuum speed of light [m/s]
Definition: constant.H:44
i
Definition: check_interp_points_and_weights.py:174
name
Definition: run_automated.py:229
float dt
Definition: stencil.py:442
string field
Definition: video_yt.py:31