iat-cener / tonatiuh

A Monte Carlo ray tracer for the optical simulation of solar concentrating systems
http://iat-cener.github.io/tonatiuh/
GNU General Public License v3.0
54 stars 14 forks source link

Run flux analisis - Script Editor #109

Open felipelobi opened 4 years ago

felipelobi commented 4 years ago

Hi, I'm doing iterations whit the Scrip Editor and I am looking for a way to go to: -> Run Flux Analysis-> set the surface url -> run ->go to export settings and export ASCII and PNG documents. I need to program the manual adquisicion that I doing in the image below for 125 iterations.

image

Help!

amutuberria commented 4 years ago

Hello, at the Wiki you can find the functions available for the scripting capability. See https://github.com/iat-cener/tonatiuh/wiki/Script-functions

Here you can find the RunFluxAnalysis that allows to execute the simulation to calculate the distribution map similary at the Flux Analysis utility. However, you can only export the results on ASCII format. You have to create the figures using an external tool. The function is : RunFluxAnalysis( QString nodeURL, QString sufaceSide, unsigned int rays, int heightDivisions, int widthDivisions, QString directory, QString filename, bool saveCoords ) Regards

felipelobi commented 4 years ago

Thanks u so much! i was stucked. I wish i could export the figure too, in Tonatiuh is much better accomplished than my attemps in Python, i think i'll export manually the figures of the selected iterations!

Grateful regards.