Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I am trying to add a new Predicted Mean Vote (from PIERCE foundation, FANGER and PICKUP and DE DEAR), thanks to Python_Script_Editor. But when I tried to visualize the matrix thanks to HoneyBee_Visualize_Microclimate_Map this error appeared "Solution exception:index out of range: 1".

From my understanding, it seems that the HoneyBee_Visualize_Microclimate_Map component can’t directly read a user-defined matrix (for example "radTempMtx*2") and requires that a list of variables be passed (hence the “IronPython.Runtime.List” as a output of the Microclimate_Map analysis).

 

Am I wrong ? And, in any case: is there a workaround to feed the HoneyBee_Visualize_Microclimate_Map component with a user defined matrix?

 

Thank you very much for your time and answer

 

Views: 405

Replies are closed for this discussion.

Replies to This Discussion

Mehdi,

Chris will answer this one much properly, but what i'll do is the following:Basically you need to create a CSV file formated according to the output results of the MicroclimateMap. Then you can read it as a file and input them into the VisualizeMicroclimate.

Run a case where you get such an output to see how the CSV is formated.

-A.

Thank you Abraham,

Unfortunately when I change the values of the csv files thanks to Excel and put the data like it was (, for between numbers) it didn't work. The error from the Honeybee_Visualize Microclimate Map is this time "Solution exception:index out of range: 0". But with the origin csv it works fine.

Do you know why there is this error ?

I thought to create a new csv file thanks to Honeybee_Create CSV Schedule. But I have this error (the Python Script Editor multiplies the radTempMtx per 2) :

 

Attachments:

Hard to say without the files. I believe it is more related to bad formatting than that it is not possible to do.

Just from the image ... can guess many things.

-A.

I found what it was it's just that the csv from excel add some spaces to the csv file.

But now another problem apeared, here the grasshopper file.

Thanks a lot

Attachments:

You have to output the list as a series of numbers and not by printing them out. The component needs 8760 values.

Hi Mostapha,

This is not the issue i believe.

I just don't understand why Mehdi is trying to print/output to a csv file the matrix while it is already an output of the HB_MicroclimateMap component. All the 5 lower output items are producing csv files with the results. So why you don't used them instead of trying to get them from scratch.

In the specific case they are not 8760 values, but rather depending on the analysisPeriod simulated.

-A.

Hi Mostapha,

I'll try to explain what I'm trying to do clearly (it's for a studying project for my school).

The PMV defined in Honeybee is calculated from the steady state. My project is involving to calculate the comfort at the transient state (building with travellers), so I have coded a new PMV in Python and I want to visualize the comfort thanks to the Honeybee_Visualize_Microclimate_Map component.

The problem here is when I create a new matrix by modifying radTempMtx the component can't read it (see above IronPython.Runtime.List). When Abraham showed me the component that transform a csv file into a Matrix, I thought to convert my modified Matrix (in the example radTempMtx*2) into a csv file and to convert this csv file into a matrix that the Honeybee component can read.

Is it possible to do that and is there a better way to visualize the comfort without the csv method ?

Thank you for your answers.

Mehdi,

This transient PMV is some interesting research!  First, I will note that the components in your file are from several different versions and this can cause errors.  The attached file has everything updated.

Now to answer your question:

There are many ways to post-process the results of the microclimate maps.  I don't know how exactly you want to do this or of there is something particular about the CSV that you need but here's an example showing how you can grab the MRT, air temperature, and humidity outputs of an energy simulation and run the through the PMV Comfort Calculator component:

I could not get your transient PMV component to run correctly on my machine but it's looking like you just want to take these microclimate map results and run them though your special PMV calculator.  Then, you can color the viewFactorMesh with the results like so:

Let use know if this answers your question.

-Chris

Attachments:

Thanks a lot Chris,

I can now visualize my transient PMV on a map!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service