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

CAD file surface node #80

Open lotkeswapnil opened 7 years ago

lotkeswapnil commented 7 years ago

Hello, I want to include a CAD file in Tonatiuh. After selecting a surface node, I imported my CAD file. But the file does not get converted into a surface. Because of this, I am unable to change calculate the flux on the CAD file object using Flux analysis. Please help me in converting the CAD file into surface.

P.S. I am not a computer person. So no scripting please.

ilescener commented 7 years ago

Hi Could you attach the CAD file or upload it, e.g. Dropbox, so we could check it and look for what is not working, please?

Thank you in advance

lotkeswapnil commented 7 years ago

Here is the .stl file. I have included it in a zip file. prt0001.zip

ilescener commented 7 years ago

In our computer it worked fine. In this zip file you can find the imported CAD surface in a Tonatiuh file. prt0001Tonatiuh.zip

Did you have more issues trying to import another CAD files or just it happened with this one? What version of Tonatiuh are you using and in which SO?

lotkeswapnil commented 7 years ago

I am using 2.2.1 version and windows 10 64 bit. I am still having issues in importing the model. I tried other too but they all were. I have uploaded the screenshot of the screen after importing the CAD file. untitled

ilescener commented 7 years ago

The importing seems to be fine. Maybe you are thinking that the geometry isn't t ok because it's a bit rude. But actually it is, let me explain it. The CAD surface that Tonatiuh can read are a stl files, stl file is a kind of file where the geometries are divided into triangles. But depending on the number of triangles the geometry will be thinner or a bit rude. So if you want to have a more accurate geometry, you should try to reduce the size mesh before importing it to Tonatiuh when you create the stl file.

lotkeswapnil commented 7 years ago

It is fine with me that the geometry is rude. I just want it to be converted into a surface so that I can perform a flux analysis on it.

ilescener commented 7 years ago

It's already a surface and is ready for running simulations, just it's needed to set up the Sun in the Environmente->SunLight->Define SunLight... and run simulations. sin titulo By the moment, the tool called "Run flux analysis" works only with rectangular and circular flat and cylindrical surface. But it doesn't mean that you can't calculate the flux in that surface, in fact, you can calculate the flux in any surfaces through running the simulation, exporting the photon map (intersection of rays between surfaces) and analysing it. You can find more information and some examples about how to do it in the Wiki

lotkeswapnil commented 7 years ago

ok so the flux analysis tool won't work on my cad drawing and I have to go for Mathematica to analyze the flux. is that what you are saying?

ilescener commented 7 years ago

The analysis can be done with any numerical computation program such as Mathematica, Matlab, R (open-source), etc.

lotkeswapnil commented 7 years ago

ok thanks for the help. It was really helpful. This software is helping me in my thesis work. Keep up the work. But it would have been great if I could have performed the flux analysis in the software itself. Still it is good. And thank you again for helping.

ChileNeverDie commented 5 years ago

Hi Lotkeswapnil, If you finished the flux analysis, please kindly share the progress, I'm also working on a thesis...and meet the same problem as yours...