WarpX
Classes | Typedefs | Functions
SpectralKSpace.H File Reference
#include "SpectralKSpace_fwd.H"
#include "Utils/WarpX_Complex.H"
#include <AMReX_Array.H>
#include <AMReX_BoxArray.H>
#include <AMReX_Config.H>
#include <AMReX_GpuContainers.H>
#include <AMReX_LayoutData.H>
#include <AMReX_REAL.H>
#include <AMReX_RealVect.H>
#include <AMReX_Vector.H>
#include <AMReX_BaseFwd.H>

Go to the source code of this file.

Classes

struct  ShiftType
 
class  SpectralKSpace
 Class that represents the spectral space. More...
 

Typedefs

using RealKVector = amrex::Gpu::DeviceVector< amrex::Real >
 
using KVectorComponent = amrex::LayoutData< RealKVector >
 
using SpectralShiftFactor = amrex::LayoutData< amrex::Gpu::DeviceVector< Complex > >
 

Functions

amrex::Vector< amrex::Real > getFornbergStencilCoefficients (const int n_order, const bool nodal)
 Returns an array of coefficients (Fornberg coefficients), corresponding to the weight of each point in a finite-difference approximation of a derivative (up to order n_order). More...
 

Typedef Documentation

◆ KVectorComponent

using KVectorComponent = amrex::LayoutData< RealKVector >

◆ RealKVector

using RealKVector = amrex::Gpu::DeviceVector<amrex::Real>

◆ SpectralShiftFactor

using SpectralShiftFactor = amrex::LayoutData< amrex::Gpu::DeviceVector<Complex> >

Function Documentation

◆ getFornbergStencilCoefficients()

amrex::Vector<amrex::Real> getFornbergStencilCoefficients ( const int  n_order,
const bool  nodal 
)

Returns an array of coefficients (Fornberg coefficients), corresponding to the weight of each point in a finite-difference approximation of a derivative (up to order n_order).

Parameters
[in]n_orderorder of the finite-difference approximation
[in]nodalwhether the finite-difference approximation is computed on a nodal grid or a staggered grid