Hipace
Classes | Functions | Variables
Fields.H File Reference
#include "fft_poisson_solver/FFTPoissonSolver.H"
#include "diagnostics/Diagnostic.H"
#include "laser/MultiLaser.H"
#include "utils/GPUUtil.H"
#include <AMReX_MultiFab.H>
#include <AMReX_Vector.H>
#include <AMReX_AmrCore.H>
#include <algorithm>

Go to the source code of this file.

Classes

struct  WhichSlice
 describes which slice with respect to the currently calculated is used More...
 
struct  assert_map
 
struct  Direction
 Direction of each dimension. Can be used for clean handling 2D vs. 3D in the future. More...
 
class  Fields
 Main class handling all field data structures and operations. More...
 

Functions

amrex::Real GetPosOffset (const int dir, const amrex::Geometry &geom, const amrex::Box &box)
 Function to help converting field indexes to positions and backwards. Usage: x = i * dx + GetPosOffset(0, geom, box) i = round( (x - GetPosOffset(0, geom, box)) / dx ) More...
 

Variables

std::array< assert_map, WhichSlice::NComps {}
 Map names and indices of each fields in each slice. More...
 
int N_Comps {0}
 number of fields in each slice More...
 

Function Documentation

◆ GetPosOffset()

amrex::Real GetPosOffset ( const int  dir,
const amrex::Geometry geom,
const amrex::Box box 
)
inline

Function to help converting field indexes to positions and backwards. Usage: x = i * dx + GetPosOffset(0, geom, box) i = round( (x - GetPosOffset(0, geom, box)) / dx )

Parameters
[in]dir0, 1 or 2 for x, y or z respectively
[in]geomgeometry of the field
[in]boxbox of the field, can be with or without ghost cells

Variable Documentation

◆ Comps

std::array<assert_map, WhichSlice::N> Comps {}
inline

Map names and indices of each fields in each slice.

◆ N_Comps

int N_Comps {0}
inline

number of fields in each slice