Skip to content

Struct Grid

ClassList > Grid

Public Attributes

Type Name
PetscInt N0x
PetscInt N0y
shift of grid cells of local grid in global grid
PetscInt Ncx
PetscInt Ncy
number of local grid cells in X and Y directions
PetscInt Nx
PetscInt Nxg
PetscInt Ny
number of local grid edges in X and Y directions
PetscInt Nyg
number of global grid edges in X and Y directions
std::vector< PetscScalar > V_store
electric potential diagnostic storage
std::vector< Boundary > boundaries
also includes periodic boundaries
PetscScalar dx
PetscScalar dy
cell dimensions along X and Y coordinates, in m
Neighbours neighbours
PetscScalar p2n
particle-to-density constant
PetscScalar x1f
start and end extension along X, in m
PetscScalar x1s
PetscScalar x2f
start and end extension along Y, in m
PetscScalar x2s

Public Functions

Type Name
void correct_boundaries ()
void sort_boundaries ()

Public Attributes Documentation

variable N0x

PetscInt Grid::N0x;

variable N0y

shift of grid cells of local grid in global grid

PetscInt Grid::N0y;


variable Ncx

PetscInt Grid::Ncx;

variable Ncy

number of local grid cells in X and Y directions

PetscInt Grid::Ncy;


variable Nx

PetscInt Grid::Nx;

variable Nxg

PetscInt Grid::Nxg;

variable Ny

number of local grid edges in X and Y directions

PetscInt Grid::Ny;


variable Nyg

number of global grid edges in X and Y directions

PetscInt Grid::Nyg;


variable V_store

electric potential diagnostic storage

std::vector< PetscScalar > Grid::V_store;


variable boundaries

also includes periodic boundaries

std::vector<Boundary> Grid::boundaries;


variable dx

PetscScalar Grid::dx;

variable dy

cell dimensions along X and Y coordinates, in m

PetscScalar Grid::dy;


variable neighbours

Neighbours Grid::neighbours;

variable p2n

particle-to-density constant

PetscScalar Grid::p2n;


variable x1f

start and end extension along X, in m

PetscScalar Grid::x1f;


variable x1s

PetscScalar Grid::x1s;

variable x2f

start and end extension along Y, in m

PetscScalar Grid::x2f;


variable x2s

PetscScalar Grid::x2s;

Public Functions Documentation

function correct_boundaries

inline void Grid::correct_boundaries () 

function sort_boundaries

inline void Grid::sort_boundaries ()