#include <PsatdAlgorithmJRhomFirstOrder.H>
|
| | PsatdAlgorithmJRhomFirstOrder (const SpectralKSpace &spectral_kspace, const amrex::DistributionMapping &dm, const SpectralFieldIndex &spectral_index, int norder_x, int norder_y, int norder_z, ablastr::utils::enums::GridType grid_type, amrex::Real dt, bool div_cleaning, TimeDependencyJ time_dependency_J, TimeDependencyRho time_dependency_rho) |
| | Constructor of the class PsatdAlgorithmJRhomFirstOrder.
|
| |
| void | pushSpectralFields (SpectralFieldData &f) const final |
| | Updates E, B, F, and G fields in spectral space, according to the first-order PSATD equations.
|
| |
| void | CurrentCorrection (SpectralFieldData &field_data) final |
| | Virtual function for current correction in Fourier space (Vay et al, 2013). This function overrides the virtual function CurrentCorrection in the base class SpectralBaseAlgorithm and cannot be overridden by further derived classes.
|
| |
| void | VayDeposition (SpectralFieldData &field_data) final |
| | Virtual function for Vay current deposition in Fourier space (Vay et al, 2013). This function overrides the virtual function VayDeposition in the base class SpectralBaseAlgorithm and cannot be overridden by further derived classes.
|
| |
| virtual | ~SpectralBaseAlgorithm ()=default |
| |
| | SpectralBaseAlgorithm (const SpectralBaseAlgorithm &)=default |
| |
| SpectralBaseAlgorithm & | operator= (const SpectralBaseAlgorithm &)=default |
| |
| | SpectralBaseAlgorithm (SpectralBaseAlgorithm &&)=default |
| |
| SpectralBaseAlgorithm & | operator= (SpectralBaseAlgorithm &&)=default |
| |
| void | ComputeSpectralDivE (int lev, SpectralFieldData &field_data, ablastr::fields::VectorField const &Efield, amrex::MultiFab &divE) |
| | Compute spectral divergence of E.
|
| |
◆ PsatdAlgorithmJRhomFirstOrder()
| PsatdAlgorithmJRhomFirstOrder::PsatdAlgorithmJRhomFirstOrder |
( |
const SpectralKSpace & | spectral_kspace, |
|
|
const amrex::DistributionMapping & | dm, |
|
|
const SpectralFieldIndex & | spectral_index, |
|
|
int | norder_x, |
|
|
int | norder_y, |
|
|
int | norder_z, |
|
|
ablastr::utils::enums::GridType | grid_type, |
|
|
amrex::Real | dt, |
|
|
bool | div_cleaning, |
|
|
TimeDependencyJ | time_dependency_J, |
|
|
TimeDependencyRho | time_dependency_rho ) |
Constructor of the class PsatdAlgorithmJRhomFirstOrder.
- Parameters
-
| [in] | spectral_kspace | spectral space |
| [in] | dm | distribution mapping |
| [in] | spectral_index | object containing indices to access data in spectral space |
| [in] | norder_x | order of the spectral solver along x |
| [in] | norder_y | order of the spectral solver along y |
| [in] | norder_z | order of the spectral solver along z |
| [in] | grid_type | type of grid (collocated or not) |
| [in] | dt | time step of the simulation |
| [in] | div_cleaning | whether to use divergence correction for both E and B (thus, F and G) |
| [in] | time_dependency_J | time dependency of J (currently supported: constant, linear) |
| [in] | time_dependency_rho | time dependency of rho (currently supported: constant, linear) |
◆ CurrentCorrection()
| void PsatdAlgorithmJRhomFirstOrder::CurrentCorrection |
( |
SpectralFieldData & | field_data | ) |
|
|
finalvirtual |
Virtual function for current correction in Fourier space (Vay et al, 2013). This function overrides the virtual function CurrentCorrection in the base class SpectralBaseAlgorithm and cannot be overridden by further derived classes.
- Parameters
-
| [in,out] | field_data | All fields in Fourier space |
Implements SpectralBaseAlgorithm.
◆ pushSpectralFields()
| void PsatdAlgorithmJRhomFirstOrder::pushSpectralFields |
( |
SpectralFieldData & | f | ) |
const |
|
finalvirtual |
Updates E, B, F, and G fields in spectral space, according to the first-order PSATD equations.
- Parameters
-
| [in,out] | f | all the fields in spectral space |
Implements SpectralBaseAlgorithm.
◆ VayDeposition()
Virtual function for Vay current deposition in Fourier space (Vay et al, 2013). This function overrides the virtual function VayDeposition in the base class SpectralBaseAlgorithm and cannot be overridden by further derived classes.
- Parameters
-
| [in,out] | field_data | All fields in Fourier space |
Implements SpectralBaseAlgorithm.
◆ m_div_cleaning
| bool PsatdAlgorithmJRhomFirstOrder::m_div_cleaning |
|
private |
◆ m_dt
| amrex::Real PsatdAlgorithmJRhomFirstOrder::m_dt |
|
private |
◆ m_time_dependency_J
◆ m_time_dependency_rho
The documentation for this class was generated from the following files: