I would like to calculate the illuminance (Ev) at the observer’s eye position by the simulation of “Honeybee”. Is it possible?
Ev is a parameter in DGP.
The intent is to decompose the first and second parts of DGP. If the illuminance (Ev) of the observation point is known, DGP can be decomposed into terms.
The fact that DGP can be obtained from simulation means that (Ev) in the formula of DGP can also be obtained.
I would like to know if there is a way to extract only illuminance (Ev) from the simulation results.about DGP.pdf (995.4 KB)
Like the original glare component in HB-Legacy, the results are extracted from a dictionary (line 371-373), but this time we can get the detailed results too (line 374-387):
You can get Ev or any other value in the image above by creating an output for it:
Let me know if it does not work for you - try the Grasshopper file below. It will not work if you are setting a task position.
I tried to fix it according to your advice, but it didn’t work again.
I have attached a screenshot of the error screen when I did the test, so please take a look for reference.
I used the HDR image you sent me and the component worked.
So there seems to be a problem with the HDR image I’m using.
I have attached the HDR image I am using.
It’s the same image you sent me from the simulation, but I don’t understand why it doesn’t work.
It failed because for your image outTemp was empty. Your image gives the stderr/err “error: no valid view specified”. In that case HB adds view information as seen below. But because I was trying to get index -2 of outTemp (empty) it failed just before adding the view information (at line 277). The user object below should work for your image as well.
@mikkel nicely done! What do I need to modify to the existing component (except what you have already done) in order to get out the full list of the output per glare source as it normally comes out of evalglare when using the cmd? As you mention the task position input will not work.
Here are the changes of the previous file in this post.
The per source output is in fact already there - it hides in outTemp. I removed the last item (line 88) since it is an empty string, and added it to line 90: