WarpX
|
#include "BoundaryConditions/PMLComponent.H"
#include "Utils/TextMsg.H"
#include <AMReX.H>
#include <AMReX_FArrayBox.H>
Go to the source code of this file.
Functions | |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | warpx_damp_pml_ex (int i, int j, int k, amrex::Array4< amrex::Real > const &Ex, const amrex::IntVect &Ex_stag, const amrex::Real *const sigma_fac_x, const amrex::Real *const sigma_fac_y, const amrex::Real *const sigma_fac_z, const amrex::Real *const sigma_star_fac_x, const amrex::Real *const sigma_star_fac_y, const amrex::Real *const sigma_star_fac_z, int xlo, int ylo, int zlo, const bool dive_cleaning) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | warpx_damp_pml_ey (int i, int j, int k, amrex::Array4< amrex::Real > const &Ey, const amrex::IntVect &Ey_stag, const amrex::Real *const sigma_fac_x, const amrex::Real *const sigma_fac_y, const amrex::Real *const sigma_fac_z, const amrex::Real *const sigma_star_fac_x, const amrex::Real *const sigma_star_fac_y, const amrex::Real *const sigma_star_fac_z, int xlo, int ylo, int zlo, const bool dive_cleaning) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | warpx_damp_pml_ez (int i, int j, int k, amrex::Array4< amrex::Real > const &Ez, const amrex::IntVect &Ez_stag, const amrex::Real *const sigma_fac_x, const amrex::Real *const sigma_fac_y, const amrex::Real *const sigma_fac_z, const amrex::Real *const sigma_star_fac_x, const amrex::Real *const sigma_star_fac_y, const amrex::Real *const sigma_star_fac_z, int xlo, int ylo, int zlo, const bool dive_cleaning) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | warpx_damp_pml_bx (int i, int j, int k, amrex::Array4< amrex::Real > const &Bx, const amrex::IntVect &Bx_stag, const amrex::Real *const sigma_fac_x, const amrex::Real *const sigma_fac_y, const amrex::Real *const sigma_fac_z, const amrex::Real *const sigma_star_fac_x, const amrex::Real *const sigma_star_fac_y, const amrex::Real *const sigma_star_fac_z, int xlo, int ylo, int zlo, const bool divb_cleaning) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | warpx_damp_pml_by (int i, int j, int k, amrex::Array4< amrex::Real > const &By, const amrex::IntVect &By_stag, const amrex::Real *const sigma_fac_x, const amrex::Real *const sigma_fac_y, const amrex::Real *const sigma_fac_z, const amrex::Real *const sigma_star_fac_x, const amrex::Real *const sigma_star_fac_y, const amrex::Real *const sigma_star_fac_z, int xlo, int ylo, int zlo, const bool divb_cleaning) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | warpx_damp_pml_bz (int i, int j, int k, amrex::Array4< amrex::Real > const &Bz, const amrex::IntVect &Bz_stag, const amrex::Real *const sigma_fac_x, const amrex::Real *const sigma_fac_y, const amrex::Real *const sigma_fac_z, const amrex::Real *const sigma_star_fac_x, const amrex::Real *const sigma_star_fac_y, const amrex::Real *const sigma_star_fac_z, int xlo, int ylo, int zlo, const bool divb_cleaning) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | warpx_damp_pml_scalar (int i, int j, int k, amrex::Array4< amrex::Real > const &arr, const amrex::IntVect &arr_stag, const amrex::Real *const sigma_fac_x, const amrex::Real *const sigma_fac_y, const amrex::Real *const sigma_fac_z, const amrex::Real *const sigma_star_fac_x, const amrex::Real *const sigma_star_fac_y, const amrex::Real *const sigma_star_fac_z, int xlo, int ylo, int zlo) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void warpx_damp_pml_bx | ( | int | i, |
int | j, | ||
int | k, | ||
amrex::Array4< amrex::Real > const & | Bx, | ||
const amrex::IntVect & | Bx_stag, | ||
const amrex::Real *const | sigma_fac_x, | ||
const amrex::Real *const | sigma_fac_y, | ||
const amrex::Real *const | sigma_fac_z, | ||
const amrex::Real *const | sigma_star_fac_x, | ||
const amrex::Real *const | sigma_star_fac_y, | ||
const amrex::Real *const | sigma_star_fac_z, | ||
int | xlo, | ||
int | ylo, | ||
int | zlo, | ||
const bool | divb_cleaning | ||
) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void warpx_damp_pml_by | ( | int | i, |
int | j, | ||
int | k, | ||
amrex::Array4< amrex::Real > const & | By, | ||
const amrex::IntVect & | By_stag, | ||
const amrex::Real *const | sigma_fac_x, | ||
const amrex::Real *const | sigma_fac_y, | ||
const amrex::Real *const | sigma_fac_z, | ||
const amrex::Real *const | sigma_star_fac_x, | ||
const amrex::Real *const | sigma_star_fac_y, | ||
const amrex::Real *const | sigma_star_fac_z, | ||
int | xlo, | ||
int | ylo, | ||
int | zlo, | ||
const bool | divb_cleaning | ||
) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void warpx_damp_pml_bz | ( | int | i, |
int | j, | ||
int | k, | ||
amrex::Array4< amrex::Real > const & | Bz, | ||
const amrex::IntVect & | Bz_stag, | ||
const amrex::Real *const | sigma_fac_x, | ||
const amrex::Real *const | sigma_fac_y, | ||
const amrex::Real *const | sigma_fac_z, | ||
const amrex::Real *const | sigma_star_fac_x, | ||
const amrex::Real *const | sigma_star_fac_y, | ||
const amrex::Real *const | sigma_star_fac_z, | ||
int | xlo, | ||
int | ylo, | ||
int | zlo, | ||
const bool | divb_cleaning | ||
) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void warpx_damp_pml_ex | ( | int | i, |
int | j, | ||
int | k, | ||
amrex::Array4< amrex::Real > const & | Ex, | ||
const amrex::IntVect & | Ex_stag, | ||
const amrex::Real *const | sigma_fac_x, | ||
const amrex::Real *const | sigma_fac_y, | ||
const amrex::Real *const | sigma_fac_z, | ||
const amrex::Real *const | sigma_star_fac_x, | ||
const amrex::Real *const | sigma_star_fac_y, | ||
const amrex::Real *const | sigma_star_fac_z, | ||
int | xlo, | ||
int | ylo, | ||
int | zlo, | ||
const bool | dive_cleaning | ||
) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void warpx_damp_pml_ey | ( | int | i, |
int | j, | ||
int | k, | ||
amrex::Array4< amrex::Real > const & | Ey, | ||
const amrex::IntVect & | Ey_stag, | ||
const amrex::Real *const | sigma_fac_x, | ||
const amrex::Real *const | sigma_fac_y, | ||
const amrex::Real *const | sigma_fac_z, | ||
const amrex::Real *const | sigma_star_fac_x, | ||
const amrex::Real *const | sigma_star_fac_y, | ||
const amrex::Real *const | sigma_star_fac_z, | ||
int | xlo, | ||
int | ylo, | ||
int | zlo, | ||
const bool | dive_cleaning | ||
) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void warpx_damp_pml_ez | ( | int | i, |
int | j, | ||
int | k, | ||
amrex::Array4< amrex::Real > const & | Ez, | ||
const amrex::IntVect & | Ez_stag, | ||
const amrex::Real *const | sigma_fac_x, | ||
const amrex::Real *const | sigma_fac_y, | ||
const amrex::Real *const | sigma_fac_z, | ||
const amrex::Real *const | sigma_star_fac_x, | ||
const amrex::Real *const | sigma_star_fac_y, | ||
const amrex::Real *const | sigma_star_fac_z, | ||
int | xlo, | ||
int | ylo, | ||
int | zlo, | ||
const bool | dive_cleaning | ||
) |
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void warpx_damp_pml_scalar | ( | int | i, |
int | j, | ||
int | k, | ||
amrex::Array4< amrex::Real > const & | arr, | ||
const amrex::IntVect & | arr_stag, | ||
const amrex::Real *const | sigma_fac_x, | ||
const amrex::Real *const | sigma_fac_y, | ||
const amrex::Real *const | sigma_fac_z, | ||
const amrex::Real *const | sigma_star_fac_x, | ||
const amrex::Real *const | sigma_star_fac_y, | ||
const amrex::Real *const | sigma_star_fac_z, | ||
int | xlo, | ||
int | ylo, | ||
int | zlo | ||
) |