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 6418c166ae1f93931da42ed636f003086e886479
parent 90a6654f883ce704f062c779f3ca8f6c751ec98f
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 12 Dec 2017 11:20:59 +0100

Test the parsing of microfacet YAML attrib

Diffstat:
Msrc/parser/yaml/test_ko_0.yaml | 11+++++++++++
Msrc/parser/yaml/test_ok_1.yaml | 14++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/src/parser/yaml/test_ko_0.yaml b/src/parser/yaml/test_ko_0.yaml @@ -186,6 +186,7 @@ # mirror: # reflectivity: REAL # in [0, 1] # roughness: REAL # in [0, 1] +# [ microfacet: <BECKMANN|PILLBOX> ] # # missing mirror definition @@ -224,6 +225,16 @@ # 2x roughness - material: { mirror: { roughness: 1, roughness: 1 } } --- +# unknown microfacet +- material: { mirror: { roughness: 1, reflectivity: 1, microfacet: BECKBOX }} +--- +# 2x microfacet +- material: + mirror: + roughness: 1 + reflectivity: 1 + microfacet: BECKMANN + microfacet: PILLBOX # # <matte> ::= diff --git a/src/parser/yaml/test_ok_1.yaml b/src/parser/yaml/test_ok_1.yaml @@ -26,6 +26,7 @@ mirror: reflectivity: 1 roughness: 0 + microfacet: BECKMANN - geometry: &cylinder - material: *mirror @@ -56,3 +57,16 @@ geometry: - material: { mirror: { reflectivity: 0, roughness: 0.5 } } cylinder: { height: 1, radius: 1 } +--- +- sun: { dni: 1, spectrum: [{wavelength: 1, data: 1}] } +- entity: + name: entity + primary: 1 + geometry: + - cylinder: { height: 1, radius: 1 } + material: + mirror: + microfacet: PILLBOX + reflectivity: 0 + roughness: 0.5 +