How to automatically simulate a series of specific variants?

Hello everyone,
I would like to simulate several variants of a model automatically. I have created a Honeybee model and can change various settings with sliders, e.g.

  • orientation of the building to the north (north orientation can rotate from 0 to 359°)
  • window-to-wall ratio (hypothetically 1% to 99%)
    etc.
    Now I would like each of these sliders to be able to assume only certain, discrete values, perhaps only three variants per slider, e.g.
  • Orientation only 90°, 180°, 270°
  • window-to-wall ratio only 25%, 50%, 75%
    etc.
    In this way, I would like to be able to simulate either all possible combinations or self-selected combinations.
    (I don’t want to wait for each individual simulation and then adjust the sliders manually. Instead Grasshopper should do this automatically.)
    I thought this would be possible with Colibri, but that doesn’t seem to be the case.
    Does anyone have a solution for this? Do I need a Python code for this or is there another way?

Thanks a lot in advance!
Best, Maria

1 Like

Thanks for the quick reply! That has already helped me. However, unfortunately I don’t just have values with continuous intervals but I will find a solution for that.
I guess using expressions, I could let run Colibri through all combinations. But there is still the question how to run only specific combinations one after the other.

Maybe you mean something like this?
series.gh (10.5 KB)

1 Like

Hello Leopoldomonzani,
great, that helped me again! Applying your example, I can after all define specific combinations from a list of all combinations.
But the main difficulty remain for me:
How can I use Colibri (or something different) to iterate through the specified combinations only (see panel D-optimal design e.g. case 1,2,3, and 6)?

(By the way, I have set all the sliders so that they can only be set to the necessary values only. But I have no idea how to extract the possible values from the slider. Thats why I used the panels instead for now.)


Example.gh (14.8 KB)

Hello again,
I am still (or again) working on this topic. Now I have a csv file with input parameters, e.g. 60 lines - each line with different inputs for one simulation (in total 60 simulations).

Currently, I’ve managed to import the CSV file into Grasshopper, and I’m automatically generating lists for each parameter from it.

Using a counter, I can now step through the rows one by one and run each simulation individually.

However, I’d like to automate the process, so that each simulation runs sequentially, and the results are saved after each run.

I assume this could be handled with Anemone, but I’m currently stuck.

Has anyone worked with running multiple EnergyPlus simulations (or similar tools) sequentially in Grasshopper and saving the outputs after each iteration?

Thanks a lot in advance!
M.

Here are two examples of how to save simulations, but I don’t know how your definition is structured.
I haven’t used Write To CSV because it doesn’t work for me.