WarpX
Loading...
Searching...
No Matches
FullDiagnostics.H
Go to the documentation of this file.
1#ifndef WARPX_FULLDIAGNOSTICS_H_
2#define WARPX_FULLDIAGNOSTICS_H_
3
4#include "Diagnostics.H"
7
8#include <AMReX_REAL.H>
9
10#include <string>
11
12class FullDiagnostics final : public Diagnostics
13{
14public:
15 FullDiagnostics (int i, const std::string& name, DiagTypes diag_type);
24private:
26 void ReadParameters ();
30 bool m_plot_raw_fields = false;
34 bool m_dump_rz_modes = false;
44 amrex::Real m_average_period_time = -1.0;
48 void Flush (int i_buffer, bool /* force_flush */) override;
50 void FlushRaw ();
52 void DerivedInitData () override;
59 bool DoComputeAndPack (int step, bool force_flush=false) override;
66 bool DoDump (int step, int i_buffer, bool force_flush=false) override;
71 void AddRZModesToOutputNames (const std::string& field, int ncomp);
80 void InitializeBufferData ( int i_buffer, int lev, bool restart=false ) override;
84 void InitializeFieldFunctorsRZopenPMD (int lev) override;
89 void AddRZModesToDiags (int lev);
93 void InitializeFieldFunctors (int lev) override;
94
95 void InitializeParticleBuffer (const MultiParticleContainer& mpc) override;
96
98 void PrepareFieldDataForOutput () override;
106 void MovingWindowAndGalileanDomainShift (int step) override;
110 void BackwardCompatibility ();
111};
112
113#endif // WARPX_FULLDIAGNOSTICS_H_
DiagTypes
Definition Diagnostics.H:25
Diagnostics(int i, std::string name, DiagTypes diag_type)
Definition Diagnostics.cpp:41
void MovingWindowAndGalileanDomainShift(int step) override
Definition FullDiagnostics.cpp:952
int m_average_start_step
Definition FullDiagnostics.H:46
TimeAverageType m_time_average_mode
Definition FullDiagnostics.H:40
void DerivedInitData() override
Definition FullDiagnostics.cpp:66
void BackwardCompatibility()
Definition FullDiagnostics.cpp:231
bool m_plot_raw_fields_guards
Definition FullDiagnostics.H:32
void InitializeFieldFunctors(int lev) override
Definition FullDiagnostics.cpp:816
void FlushRaw()
Definition FullDiagnostics.cpp:294
int m_average_period_steps
Definition FullDiagnostics.H:42
TimeAverageType
Definition FullDiagnostics.H:23
@ None
Definition FullDiagnostics.H:23
@ Static
Definition FullDiagnostics.H:23
@ Dynamic
Definition FullDiagnostics.H:23
bool DoDump(int step, int i_buffer, bool force_flush=false) override
Definition FullDiagnostics.cpp:298
void InitializeFieldFunctorsRZopenPMD(int lev) override
Definition FullDiagnostics.cpp:368
void InitializeBufferData(int i_buffer, int lev, bool restart=false) override
Definition FullDiagnostics.cpp:685
void ReadParameters()
Definition FullDiagnostics.cpp:111
bool m_plot_raw_fields
Definition FullDiagnostics.H:30
amrex::Real m_average_period_time
Definition FullDiagnostics.H:44
utils::parser::IntervalsParser m_intervals
Definition FullDiagnostics.H:28
void InitializeParticleBuffer(const MultiParticleContainer &mpc) override
Definition FullDiagnostics.cpp:87
void Flush(int i_buffer, bool) override
Definition FullDiagnostics.cpp:243
void PrepareParticleDataForOutput() override
Definition FullDiagnostics.H:100
bool DoComputeAndPack(int step, bool force_flush=false) override
Definition FullDiagnostics.cpp:309
bool m_solver_deposits_current
Definition FullDiagnostics.H:38
void AddRZModesToOutputNames(const std::string &field, int ncomp)
Definition FullDiagnostics.cpp:669
bool m_dump_rz_modes
Definition FullDiagnostics.H:34
void AddRZModesToDiags(int lev)
Definition FullDiagnostics.cpp:573
void PrepareFieldDataForOutput() override
Definition FullDiagnostics.cpp:928
FullDiagnostics(int i, const std::string &name, DiagTypes diag_type)
Definition FullDiagnostics.cpp:55
Definition MultiParticleContainer.H:68
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:103