[Radiance-general] GenCumulativeSky compiled for Mac?

Guglielmetti, Robert Robert.Guglielmetti at nrel.gov
Wed Dec 12 10:15:11 PST 2012


--------
WARNING: At least one of the links in the message below goes to an .exe file, 
which could be malicious. To learn how to protect yourself, please go here:
http://www.lbl.gov/cyber/services/suspicious-links.html
--------

Hi Ji,

Thanks for the link, I grabbed the source and right in the readme was a suggested compiler command:

"g++ -D_XOPEN_SOURCE *.cpp -lm -o gencumulativesky"

The above command worked a treat on my dilapidated Mac Pro (still running 10.6). The command expects a specifically-formatted weather file which I do not have on hand, so I couldn't test it aside from calling the command with no input and getting the help, but that did work. The only thing to remember is to set the permissions to make it executable on your system (e.g. "chmod 775 gencumulativesky").

P.S.
Christoph also mentions gencumulativesky in his (excellent) daylighting chapter in this fairly awesome book:
http://www.amazon.com/Building-Performance-Simulation-Design-Operation/dp/0415474140


Rob Guglielmetti
National Renewable Energy Laboratory (NREL)
Commercial Buildings Research Group
15013 Denver West Parkway MS:RSF202
Golden, CO 80401
303.275.4319
robert.guglielmetti at nrel.gov



On 12/12/12 10:35 AM, "Ji Zhang" <hope.zh at gmail.com<mailto:hope.zh at gmail.com>> wrote:

Hi, Rob, many thanks for your reply!

The source code of GenCumulativeSky can be found at: (including a short guide prepared by Darren)
https://documents.epfl.ch/groups/u/ur/urbansimulation/www/GenCumSky/GenCumSky.zip

... the download link is mentioned in one of the chapters in the book edited by Darren:
Robinson, Darren (Ed.). (2011). Computer modelling for sustainable urban design : physical principles, methods and applications. London ; Washington, DC: Earthscan.

It seems Prof Christoph Reinhart in MIT has revised the program and added some new options, and the updated version is included in the latest DIVA installation package, see the discussion at:
http://diva4rhino.com/forum/topics/gencumulativesky-exe-problem

Would appreciate if you can share the detailed procedures of the compilation (for a C/C++ programming rookie)!

Thanks!
- Ji




On Thu, Dec 13, 2012 at 12:59 AM, Guglielmetti, Robert <Robert.Guglielmetti at nrel.gov<mailto:Robert.Guglielmetti at nrel.gov>> wrote:
You don't even need to use the Xcode IDE, you can call the compiler (g++) directly if there's a makefile. If you point me to the source code, I can give it a whirl.

Rob Guglielmetti
National Renewable Energy Laboratory (NREL)
Commercial Buildings Research Group
15013 Denver West Parkway MS:RSF202
Golden, CO 80401
303.275.4319<tel:303.275.4319>
robert.guglielmetti at nrel.gov<mailto:robert.guglielmetti at nrel.gov>



On 12/12/12 7:52 AM, "Ji Zhang" <hope.zh at gmail.com<mailto:hope.zh at gmail.com><mailto:hope.zh at gmail.com<mailto:hope.zh at gmail.com>>> wrote:

May I ask if anybody compiled the GenCumulativeSky program created by Darren Robinson for Mac OS?

Darren mentioned that the source code of GenCumulativeSky is written in C++. I assume we can use Xcode to compile it as an executable program for the Mac system. But I don't know how to do it ...

Currently, I have to run GenCumulativeSky in Win7 to generate the sky.cal and SunFile.rad file based on the epw file for a given city and use the 2 files in Mac system with other Radiance program. It's just a little bit inconvenient...

Advices are greatly appreciated!

- Ji

_______________________________________________
Radiance-general mailing list
Radiance-general at radiance-online.org<mailto:Radiance-general at radiance-online.org>
http://www.radiance-online.org/mailman/listinfo/radiance-general





More information about the Radiance-general mailing list