|
ARTEMIS
|
#include <ChargeOnEB.H>
Public Member Functions | |
| ChargeOnEB (std::string rd_name) | |
| virtual void | ComputeDiags (const int step) override final |
Public Member Functions inherited from ReducedDiags | |
| ReducedDiags (std::string rd_name) | |
| virtual | ~ReducedDiags ()=default |
| virtual void | InitData () |
| virtual void | LoadBalance () |
| virtual void | WriteToFile (int step) const |
| void | BackwardCompatibility () |
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 | |
Public Attributes inherited from ReducedDiags | |
| 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... | |
| int | m_IsNotRestart = 1 |
| check if it is a restart run More... | |
| std::string | m_sep = " " |
| separator 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 | ( | std::string | rd_name | ) |
constructor
| [in] | rd_name | reduced diags names |
|
finaloverridevirtual |
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.