Solar diagrams

A forum dedicated to the Draft, Arch and BIM workbenches development.
Post Reply
User avatar
yorik
Founder
Posts: 12484
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels, Belgium
Contact:

Solar diagrams

Post by yorik »

Arch Sites can now display a solar diagram:
freecad-solar-diagram.jpg
freecad-solar-diagram.jpg (79.55 KiB) Viewed 7500 times
To this purpose, the Arch Site object has gained a couple of properties. Longitude and Latitude were there already, I added a couple more to set the North direction, and to set the diagram size and color.

For this to work, pysolar must be installed on the system.

For now this is it, it's just informative, but later on we can extend this to do all kinds of fancy things, shadow calculations, etc.

The functionality is also available from python:

Code: Select all

import ArchSite
node = ArchSite.makeSolarDiagram(-46.38,-23.33) # longitude, latitude, [scale]
FreeCADGui.ActiveDocument.ActiveView.getSceneGraph().addChild(node)
triplus
Veteran
Posts: 9475
Joined: Mon Dec 12, 2011 4:45 pm

Re: Solar diagrams

Post by triplus »

Looking good.

P.S. I guess it could also be useful for solar plants:

Image

;)
Jee-Bee
Veteran
Posts: 2305
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Solar diagrams

Post by Jee-Bee »

or simple task... how is the sunlight in the new garden ;)
User avatar
yorik
Founder
Posts: 12484
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels, Belgium
Contact:

Re: Solar diagrams

Post by yorik »

pysolar can give the sun intensity too, so there are many possible interesting calculations to do
User avatar
yorik
Founder
Posts: 12484
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels, Belgium
Contact:

Re: Solar diagrams

Post by yorik »

btw the ladybug plugin for grasshopper is written in python, and contains an awful lot of interesting things, some of which we could reuse...
https://github.com/mostaphaRoudsari/ladybug
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: Solar diagrams

Post by damian »

and SAM (https://sam.nrel.gov/node/69515) always has SDK in Python, and PVLIB (https://github.com/pvlib/pvlib-python), and ...
User avatar
chakkree
Posts: 327
Joined: Tue Jun 30, 2015 12:58 am
Location: Bangkok Thailand

Re: Solar diagrams

Post by chakkree »

Wow! Beautiful
SolarDiagram2.png
SolarDiagram2.png (83.9 KiB) Viewed 7002 times
install Pysolar 0.6 (Not pysolar 0.7)

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8972 (Git)
Build type: Release
Branch: master
Hash: 14594dde32d3af23d496a0b630db18480e618249
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
User avatar
pablogil
Posts: 863
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Solar diagrams

Post by pablogil »

Really nice new feature.

It would be really handy for shadow studies... when FreeCAD supports casting shadows on 3D view, of course, hehehe

Thanks!
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here
User avatar
saso
Veteran
Posts: 1672
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Solar diagrams

Post by saso »

did someone say shadows ?! viewtopic.php?t=9663 ;)
Post Reply