Test Tmin#
[1]:
from openalea.spice.simulator import Simulator
[2]:
simulator = Simulator(config_file="simulation.ini")
simulator.addVirtualDiskSensorsFromFile("./sensors/sensors_expe1.csv")
Test Tmin in complete scene#
[3]:
simulator.test_t_min(int(1e6), 1e-6, 11, False)
Transparent material: Makrolon
---------------------------------
Test Tmin = 1e-06
Backface Culling OFF
nb photons per lights: 125000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 37
Number of photons received in total is 7589
---------------------------------
---------------------------------
Test Tmin = 1e-05
nb photons per lights: 125000
Number of photons received in total is 7653
---------------------------------
---------------------------------
Test Tmin = 0.0001
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 37
nb photons per lights: 125000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 37
Number of photons received in total is 7631
---------------------------------
---------------------------------
Test Tmin = 0.001
nb photons per lights: 125000
Tracing photons from light n° 1/8...
Number of photons received in total is 7838
---------------------------------
---------------------------------
Test Tmin = 0.01
Number of photons received in total is 7823
---------------------------------
---------------------------------
Test Tmin = 0.1
Number of photons received in total is 7842
---------------------------------
---------------------------------
Test Tmin = 1.0
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 43
nb photons per lights: 125000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 43
nb photons per lights: 125000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 43
nb photons per lights: 125000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 43
Number of photons received in total is 8002
---------------------------------
---------------------------------
Test Tmin = 10.0
nb photons per lights: 125000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 38
Number of photons received in total is 9325
---------------------------------
---------------------------------
Test Tmin = 100.0
nb photons per lights: 125000
Tracing photons from light n° 1/8...
Number of photons received in total is 9125
---------------------------------
---------------------------------
Test Tmin = 1000.0
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 36
Number of photons received in total is 2144
---------------------------------
---------------------------------
Test Tmin = 10000.0
nb photons per lights: 125000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 11
nb photons per lights: 125000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 0
Number of photons received in total is 0
---------------------------------
Test Tmin in scene with only lamps and captors#
[4]:
simulator.test_t_min(int(1e7), 1e-6, 11, True)
Transparent material: Makrolon
---------------------------------Backface Culling OFF
Test Tmin = 1e-06
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 3
Number of photons received in total is 27381
---------------------------------
---------------------------------
Test Tmin = 1e-05
Number of photons received in total is 27381
---------------------------------
---------------------------------
Test Tmin = 0.0001
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 3
Number of photons received in total is 27378
---------------------------------
---------------------------------
Test Tmin = 0.001
Number of photons received in total is 25091
---------------------------------
---------------------------------
Test Tmin = 0.01
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 3
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 2
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 2
Number of photons received in total is 24974
---------------------------------
---------------------------------
Test Tmin = 0.1
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 2
Number of photons received in total is 24958
---------------------------------
---------------------------------
Test Tmin = 1.0
Number of photons received in total is 24985
---------------------------------
---------------------------------
Test Tmin = 10.0
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 2
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 2
Number of photons received in total is 24985
---------------------------------
---------------------------------
Test Tmin = 100.0
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 2
Number of photons received in total is 24985
---------------------------------
---------------------------------
Test Tmin = 1000.0
Number of photons received in total is 15985
---------------------------------
---------------------------------
Test Tmin = 10000.0
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 1
nb photons per lights: 1250000
Tracing photons from light n° 1/8...
Tracing photons from light n° 2/8...
Tracing photons from light n° 3/8...
Tracing photons from light n° 4/8...
Tracing photons from light n° 5/8...
Tracing photons from light n° 6/8...
Tracing photons from light n° 7/8...
Tracing photons from light n° 8/8...
Max depth possible: 0
Number of photons received in total is 0
---------------------------------