WarpX
|
This class mainly contains a function that computes the field momentum. More...
#include <FieldMomentum.H>
Public Member Functions | |
FieldMomentum (const std::string &rd_name) | |
Constructor. More... | |
void | ComputeDiags (int step) final |
This function computes the electromagnetic momentum, obtained by integrating the electromagnetic momentum density g = eps0 * (E x B). More... | |
![]() | |
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 | InitData () |
virtual void | LoadBalance () |
virtual void | WriteToFile (int step) const |
void | BackwardCompatibility () const |
Additional Inherited Members | |
![]() | |
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... | |
bool | m_write_header = false |
check if header should be written More... | |
std::string | m_sep = " " |
separator in the output file More... | |
int | m_precision = 14 |
precision for data in the output file More... | |
std::vector< amrex::Real > | m_data |
output data More... | |
This class mainly contains a function that computes the field momentum.
FieldMomentum::FieldMomentum | ( | const std::string & | rd_name | ) |
Constructor.
[in] | rd_name | reduced diags names |
|
finalvirtual |
This function computes the electromagnetic momentum, obtained by integrating the electromagnetic momentum density g = eps0 * (E x B).
[in] | step | current time step |
Implements ReducedDiags.