solstice

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

test_ok_0.yaml (1784B)


      1 - sun: { dni: 1, spectrum: [{wavelength: 1, data: 1}] }
      2 - entity:
      3     name: "entity"
      4     primary: 0
      5     transform:
      6       rotation: [ 0, 1, 2 ]
      7       translation: [ -4, 5.2, -6.5 ]
      8     geometry:
      9       - cuboid: { size: [1, 2, 3] }
     10         material: { matte: { reflectivity: 1 } }
     11 
     12 ---
     13 - sun: { dni: 1, spectrum: [{wavelength: 1, data: 1}] }
     14 - entity:
     15     name: "entity"
     16     primary: 0
     17     transform: { translation: [ 1, 2, 0 ] }
     18     geometry:
     19       - transform:
     20           rotation: [ 0, 1, 2 ]
     21         material: { matte: { reflectivity: 1 } }
     22         cuboid: { size: [1, 2, 3] }
     23 
     24 ---
     25 - sun: { dni: 1, spectrum: [{wavelength: 1, data: 1}] }
     26 - entity:
     27     name: "entity"
     28     primary: 0
     29     geometry:
     30       - material: { matte: { reflectivity: 1 } }
     31         cuboid: { size: [1, 2, 3] }
     32 
     33 ---
     34 - material: &lambertian
     35     matte: { reflectivity: 1 }
     36 
     37 - entity:
     38     name: "entity"
     39     primary: 0
     40     geometry:
     41       - material: *lambertian
     42         cuboid: { size: [1, 2, 3] }
     43 - sun: { dni: 1, spectrum: [{wavelength: 1, data: 1}] }
     44 ---
     45 - material: &front { matte: { reflectivity: 1 } }
     46 - material: &back  { matte: { reflectivity: 0.5 } }
     47 - geometry: &cuboid
     48     - cuboid: { size: [1, 2, 3] }
     49       material: { front: *front, back: *back }
     50 - entity: { name: "hop", primary: 1, geometry: *cuboid }
     51 - sun: { dni: 1, spectrum: [{wavelength: 1, data: 1}] }
     52 ---
     53 - spectrum: &sun_spectrum
     54   - { wavelength: 1.1, data: 1.2 }
     55   - { wavelength: 2.2, data: 2.3 }
     56   - { wavelength: 3.3, data: 3.4 }
     57   - { wavelength: 4.4, data: 4.4 }
     58 - material: &lambertian { matte: { reflectivity: 1 } }
     59 - sun: { dni: 1, spectrum: *sun_spectrum }
     60 - entity:
     61     name: hop
     62     primary: 0
     63     geometry: &cuboid
     64       - cuboid: { size: [1, 2, 3] }
     65         material:
     66           front: *lambertian
     67           back: *lambertian
     68