CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] 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 Search this Thread Display Modes
Old   December 30, 2013, 15:58
Default Windows Meshing and paraview
  #1
New Member
 
Alessandro
Join Date: Dec 2013
Posts: 5
Rep Power: 12
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, 16:25
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 17:09
Default
  #3
New Member
 
Alessandro
Join Date: Dec 2013
Posts: 5
Rep Power: 12
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, 17:21
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 10:45
Default
  #5
New Member
 
Alessandro
Join Date: Dec 2013
Posts: 5
Rep Power: 12
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, 11:24
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] snappyHexMesh - 3D Wing Meshing Setup & Trials denbjornen OpenFOAM Meshing & Mesh Conversion 1 May 25, 2020 11:14
[Gmsh] Vertex numbering is dense KateEisenhower OpenFOAM Meshing & Mesh Conversion 7 August 3, 2015 10:49
[OpenFOAM] opening .stl file in paraview gokulcfd ParaView 2 March 16, 2015 15:37
[snappyHexMesh] Problems after snappyHexMesh with paraview andreas0209@hotmail.com OpenFOAM Meshing & Mesh Conversion 10 February 23, 2015 11:00
[snappyHexMesh] Meshing geometry not visible in paraView. Nikunj.R OpenFOAM Meshing & Mesh Conversion 4 October 2, 2012 15:45


All times are GMT -4. The time now is 18:06.