WarpX
Namespaces | Functions
WarpXUtil.H File Reference
#include <AMReX_BoxArray.H>
#include <AMReX_DistributionMapping.H>
#include <AMReX_Extension.H>
#include <AMReX_GpuQualifiers.H>
#include <AMReX_LayoutData.H>
#include <AMReX_ParmParse.H>
#include <AMReX_Parser.H>
#include <AMReX_REAL.H>
#include <AMReX_Utility.H>
#include <AMReX_Vector.H>
#include <AMReX_BaseFwd.H>
#include <cstddef>
#include <cstdint>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 WarpXUtilIO
 
 WarpXUtilAlgo
 
 WarpXUtilLoadBalance
 

Functions

void ParseGeometryInput ()
 
void ReadBoostedFrameParameters (amrex::Real &gamma_boost, amrex::Real &beta_boost, amrex::Vector< int > &boost_direction)
 
void ConvertLabParamsToBoost ()
 
void ReadBCParams ()
 
void CheckDims ()
 
void CheckGriddingForRZSpectral ()
 
void NullifyMF (amrex::MultiFab &mf, int lev, amrex::Real zmin, amrex::Real zmax)
 
bool WarpXUtilIO::WriteBinaryDataOnFile (const std::string &filename, const amrex::Vector< char > &data)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void WarpXUtilAlgo::getCellCoordinates (int i, int j, int k, amrex::GpuArray< int, 3 > const mf_type, amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const domain_lo, amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const dx, amrex::Real &x, amrex::Real &y, amrex::Real &z)
 Compute physical coordinates (x,y,z) that correspond to a given (i,j,k) and the corresponding staggering, mf_type. More...
 
bool WarpXUtilLoadBalance::doCosts (const amrex::LayoutData< amrex::Real > *cost, const amrex::BoxArray &ba, const amrex::DistributionMapping &dm)
 We only want to update the cost data if the grids we are working on are the main grids, i.e. not the PML grids. This function returns whether this is the case or not. More...
 

Function Documentation

◆ CheckDims()

void CheckDims ( )

Check the warpx.dims matches the binary name

◆ CheckGriddingForRZSpectral()

void CheckGriddingForRZSpectral ( )

Check the warpx.dims matches the binary name & set up RZ gridding

Ensures that the blocks are setup correctly for the RZ spectral solver When using the RZ spectral solver, the Hankel transform cannot be divided among multiple blocks. Each block must extend over the entire radial extent. The grid can be divided up along z, but the number of blocks must be >= the number of processors.

◆ ConvertLabParamsToBoost()

void ConvertLabParamsToBoost ( )

◆ NullifyMF()

void NullifyMF ( amrex::MultiFab mf,
int  lev,
amrex::Real  zmin,
amrex::Real  zmax 
)

◆ ParseGeometryInput()

void ParseGeometryInput ( )

◆ ReadBCParams()

void ReadBCParams ( )

Reads the user-defined field and particle boundary condition parameters

◆ ReadBoostedFrameParameters()

void ReadBoostedFrameParameters ( amrex::Real &  gamma_boost,
amrex::Real &  beta_boost,
amrex::Vector< int > &  boost_direction 
)