WarpX
|
#include <SpectralSolverRZ.H>
Public Member Functions | |
SpectralSolverRZ (int lev, amrex::BoxArray const &realspace_ba, amrex::DistributionMapping const &dm, int n_rz_azimuthal_modes, int norder_z, short grid_type, const amrex::Vector< amrex::Real > &v_galilean, amrex::RealVect dx, amrex::Real dt, bool with_pml, bool update_with_rho, bool fft_do_time_averaging, int J_in_time, int rho_in_time, bool dive_cleaning, bool divb_cleaning) | |
void | ForwardTransform (int lev, amrex::MultiFab const &field_mf, int field_index, int i_comp=0) |
void | ForwardTransform (int lev, amrex::MultiFab const &field_mf1, int field_index1, amrex::MultiFab const &field_mf2, int field_index2) |
void | BackwardTransform (int lev, amrex::MultiFab &field_mf, int field_index, int i_comp=0) |
void | BackwardTransform (int lev, amrex::MultiFab &field_mf1, int field_index1, amrex::MultiFab &field_mf2, int field_index2) |
void | pushSpectralFields (bool doing_pml=false) |
void | InitFilter (amrex::IntVect const &filter_npass_each_dir, bool const compensation) |
void | ApplyFilter (const int lev, int const field_index) |
void | ApplyFilter (const int lev, int const field_index1, int const field_index2, int const field_index3) |
void | ComputeSpectralDivE (int lev, const std::array< std::unique_ptr< amrex::MultiFab >, 3 > &Efield, amrex::MultiFab &divE) |
Public interface to call the member function ComputeSpectralDivE of the base class SpectralBaseAlgorithmRZ from objects of class SpectralSolverRZ. More... | |
void | CurrentCorrection () |
Public interface to call the virtual function CurrentCorrection , defined in the base class SpectralBaseAlgorithmRZ and possibly overridden by its derived classes (e.g. PsatdAlgorithmRZ), from objects of class SpectralSolverRZ through the private unique pointer algorithm . More... | |
void | VayDeposition () |
Public interface to call the virtual function VayDeposition , declared in the base class SpectralBaseAlgorithmRZ and defined in its derived classes, from objects of class SpectralSolverRZ through the private unique pointer algorithm . More... | |
void | CopySpectralDataComp (const int src_comp, const int dest_comp) |
Copy spectral data from component src_comp to component dest_comp of field_data.fields . More... | |
void | ZeroOutDataComp (const int icomp) |
Set to zero the data on component icomp of field_data.fields . More... | |
void | ScaleDataComp (const int icomp, const amrex::Real scale_factor) |
Scale the data on component icomp of field_data.fields by a given scale factor. More... | |
Public Attributes | |
SpectralFieldIndex | m_spectral_index |
Private Attributes | |
SpectralKSpaceRZ | k_space |
SpectralFieldDataRZ | field_data |
std::unique_ptr< SpectralBaseAlgorithmRZ > | algorithm |
std::unique_ptr< SpectralBaseAlgorithmRZ > | PML_algorithm |
SpectralSolverRZ::SpectralSolverRZ | ( | int | lev, |
amrex::BoxArray const & | realspace_ba, | ||
amrex::DistributionMapping const & | dm, | ||
int | n_rz_azimuthal_modes, | ||
int | norder_z, | ||
short | grid_type, | ||
const amrex::Vector< amrex::Real > & | v_galilean, | ||
amrex::RealVect | dx, | ||
amrex::Real | dt, | ||
bool | with_pml, | ||
bool | update_with_rho, | ||
bool | fft_do_time_averaging, | ||
int | J_in_time, | ||
int | rho_in_time, | ||
bool | dive_cleaning, | ||
bool | divb_cleaning | ||
) |
|
inline |
void SpectralSolverRZ::BackwardTransform | ( | int | lev, |
amrex::MultiFab & | field_mf, | ||
int | field_index, | ||
int | i_comp = 0 |
||
) |
void SpectralSolverRZ::BackwardTransform | ( | int | lev, |
amrex::MultiFab & | field_mf1, | ||
int | field_index1, | ||
amrex::MultiFab & | field_mf2, | ||
int | field_index2 | ||
) |
void SpectralSolverRZ::ComputeSpectralDivE | ( | int | lev, |
const std::array< std::unique_ptr< amrex::MultiFab >, 3 > & | Efield, | ||
amrex::MultiFab & | divE | ||
) |
Public interface to call the member function ComputeSpectralDivE of the base class SpectralBaseAlgorithmRZ from objects of class SpectralSolverRZ.
Copy spectral data from component src_comp
to component dest_comp
of field_data.fields
.
[in] | src_comp | component of the source FabArray from which the data are copied |
[in] | dest_comp | component of the destination FabArray where the data are copied |
void SpectralSolverRZ::CurrentCorrection | ( | ) |
Public interface to call the virtual function CurrentCorrection
, defined in the base class SpectralBaseAlgorithmRZ and possibly overridden by its derived classes (e.g. PsatdAlgorithmRZ), from objects of class SpectralSolverRZ through the private unique pointer algorithm
.
void SpectralSolverRZ::ForwardTransform | ( | int | lev, |
amrex::MultiFab const & | field_mf, | ||
int | field_index, | ||
int | i_comp = 0 |
||
) |
void SpectralSolverRZ::ForwardTransform | ( | int | lev, |
amrex::MultiFab const & | field_mf1, | ||
int | field_index1, | ||
amrex::MultiFab const & | field_mf2, | ||
int | field_index2 | ||
) |
|
inline |
void SpectralSolverRZ::pushSpectralFields | ( | bool | doing_pml = false | ) |
|
inline |
Scale the data on component icomp
of field_data.fields
by a given scale factor.
[in] | icomp | component of the FabArray where the data are scaled |
[in] | scale_factor | scale factor to use for scaling |
void SpectralSolverRZ::VayDeposition | ( | ) |
Public interface to call the virtual function VayDeposition
, declared in the base class SpectralBaseAlgorithmRZ and defined in its derived classes, from objects of class SpectralSolverRZ through the private unique pointer algorithm
.
|
inline |
Set to zero the data on component icomp
of field_data.fields
.
[in] | icomp | component of the FabArray where the data are set to zero |
|
private |
|
private |
|
private |
SpectralFieldIndex SpectralSolverRZ::m_spectral_index |
|
private |