Hi Greg,
Yes, this is exactly the reason. We don’t keep the DC matrix around, but need exactly the same results on a re-run, when the DC matrix is calculated again. Hence my insistance on using discreet suns (even for the sky contribution), as opposed to sky patches.
I think I need to break this down a bit:
a) Am I right in saying that gendaymtx -5
does two things:
– Disable ‘smudging’, so for each timestep we have exactly one discreet sun? I guess this is mostly for visualisation purposes.
– adjust brightness for the much smaller solid angle of the sun vs sky patch
$ gendaymtx -d -m 4 GBR_Gatwick-0321-1130.wea |getinfo - |grep -v '0 0 0'
1.99e+03 1.99e+03 1.99e+03
2.53e+03 2.53e+03 2.53e+03
2.61e+03 2.61e+03 2.61e+03
3.51e+03 3.51e+03 3.51e+03
$ gendaymtx -5 0.533 -d -m 4 GBR_Gatwick-0321-1130.wea |getinfo - |grep -v '0 0 0'
4.44e+05 4.44e+05 4.44e+05
b) gendaymtx -5
is only meant to work for the direct solar component. This seems to be where I’m trying to get it to do something it wasn’t meant to do.
Here is a very simply one-timestep wea file:
$ cat GBR_Gatwick-0321-1130.wea
place LONDON/GATWICK_GBR
latitude 51.15
longitude 0.18
time_zone -0
site_elevation 62.0
weather_data_file_units 1
3 23 11.500 57 287
Now I run all combinations of [‘exclude nothing’, ‘exclude sky’, ‘exclude sun’] and [‘not 5-phase’ and ‘5-phase’]. I would, of course, need the -O1
as well for PV assessments:
wea=GBR_Gatwick-0321-1130.wea
$ for five in '' '-5 0.533'; do for excl in '' '-d' '-s'; do echo -n "excl: '$excl'; five: '$five' -> "; gendaymtx $five -m 1 -g 0 0 0 -c 1 1 1 $excl $wea |sed -n '105p' |cut -d' ' -f1; done; done
excl: ''; five: '' -> 657
excl: '-d'; five: '' -> 425
excl: '-s'; five: '' -> 232
excl: ''; five: '-5 0.533' -> 4.44e+05
excl: '-d'; five: '-5 0.533' -> 4.44e+05
excl: '-s'; five: '-5 0.533' -> 232
The not-5-Phase results (sky patches) look convincing: direct and diffuse add up to global.
The 5-Phase results are odd. Both ‘exclude nothing’ and ‘exclude sky -s’ don’t account for the solid angle of my deterministic suns. Because this is not what the -5
option was ever meant to do.
Therefore, I seem to be better off with a straight-forward genskymtx
(sun and sky component; no 5-phase), and account for the much smaller solid angles of my discreet suns some other way. Also because I like the ‘smudging’ for this kind of cumulative PV assessment.
Is this what you suggest with the on-liner that creates mysuns4.rad? It adjusts the brightness of the solar discs according to the solid angle of the sky patch, which is base on the altitude of the ‘band’.
Here is one of your suns:
void light solar2 0 0 3 48.2247 48.2247 48.2247
solar2 source sun2 0 0 4 0.0523161 0.99825 0.0275543 0.5
Following both Andy’s and Sarith’s tutorials, this would be:
void light solar 0 0 3 1e6 1e6 1e6
solar source sun 0 0 4 0.0523161 0.99825 0.0275543 0.533
Andy’s suns all have a high brightness of 1e6, and they all use the same material ‘solar’.
Your suns all have their own modifiers, but a low brightness (accounting for the solid angle of the sky patch).
Would I be using your mysuns4.rad file with a non-5-phase gendaymtx
?
Sorry it’s taking me so long to get there. Many thanks for your help
-Axel