WarpX
|
#include <ChargeOnEB.H>
Public Member Functions | |
ChargeOnEB (const std::string &rd_name) | |
void | ComputeDiags (int step) final |
![]() | |
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 |
Private Attributes | |
std::unique_ptr< amrex::Parser > | m_parser_weighting |
Optional parser to add weight inside the integral. More... | |
bool | m_do_parser_weighting = false |
Whether the weighting is activated. More... | |
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 total charge at the surface of the embedded boundary, by using the formula $Q_{tot} = \epsilon_0 \iint dS \cdot E$ where the integral is performed over the surface of the embedded boundary.
If a weighting function is provided, this computes $Q_{tot} = \epsilon_0 \iint dS \cdot E \times weighting(x, y, z)
ChargeOnEB::ChargeOnEB | ( | const std::string & | rd_name | ) |
constructor
[in] | rd_name | reduced diags names |
|
finalvirtual |
This function computes the charge at the surface of the EB: $Q_{tot} = \epsilon_0 \iint dS \cdot E$ where the integral is performed over the EB surface
[in] | step | current time step |
Implements ReducedDiags.
|
private |
Whether the weighting is activated.
|
private |
Optional parser to add weight inside the integral.