|
[Sponsors] |
December 14, 2021, 07:50 |
Understanding solar calculator code
|
#1 |
Member
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 5 |
Hi!
I am trying to understand how solar calculator calculates coordinates for sun direction. I have gone through all the formulas for calculating azimuth and altitude angle but I don't understand how open foam converts these angles into coordinates. In solarCalculator.C, there is a piece of code that calculates xyz coordinates as: Code:
direction_.z() = -sin(beta_); direction_.y() = cos(beta_)*cos(theta_); // South axis direction_.x() = cos(beta_)*sin(theta_); // West axis I might be missing something. Please guide Thanks! |
|
December 21, 2021, 15:41 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
This looks like sperical coordinates
|
|
December 23, 2021, 05:42 |
|
#3 |
New Member
Federico Nahuel Ramírez
Join Date: Dec 2020
Location: Spain
Posts: 16
Rep Power: 5 |
It seems that these lines are not calculating the coordinates, but the unit vectors of x, y, and z.
|
|
December 23, 2021, 15:27 |
|
#4 |
Member
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 5 |
||
June 13, 2023, 15:31 |
Solar calculator with transient simulation
|
#5 |
New Member
Join Date: May 2023
Posts: 1
Rep Power: 0 |
I've modelled a solar dryer that I want to simulate with irradiance data from the solar calculator. I would like to know how to run the simulation daily for a month for a year.
Thanks in advance for your help! |
|
Tags |
solar calculator, solar load, solar radiation |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Odd results with solar load | me3840 | OpenFOAM Running, Solving & CFD | 2 | January 11, 2022 06:07 |
Does OpenFoam use solar ray tracing or solar discrete ordinate method? | B_R_Khan | OpenFOAM Running, Solving & CFD | 0 | November 26, 2021 04:58 |
Modelling solar and thermal radiation in CSP solar receiver | Gioacchino La Rochelle | CFX | 1 | November 15, 2018 08:52 |
Ansys Analysis and Simulate Solar Panel | Johnny leow | FLUENT | 0 | November 25, 2015 19:21 |
Solar Calculator | Dorasemon | FLUENT | 1 | July 25, 2013 10:20 |