GOAT (Geometrical optics application tool) 0.1
Loading...
Searching...
No Matches
GOAT::raytracing::grid Class Reference

This class provides a grid used for inelastic scattering calculation. More...

#include <grid.h>

Public Member Functions

 grid ()
 grid (int nx, int ny, int nz, double r)
 grid (int nx, int ny, int nz, double xmax, double ymax, double zmax)
maths::Vector< int > gridpunkt (double x0, double y0, double z0)
maths::Vector< int > gridpunkt (maths::Vector< double > &P)
int in_kugel (int ix, int iy, int iz)
void init_grid ()
void init_grid (objectInfo *ein, int anzein)
int inObject (int ix, int iy, int iz, objectInfo ein)
maths::Vector< std::complex< double > > & operator() (int i, int j, int k)
maths::Vector< std::complex< double > > & operator() (maths::Vector< int > &P)
gridoperator= (const grid &g)
void set_parms (int nx, int ny, int nz, int xmax, int ymax, int zmax)
void show_grid ()
void show_grid (char *fname)
 ~grid ()

Public Attributes

maths::Vector< std::complex< double > > DUMMY
double dx
double dy
double dz
int nxmax
int nymax
int nzmax
double rP
double xmax
double ymax
double zmax

Private Member Functions

void delarray ()
int isInside (int ix, int iy, int iz, double x0, double y0, double z0, double r0)
 Function for testing of inside Tests, if the cell with indices ix, iy and iz lies inside a sphere of radius r0 and the center coordinates with the world coordinates x0, y0 and z0.
int isInside (int ix, int iy, int iz, maths::Vector< double > P, double r0)
 Function for testing of inside Tests, if the cell with indices ix, iy and iz lies inside a sphere of radius r0 and the center at p.
maths::Vector< std::complex< double > > **** newarray ()

Private Attributes

double dx2
double dy2
double dz2
 dx2, dy2, dz2 half of the side length in x-, y- and z-direction
maths::Vector< std::complex< double > > **** gridarray

Detailed Description

This class provides a grid used for inelastic scattering calculation.

Definition at line 22 of file grid.h.

Constructor & Destructor Documentation

◆ grid() [1/3]

GOAT::raytracing::grid::grid ( )

◆ grid() [2/3]

GOAT::raytracing::grid::grid ( int nx,
int ny,
int nz,
double xmax,
double ymax,
double zmax )

◆ grid() [3/3]

GOAT::raytracing::grid::grid ( int nx,
int ny,
int nz,
double r )

◆ ~grid()

GOAT::raytracing::grid::~grid ( )

Member Function Documentation

◆ delarray()

void GOAT::raytracing::grid::delarray ( )
private

◆ gridpunkt() [1/2]

maths::Vector< int > GOAT::raytracing::grid::gridpunkt ( double x0,
double y0,
double z0 )

◆ gridpunkt() [2/2]

maths::Vector< int > GOAT::raytracing::grid::gridpunkt ( maths::Vector< double > & P)

◆ in_kugel()

int GOAT::raytracing::grid::in_kugel ( int ix,
int iy,
int iz )

◆ init_grid() [1/2]

void GOAT::raytracing::grid::init_grid ( )

◆ init_grid() [2/2]

void GOAT::raytracing::grid::init_grid ( objectInfo * ein,
int anzein )

◆ inObject()

int GOAT::raytracing::grid::inObject ( int ix,
int iy,
int iz,
objectInfo ein )

◆ isInside() [1/2]

int GOAT::raytracing::grid::isInside ( int ix,
int iy,
int iz,
double x0,
double y0,
double z0,
double r0 )
private

Function for testing of inside Tests, if the cell with indices ix, iy and iz lies inside a sphere of radius r0 and the center coordinates with the world coordinates x0, y0 and z0.

◆ isInside() [2/2]

int GOAT::raytracing::grid::isInside ( int ix,
int iy,
int iz,
maths::Vector< double > P,
double r0 )
private

Function for testing of inside Tests, if the cell with indices ix, iy and iz lies inside a sphere of radius r0 and the center at p.

◆ newarray()

maths::Vector< std::complex< double > > **** GOAT::raytracing::grid::newarray ( )
private

◆ operator()() [1/2]

maths::Vector< std::complex< double > > & GOAT::raytracing::grid::operator() ( int i,
int j,
int k )

◆ operator()() [2/2]

maths::Vector< std::complex< double > > & GOAT::raytracing::grid::operator() ( maths::Vector< int > & P)

◆ operator=()

grid & GOAT::raytracing::grid::operator= ( const grid & g)

◆ set_parms()

void GOAT::raytracing::grid::set_parms ( int nx,
int ny,
int nz,
int xmax,
int ymax,
int zmax )

◆ show_grid() [1/2]

void GOAT::raytracing::grid::show_grid ( )

◆ show_grid() [2/2]

void GOAT::raytracing::grid::show_grid ( char * fname)

Member Data Documentation

◆ DUMMY

maths::Vector<std::complex<double> > GOAT::raytracing::grid::DUMMY

Definition at line 49 of file grid.h.

◆ dx

double GOAT::raytracing::grid::dx

Definition at line 48 of file grid.h.

◆ dx2

double GOAT::raytracing::grid::dx2
private

Definition at line 42 of file grid.h.

◆ dy

double GOAT::raytracing::grid::dy

Definition at line 48 of file grid.h.

◆ dy2

double GOAT::raytracing::grid::dy2
private

Definition at line 42 of file grid.h.

◆ dz

double GOAT::raytracing::grid::dz

Definition at line 48 of file grid.h.

◆ dz2

double GOAT::raytracing::grid::dz2
private

dx2, dy2, dz2 half of the side length in x-, y- and z-direction

Definition at line 42 of file grid.h.

◆ gridarray

maths::Vector<std::complex<double> >**** GOAT::raytracing::grid::gridarray
private

Definition at line 25 of file grid.h.

◆ nxmax

int GOAT::raytracing::grid::nxmax

Definition at line 47 of file grid.h.

◆ nymax

int GOAT::raytracing::grid::nymax

Definition at line 47 of file grid.h.

◆ nzmax

int GOAT::raytracing::grid::nzmax

Definition at line 47 of file grid.h.

◆ rP

double GOAT::raytracing::grid::rP

Definition at line 46 of file grid.h.

◆ xmax

double GOAT::raytracing::grid::xmax

Definition at line 48 of file grid.h.

◆ ymax

double GOAT::raytracing::grid::ymax

Definition at line 48 of file grid.h.

◆ zmax

double GOAT::raytracing::grid::zmax

Definition at line 48 of file grid.h.


The documentation for this class was generated from the following file: