CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Paraview & paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/)
-   -   Openfoam to paraview (http://www.cfd-online.com/Forums/openfoam-paraview/94332-openfoam-paraview.html)

kd55 November 12, 2011 05:22

Openfoam to paraview
 
Hi there,

I am fairly new to openfoam but am using it to simulate the fluid dynamics of a surfboard fin for my dissertation.
I have been going through the tutorials provided and everything on the openfoam side is going ok. However, I am using the software at uni on a cluster system and for some reason paraview can not be installed. So I have installed paraview on my laptop and was going to visualise my results from there by transfering the data files accross with a usb stick.
My problm is, I think I need to save my data in a vtk format. Reading through the tutorials, it says openfoam has a foamtovtk utility, but it doesn't tell you where to find it or how to use it.
Would anyone be able to help?

Kind Regards,

Kit

gschaider November 12, 2011 06:55

Quote:

Originally Posted by kd55 (Post 331797)
Hi there,

I am fairly new to openfoam but am using it to simulate the fluid dynamics of a surfboard fin for my dissertation.
I have been going through the tutorials provided and everything on the openfoam side is going ok. However, I am using the software at uni on a cluster system and for some reason paraview can not be installed. So I have installed paraview on my laptop and was going to visualise my results from there by transfering the data files accross with a usb stick.
My problm is, I think I need to save my data in a vtk format. Reading through the tutorials, it says openfoam has a foamtovtk utility, but it doesn't tell you where to find it or how to use it.
Would anyone be able to help?

Kind Regards,

Kit

Hi Surferdude!

You don't need that. Since 3.8 PV can read OF data natively. Just create an empty file something.foam (the extension is the only thing important) in the case-directory and open that.

Bernhard

kd55 November 14, 2011 09:02

Hi Bernhard,

Thanks for your reply. After following your steps of making a file in the case directory (cavity.foam) and then copying all the files into this (0 0.1, 0.2, 0.3, 0.4, 0.5, constant, system). I then saved the cavity.foam onto my usb stick and transferred the data to my laptop. When I try to open the cavity.foam in paraview, all the files seem to be empty (all the data files doesn't apprear - P U). This is why I thought I might have to use the foamtovtk utility as paraview isn't recognising the data files in their raw form, or am I doing something wrong?

Kind regards,

Kit

gschaider November 14, 2011 11:03

Quote:

Originally Posted by kd55 (Post 332003)
Hi Bernhard,

Thanks for your reply. After following your steps of making a file in the case directory (cavity.foam) and then copying all the files into this (0 0.1, 0.2, 0.3, 0.4, 0.5, constant, system). I then saved the cavity.foam onto my usb stick and transferred the data to my laptop. When I try to open the cavity.foam in paraview, all the files seem to be empty (all the data files doesn't apprear - P U). This is why I thought I might have to use the foamtovtk utility as paraview isn't recognising the data files in their raw form, or am I doing something wrong?

Kind regards,

Kit

"seem to be empty": as seen in the filesystem (on OS-level) or in paraview?

Your notebook is Windoze? Havn't got that one, so I can't say whether the native reader works on it (maybe for instance zipped datafiles don't work on Win)

kd55 November 14, 2011 11:09

Thanks for your help Bernhard.

I have just had a breakthrough for anyone with similar problems. If you type in foamToVTK in the case directory, openfoam will make a new folder in the case directory and convert all the data to VTK form, you can then open this in paraview.

Kit

7islands November 15, 2011 00:08

Quote:

Originally Posted by kd55 (Post 332003)
Hi Bernhard,

Thanks for your reply. After following your steps of making a file in the case directory (cavity.foam) and then copying all the files into this (0 0.1, 0.2, 0.3, 0.4, 0.5, constant, system). I then saved the cavity.foam onto my usb stick and transferred the data to my laptop. When I try to open the cavity.foam in paraview, all the files seem to be empty (all the data files doesn't apprear - P U). This is why I thought I might have to use the foamtovtk utility as paraview isn't recognising the data files in their raw form, or am I doing something wrong?

Kind regards,

Kit

You do not need to create a new case directory but rather create and empty file named cavity.foam in your existing case directory. By opening cavity.foam from paraview, paraview should properly recognize files under constant, system, 0, 0.1.,... of the case directory.

I am not doing much testing on Windows recently but compressed files should work thanks to PV's internal zlib API.

Takuya

phuchuynh November 15, 2011 04:05

Error in ParaView
 
1 Attachment(s)
Hi all !
I have a question about paraview. After I ran solver by respective command (interFoam, icoFoam,.....) . When I ran paraFoam, Error appeared on window paraView.
"
Warning: Range [0,1] invalid for log scaling. Changing to [0.1,1].
Warning: Range [0,1.00004] invalid for log scaling. Changing to [1,1.00004].
"


thanks !

Cheers

Phuc

PeterDoings June 20, 2013 13:32

Quote:

Originally Posted by phuchuynh (Post 332135)
Hi all !
I have a question about paraview. After I ran solver by respective command (interFoam, icoFoam,.....) . When I ran paraFoam, Error appeared on window paraView.
"
Warning: Range [0,1] invalid for log scaling. Changing to [0.1,1].
Warning: Range [0,1.00004] invalid for log scaling. Changing to [1,1.00004].
"


thanks !

Cheers

Phuc

phuchuynh, I had the same issue just now. I fixed it by going into the 'Color Scale Editor', clicking the little wrench symbol, and then 'Rescale to Data Range'. I can't remember if 'Use Logarithmic Scale' was off, but it stands to reason that it should.

Woodbuddha January 5, 2014 18:58

Surfboard Fin an CFD
 
Hi Kit,

I am a surfer, part time wooden surfboard/fin builder from Brisbane Australia who is very interested from a personal research perspective in CFD modelling and surfboard fins. Your research sounds very interesting. How did you go with your dissertation? I would be very interested in understanding your testing methodology using OpenFOAM and also how the results of your testing eventuated. Looking forward to your reply.

Thanks.

TK


All times are GMT -4. The time now is 09:11.