|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 4 ![]() |
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! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 611
Rep Power: 14 ![]() |
This looks like sperical coordinates
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Federico Nahuel Ramírez
Join Date: Dec 2020
Location: Spain
Posts: 15
Rep Power: 4 ![]() |
It seems that these lines are not calculating the coordinates, but the unit vectors of x, y, and z.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 4 ![]() |
||
![]() |
![]() |
![]() |
Tags |
solar calculator, solar load, solar radiation |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Odd results with solar load | me3840 | OpenFOAM Running, Solving & CFD | 2 | January 11, 2022 05:07 |
Does OpenFoam use solar ray tracing or solar discrete ordinate method? | B_R_Khan | OpenFOAM Running, Solving & CFD | 0 | November 26, 2021 03:58 |
Modelling solar and thermal radiation in CSP solar receiver | Gioacchino La Rochelle | CFX | 1 | November 15, 2018 07:52 |
Ansys Analysis and Simulate Solar Panel | Johnny leow | FLUENT | 0 | November 25, 2015 18:21 |
Solar Calculator | Dorasemon | FLUENT | 1 | July 25, 2013 09:20 |