-
Notifications
You must be signed in to change notification settings - Fork 10
Quick Start Guide
Simulations are run in two parts:
- Propagate photons to receiver plane.
This happens inside of photon_sim_r4.m. Given a number of photons and a number of simulations, num_sims, to run. This program will run and save num_sims output files to the directory stored in dataDir. A unique folder will be created in dataDir that matches the date and time the simulation is run.
- Iterate over receivers to find received power, etc.
This happens inside of standaloneReceiver_rev2.m. Given an array of FOVs and aperture sizes, the program iterates over all the files stored in the dataDirectory directory and finds how many photons intersect each of the receivers stored in rec_fov, rec_pos, and rec_aperture.
- Finally, save the data.
The most useful data (received power) is stored in the normRxPower variable. The total_photons variable specifies how many individual paths were received in each receiver (this is useful to determine if there's enough for statistical confidence on the answer)