WarpX
Namespaces | Functions
WarpXUtil.cpp File Reference
#include "WarpXUtil.H"
#include "WarpXConst.H"
#include "WarpX.H"
#include <AMReX_ParmParse.H>
#include <cmath>
#include <fstream>

Namespaces

 WarpXUtilIO
 
 WarpXUtilMsg
 
 WarpXUtilStr
 

Functions

void ReadBoostedFrameParameters (Real &gamma_boost, Real &beta_boost, Vector< int > &boost_direction)
 
void ConvertLabParamsToBoost ()
 
void NullifyMF (amrex::MultiFab &mf, int lev, amrex::Real zmin, amrex::Real zmax)
 
bool WarpXUtilIO::WriteBinaryDataOnFile (std::string filename, const amrex::Vector< char > &data)
 
void Store_parserString (amrex::ParmParse &pp, std::string query_string, std::string &stored_string)
 Parse a string (typically a mathematical expression) from the input file and store it into a variable. More...
 
WarpXParser makeParser (std::string const &parse_function, std::vector< std::string > const &varnames)
 Initialize a WarpXParser object from a string containing a math expression. More...
 
void CheckGriddingForRZSpectral ()
 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. More...
 
void WarpXUtilMsg::AlwaysAssert (bool is_expression_true, const std::string &msg)
 If is_expression_true is false, this function prints msg and calls amrex::abort() More...
 
bool WarpXUtilStr::is_in (const std::vector< std::string > &vect, const std::string &elem)
 
bool WarpXUtilStr::is_in (const std::vector< std::string > &vect, const std::vector< std::string > &elems)
 

Function Documentation

◆ CheckGriddingForRZSpectral()

void CheckGriddingForRZSpectral ( )

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.

Ensures that the blocks are setup correctly for the RZ spectral solver.

◆ ConvertLabParamsToBoost()

void ConvertLabParamsToBoost ( )

◆ makeParser()

WarpXParser makeParser ( std::string const &  parse_function,
std::vector< std::string > const &  varnames 
)

Initialize a WarpXParser object from a string containing a math expression.

Parameters
parse_functionString to read to initialize the parser.

◆ NullifyMF()

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

◆ ReadBoostedFrameParameters()

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

◆ Store_parserString()

void Store_parserString ( amrex::ParmParse &  pp,
std::string  query_string,
std::string &  stored_string 
)

Parse a string (typically a mathematical expression) from the input file and store it into a variable.

Parameters
ParmParsepp used to read the query_string pp.<function>=string
parmparse_stringString used to initialize ParmParse
query_stringParmParse.query will look for this string
stored_stringvariable in which the string to parse is stored