Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTD fields with RZ + openPMD - single mode only #3350

Merged
merged 11 commits into from
Oct 31, 2022
17 changes: 17 additions & 0 deletions Source/Diagnostics/BTDiagnostics.H
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ private:
* is initialized.
*/
void InitializeFieldFunctors (int lev) override;

void InitializeFieldFunctorsRZopenPMD (int lev) override;
RevathiJambunathan marked this conversation as resolved.
Show resolved Hide resolved
/** Whether to dump the RZ modes */
bool m_dump_rz_modes = false;
void AddRZModesToOutputNames (const std::string& field, const int ncomp, bool cellcenter_data);
RevathiJambunathan marked this conversation as resolved.
Show resolved Hide resolved
/** This function allocates and initializes particle buffers for all the snapshots.
* This is currently an empty function:
* The particle containers required for this must be added to populate this function.
Expand Down Expand Up @@ -313,9 +318,20 @@ private:
* All the fields are stored regardless of the specific fields to plot selected
* by the user.
*/
#ifdef WARPX_DIM_RZ
amrex::Vector< std::string > m_cellcenter_varnames = {"Er", "Et", "Ez",
"Br", "Bt", "Bz",
"jr", "jt", "jz", "rho"};
amrex::Vector< std::string > m_cellcenter_varnames_fields = {"Er", "Et", "Ez",
"Br", "Bt", "Bz",
"jr", "jt", "jz",
"rho"};
#else
amrex::Vector< std::string > m_cellcenter_varnames = {"Ex", "Ey", "Ez",
"Bx", "By", "Bz",
"jx", "jy", "jz", "rho"};
#endif


/** Merge the lab-frame buffer multifabs so it can be visualized as
* a single plotfile
Expand Down Expand Up @@ -356,6 +372,7 @@ private:
void ClearParticleBuffer(int i_buffer);
/** Redistributes particles to the buffer box array in the lab-frame */
void RedistributeParticleBuffer (const int i_buffer);
void UpdateVarnamesForRZopenPMD();

};
#endif // WARPX_BTDIAGNOSTICS_H_
Loading