GOAT (Geometrical optics application tool) 0.1
Loading...
Searching...
No Matches
raytrace_usp.h
Go to the documentation of this file.
1#pragma once
2#include "raytrace.h"
3#include "raytrace_inel.h"
4#include "vector.h"
5#include "gridentry.h"
6#include <vector>
7
8namespace GOAT
9{
10 namespace raytracing
11 {
18 public Raytrace
19 {
20 public:
28 void clear();
29 void init();
30 void trace();
31 void storeData();
40 std::vector<SuperArray <std::vector<gridEntry> > > SA;
42 int iR = 0;
44 };
45 }
46}
47
void traceEnterObject()
Function internally called when ray enters an object.
int iR
Number of reflections to consider.
void traceLeaveObject()
Function internally called when ray leaves an object.
gridEntry stack
here, the information from the light source until the region of interest (=box) is reached
Raytrace_usp(const Scene &S, INDEX_TYPE n)
Constructor.
void clear()
Clears the SuperArray grid (SA)
void init()
Initialises the SuperArray grid (SA) according to the objects hold in Scene S.
void storeData()
Store the data in the grid.
void setn(INDEX_TYPE n)
changes the number of (virtual) cells in the calculation space
void trace()
Perform the raytracing process.
INDEX_TYPE n
Number of cells in one direction.
std::vector< SuperArray< std::vector< gridEntry > > > SA
Grid, that holds the information, needed to further calculate the electric field for short pulses The...
Scene S
Description of the scene.
Definition raytrace.h:116
Class defining a scene with lightsources and objects. This is a container used to inform the Raytrace...
Definition raytrace.h:28
Raytracer used for ultrashort pulse calculation with raytracing only.
Definition asphericLens.h:6
long long int INDEX_TYPE
Definition superarray.h:16
This class is used for the iray class. This class is intended for internal use only....
Definition fresnel.h:7
Structure which holds all steps from the light source to the grid point In this structure every step ...
Definition gridentry.h:37
This file contains the Vector template class and some useful functions around this class.