commit 8aa0513bbe33bf49180924aedce4e2a721cf5feb
parent a0910550a278832bbe9edc0f75c7fd7691732ff6
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Tue, 4 Apr 2017 12:47:59 +0200
Add a first test on hemispheres.
Diffstat:
4 files changed, 56 insertions(+), 0 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -156,6 +156,7 @@ if(NOT NO_TEST)
add_test_simulation(test04)
add_test_simulation(test05)
add_test_simulation(test06)
+ add_test_simulation(test07)
endif()
diff --git a/yaml/test07.ref b/yaml/test07.ref
@@ -0,0 +1,12 @@
+#--- Sun direction: 0 90 (-6.12323e-17 -0 -1)
+7 1 1 10000 0
+110.217 0
+0 0
+0.911235 0.000596785
+0 0
+100 0
+0 0
+0 0
+square_receiver 2 100 FRONT: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 BACK: 0 0 94.89 0.220202 0 0 0 0 0 0
+reflector 6 110.217 10000 0 0 0 0
+2 6 FRONT: -1 -1 -1 -1 -1 -1 -1 -1 BACK: 0 0 94.89 0.220202 0 0 0 0
diff --git a/yaml/test07.yaml b/yaml/test07.yaml
@@ -0,0 +1,42 @@
+- sun: &sun { dni: 1 }
+
+- material: &specular
+ front:
+ mirror: { reflectivity: 1, roughness: 0 }
+ back:
+ mirror: { reflectivity: 1, roughness: 0 }
+
+- geometry: &hemisphere
+ - material: *specular
+ hemisphere:
+ radius: 10
+ clip:
+ - operation: AND
+ vertices:
+ - [-5.00, -5.00]
+ - [-5.00, 5.00]
+ - [5.00, 5.00]
+ - [5.00, -5.00]
+
+- geometry: &big_square
+ - material: { virtual: }
+ plane:
+ clip:
+ - operation: AND
+ vertices:
+ - [-5.00, -5.00]
+ - [-5.00, 5.00]
+ - [5.00, 5.00]
+ - [5.00, -5.00]
+
+- entity:
+ name: "reflector"
+ primary: 1
+ transform: { rotation: [0, 0, 0], translation: [0, 0, 0] }
+ geometry: *hemisphere
+
+- entity:
+ name: "square_receiver"
+ primary: 0
+ transform: { rotation: [0, 0, 0], translation: [0, 0, 2] }
+ geometry: *big_square
diff --git a/yaml/test07_receiver.yaml b/yaml/test07_receiver.yaml
@@ -0,0 +1 @@
+- { name: "square_receiver", side: BACK }