commit 91acea965bf71abbf565e8554e8d45b976027fa7
parent 8919228a6fda9e679b8f284bac0143347fd62d7d
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Wed, 15 Mar 2017 14:20:39 +0100
Register a new test model.
Diffstat:
4 files changed, 71 insertions(+), 0 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -155,6 +155,7 @@ if(NOT NO_TEST)
add_test_simulation(test03)
add_test_simulation(test04)
add_test_simulation(test05)
+ add_test_simulation(test06)
endif()
diff --git a/yaml/test06.ref b/yaml/test06.ref
@@ -0,0 +1,7 @@
+#--- Sun direction: 0 63 (-0.45399 -0 -0.891007)
+3 1 1 10000 0
+0 0 # Shadowing
+0 0 # Missing
+1 0 # Cos
+reflector.ground.pivot.small_square 10 FRONT: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 BACK: 0 0 100 0 0 0 0 0 0 0
+reflector.ground.pivot.parabol 6 111.97 1 10000 0 0
diff --git a/yaml/test06.yaml b/yaml/test06.yaml
@@ -0,0 +1,62 @@
+- sun: &sun
+ dni: 1
+ spectrum: [{wavelength: 1, data: 1}]
+
+- material: &lambertian
+ front:
+ matte: { reflectivity: 1 }
+ back:
+ matte: { reflectivity: 1 }
+
+- material: &specular
+ mirror: { reflectivity: 1, roughness: 0 }
+
+
+- template: &self_oriented_parabol
+ name: "ground"
+ primary: 0
+ geometry:
+ - material: *lambertian
+ plane:
+ clip:
+ - operation: AND
+ vertices:
+ - [-20.0, -20.0]
+ - [-20.0, 20.0]
+ - [ 20.0, 20.0]
+ - [ 20.0, -20.0]
+ children:
+ - name: "pivot"
+ transform: { translation: [0, 0, 4], rotation: [0, 0, 90] }
+ x_pivot:
+ target: { sun: *sun }
+ children:
+ - name: "parabol"
+ primary: 1
+ geometry:
+ - material: *specular
+ parabol:
+ focal: 4
+ clip:
+ - operation: AND
+ vertices: [[-5.0, -5.0], [-5.0, 5.0], [5.0, 5.0], [5.0, -5.0]]
+ - name: "small_square"
+ transform: { translation: [0, 0, 4] }
+ primary: 0
+ geometry:
+ - material: { virtual: }
+ plane:
+ clip:
+ - operation: AND
+ vertices:
+ - [-0.50, -0.50]
+ - [-0.50, 0.50]
+ - [0.50, 0.50]
+ - [0.50, -0.50]
+
+
+- entity:
+ name: "reflector"
+ transform: { rotation: [0, 0, 0], translation: [0, 0, 0] }
+ children: [ *self_oriented_parabol ]
+
diff --git a/yaml/test06_receiver.yaml b/yaml/test06_receiver.yaml
@@ -0,0 +1 @@
+- { name: "reflector.ground.pivot.small_square", side: BACK }