photonmap.Energy.CalculateEnergy
Functions
|
Write the received energy of all the captors to a file. |
|
Compute the energy on each captor in the scene. |
Module Contents
- photonmap.Energy.CalculateEnergy.write_captor_energy(N_sim, N_calibration, captor_list, bands_spectre, filename)[source]
Write the received energy of all the captors to a file.
Parameters
- N_simdict
Number of received photons on each captor
- N_calibrationdict
The energies after the calibration on each captor
- captor_listarray
The list of captors
- bands_spectre: dict
The divided spectral range used to run the simulation.
- filename: str
The name of output file
Returns
A file with all the received energy of captors saved in folder ./results
- photonmap.Energy.CalculateEnergy.captor_add_energy(captor_dict, integrator, energy)[source]
Compute the energy on each captor in the scene.
Parameters
- captor_dictdict
The dictionary of captor
- integrator: libphotonmap_core.PhotonMapping
The object which handles all the simulation of photon mapping
- energy: dict
The dictionary of captor’s energy