Archives par mot-clé : Galapagos

Grasshopper LadyBug, solar panels

This is a quick set up to understand how to orient solar panels for maximum efficiency using Galapagos’ generative capacities.

Load EPW file from

Use FilePath to get the file from where it has been stored.

Connect the SunPath

We add a date, to start it will be a single date, but we will work a period a time afterwards.

We evaluate Direct Sun hours

Geometry is the surface to be calculated, Context refers so objects casting Shadows


We run

This is the result for a single day June, the 21st at 10 am

Now we check for the same day from 6am to 6pm

And we have quantities. For every square of the grid, a total of direct sun hours

The have the total we can have a Mass addition

Adding a solar panel

We will search which orientation is best for a solar panel. To get faster results, we will only test two orientations

We add the LB Incident Radiation Component and its dependences

A Solar Panel is created, and we will git it the possibility to rotate X axes and then Y axes to find the better orientation

This is the solar panel

This how we can prepare the rotations

To go faster, we will investagate every 5° between -90 to +90. For that we prepare the slider as shown below. 18*5=90. So we go from -18 to +18 by 5

The Solar Panel becomes the new geometry, the grid has to be reduced, we try every 0.25m

We test for one day, one orientation

Ok, for one day, let test the best orientation

We add Galapagos component. Genome goes to the Slider and Fitness to the mass addition number obtained from the results.

Double click on Galapagos, we choose Maximize, because we are searching for the best result

Then Solvers, start Solvers

As our ground is pretty free from constructions, with no surprise, the best orientation here is horizontal (and we’re in June !!)

Other orientation…Facing south the best orientation is 20°

Grasshopper – Monte-Carlo – Galápagos

The brief is as followed. To calculate a complex surface, it is possible to use the Monte-Carlo approximation to have a number close to reality. First we will check whether it’s true or not by comparing our values with the real one. And then we will use Galapagos to seek for the best result.
Continuer la lecture de Grasshopper – Monte-Carlo – Galápagos