|
[Sponsors] |
![]() |
![]() |
#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! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 16 ![]() |
This looks like sperical coordinates
|
|
![]() |
![]() |
![]() |
![]() |
#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.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 5 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#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 |
|
|
![]() |
||||
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 |