CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Windows Meshing and paraview

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   December 30, 2013, 16:58
Default Windows Meshing and paraview
  #1
New Member
 
Alessandro
Join Date: Dec 2013
Posts: 5
Rep Power: 2
ale.barba is on a distinguished road
Hi, I'm using snappyHexMesh to generate OpenFOAM mesh on windows OS. I'd like view the result of the mesh but I don't know how to use paraview to see the mesh refinements.
Any suggestion?
Thank you!

Ale
ale.barba is offline   Reply With Quote

Old   December 30, 2013, 17:25
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,519
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Alessandro and welcome to the forum!

A few questions:
  1. Which (unofficial) OpenFOAM port are you using for Windows?
  2. Which installation instructions have you followed?
  3. Have you studied the tutorials in the OpenFOAM User Guide first?
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 30, 2013, 18:09
Default
  #3
New Member
 
Alessandro
Join Date: Dec 2013
Posts: 5
Rep Power: 2
ale.barba is on a distinguished road
Hi Bruno,
1. OpenFOAM for MS windows http://sourceforge.net/projects/openfoam-mswin/
2. Just unzip the file
3. Yes, I've seen the tutorials but they refer to paraFOAM.

I've installed paraView 4.1.0 for windows. I've also generate (succesfully) the mase with snappy, but I don't know how to see that in paraview.
ale.barba is offline   Reply With Quote

Old   December 30, 2013, 18:21
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,519
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Alessandro,

That's a pretty outdated and unsupported project, but that's up to you!

I usually suggest blueCFD-SingleCore, which is more recent and has a bit of support: http://code.google.com/p/bluecfd-singlecore/ - Disclaimer: I'm the guy responsible for it

Either way, a good wiki page with a full list of available variants is this one: http://openfoamwiki.net/index.php/Installation/Windows


Anyway, ranting aside, the solution is simple and has been discussed here on the forum in the past... let me see if I can find it... here's one:
Quote:
Originally Posted by wyldckat View Post
Mmm... OK, two additional solutions that might work:
  • If you can export the case once again to VTK, then run foamToVTK with the option "-ascii":
    Code:
    foamToVTK -ascii
  • Since you are using ParaView 3.10.1, then you can use the internal reader for OpenFOAM cases. Simply create an empty file with the extension ".foam" in the base folder of the case and open that file in ParaView.
    To create said empty file, you can run in the Windows Command Line window the following command:
    Code:
    echo. > case.foam
Basically, for the first one, you can open in ParaView, the ".vtk" files located at "VTK"; for the second one you can simply open "case.foam" in ParaView. And yes, it still applies for ParaView 4.x

Best regards,
Bruno
ale.barba likes this.
wyldckat is offline   Reply With Quote

Old   December 31, 2013, 11:45
Default
  #5
New Member
 
Alessandro
Join Date: Dec 2013
Posts: 5
Rep Power: 2
ale.barba is on a distinguished road
Thank you Bruno,
now I'm able to see my mesh and looks great! It was generated into 2 time step.
How can I use it? Can I just copy the polymesh folder of folder 2 into constant folder?
ale.barba is offline   Reply With Quote

Old   December 31, 2013, 12:24
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,519
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Quote:
Originally Posted by ale.barba View Post
Can I just copy the polymesh folder of folder 2 into constant folder?
Yes, you can copy the sub-folder "polyMesh" from the time snapshot 2 to the "constant" folder and delete the folders "1" and "2".

If you were using a more recent version/port of OpenFOAM, you could use the command line option "-overwrite" in snappyHexMesh, which would tell it to always save in the latest mesh folder, i.e. "constant" in this case.
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
reconstruct addedCells set from parallel meshing Eloise OpenFOAM Mesh Utilities 7 April 25, 2014 15:45
Paraview- Delaunay triangulation Quires hhh ParaView 12 July 21, 2013 06:44
Meshing geometry not visible in paraView. Nikunj.R OpenFOAM Native Meshers: snappyHexMesh and Others 4 October 2, 2012 16:45
[OpenFoam] Nothing in Paraview! A340 OpenFOAM Meshing & Mesh Conversion 13 June 9, 2012 08:09
error Meshing a 3D cube geometry with blockMesh GodOfLove OpenFOAM Native Meshers: blockMesh 5 July 14, 2009 16:30


All times are GMT -4. The time now is 19:53.