Hi, new Ladybug user here (and fairly new to Grasshopper)!
For a university project I am designing PV panels for (future) habitats on Mars and I would like to model the sunpath there.
The way it’s modeled on Earth is fairly straightforward (albeit complex) right? The solar altitude depends on the geographical latitude, the time of day and the solar declination (depending on the day of the year, -23.45° < δ < +23.45°), represented by a nice sine function which should be the same for Earth and Mars.
The parameters based on time can be sort of ignored since we’d like to model the sunpath for a whole Martian year, the extreme declinations on Mars are known (-24.936° < δ < +24.936°), and the latitude is free to choose. The durations of a Martian day and year are also known using Earth units (sec/min/h).
So my question is, is there a way to alter these parameters inside Ladybug commands such that a proper model of a sunpath over a Martian year at any latitude on Mars can be made?
Were you able to modify the code yourself ? I would be interested in helping or sharing your research, I myself created a code for a human outpost on mars, look up Mars Base Rhino on this forum
Specifically, changing things in this calculate_sun_from_date_time method and the other hidden methods that it calls should effectively switch the whole Sunpath over to wherever you want in the solar system:
Bear in mind that the Python datetime modules are still all going to be in Earth time so you may need to add some functions to convert between Earth datetimes and Mars ones.