solstice

Compute collected power and efficiencies of a solar plant
git clone git://git.meso-star.com/solstice.git
Log | Files | Refs | README | LICENSE

commit 5ae1cc8909a10c3f41b9eaef17d2ae2fc873332e
parent c2a24f515e1b0a3b6e068927956f28d72fc141c2
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Thu, 26 Jan 2017 12:12:15 +0100

Add the primary parameter to entity-data.

Diffstat:
Mdoc/input | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/doc/input b/doc/input @@ -27,6 +27,7 @@ # Create the solar factory - entity: name: "entity0" + primary: 0 transform: { rotation: [0, 90, 0] } anchors: - name: "anchor0" @@ -42,6 +43,7 @@ - template: &composition name: "composition" + primary: 1 transform: { translation: [1, 2, 3 ] } geometry: - cylinder: { height: 5, radius: 0.5 } @@ -60,16 +62,19 @@ - entity: name: "entity2" + primary: 0 transform: { translation: [4, 5, 6] } children: [ *composition ] - entity: name: "entity3" + primary: 0 transform: { translation: [7, 8, 9] } children: [ *composition ] - entity: name: "entity4" + primary: 1 transform: { translation: [10, 11, 12] } children: [ *composition ] @@ -114,7 +119,6 @@ | position: <real3> | <sun> - ---------------------------------------- <shape> ::= <cuboid> @@ -209,11 +213,15 @@ <entity-data> ::= name: STRING -[ <geometry> | <pivot> ] +[ <geometry-data> | <pivot> ] [ <anchors> ] [ <transform> ] [ <children> ] +<geometry-data> ::= + primary: INTEGER # in [0, 1] + <geometry> + <children> ::= children: - <entity-data>