CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] Improving a mesh with OF utilities

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2009, 05:54
Default Improving a mesh with OF utilities
  #1
New Member
 
bigred's Avatar
 
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 16
bigred is on a distinguished road
I'm having a problem. I imported a mesh from netgen and then did a checkMesh. I get a few sets of bad faces (zeroAreaFaces, non-orthofaces, etc). To get rid of them can I just use something like:
setSet
faceSet zeroFaces delete

or must I use:

setSet
faceSet zeroFaces invert
subsetMesh

or do I have to turn the face set into a cell set (faceToCell?) and then use one of the steps above, but with cellSet? Does cellSet and FaceSet have to work in conjunction with their dictionaries?

None of these utilities have very useful help files, except perhaps setSet. Am I correct to get the help file of a utility to type the util followed by -help, e.g.
cellSet -help
when i do this all i get is a one line usage guide with the parameter possiblities ie. [-batch] [-help] etc.

So many questions! I'm confused. It seems simple enough, but I'm not getting any results. Could I improve my meshing techniques to reduce these zeroArea/nonortho/etc problems happening in the future?
__________________
CAELinux 2009 + OF1.5
Ubuntu 9.04 x64 (jaunty jackalope) + OF1.6
bigred is offline   Reply With Quote

Old   October 8, 2009, 14:44
Default
  #2
New Member
 
Join Date: Sep 2009
Posts: 17
Rep Power: 16
tachyon_me is on a distinguished road
Have you been able to delete the bad cells ? I'm kind of having the similar problem. I think one could create the cellSet from faceToCell , but i'm not sure how to operate delete operation on the whole mesh written in dir 3/

If you have already worked out the solution. Plz post !
tachyon_me is offline   Reply With Quote

Old   October 12, 2009, 04:50
Default
  #3
New Member
 
bigred's Avatar
 
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 16
bigred is on a distinguished road
haven't figured it out just yet. I managed to delete some nonOrthoCells, but then they didn't have to be converted like faces do. These nonOrthoCells were actually attaced to the zero area faces, so they got deleted too. My model is still ve non orthagonal though, so I'm trying to improve it.
__________________
CAELinux 2009 + OF1.5
Ubuntu 9.04 x64 (jaunty jackalope) + OF1.6
bigred is offline   Reply With Quote

Old   October 12, 2009, 19:57
Default
  #4
New Member
 
Join Date: Sep 2009
Posts: 17
Rep Power: 16
tachyon_me is on a distinguished road
How did you manage to delete the nonOrthogonal Cells?


Quote:
Originally Posted by bigred View Post
haven't figured it out just yet. I managed to delete some nonOrthoCells, but then they didn't have to be converted like faces do. These nonOrthoCells were actually attaced to the zero area faces, so they got deleted too. My model is still ve non orthagonal though, so I'm trying to improve it.
tachyon_me is offline   Reply With Quote

Old   October 13, 2009, 03:12
Default
  #5
New Member
 
bigred's Avatar
 
Matthew Philpott
Join Date: Aug 2009
Location: Belgium
Posts: 24
Rep Power: 16
bigred is on a distinguished road
ok, I'm at work at the moment and all my OF stuff is on my home laptop, but if I remember correctly, it was something like:

setSet
cellSet nonOrthoCells delete (you'll have to check the syntax on that and replace nonOrthoCells with the name of the set found in constant/polymesh/sets)
You should now have made a new set called nonOrthoCells (which is filled with everyhting except the ones you deleted) and a new set called nonOrthoCellsOld (or something like that) There is a way to do the delete and save the non deleted cells to another set like goodCells or something, but I'm not sure of the syntax, try typing help once you're in the setSet command.
Then exit setSet by typing quit.
Then type subsetMesh nonOrthoCells (in your case file)
and it'll make a new mesh with all the cells that weren't deleted.
Then do a checkMesh to find out if it's better. Also, don't forget to back up your mesh somewhere. Oh, and it might write the new set to the first time step folder (like 0.1, for example) to prevent overwriting other files, so you might have to copy and paste that into your polymesh folder.

This may also help http://www.cfd-online.com/Forums/ope...checkmesh.html

The documentation is really vague on these commands, I did a google to no avail and I tried to read through the C file, but I'm not a programmer, so it didn't make a whole lot of sense
__________________
CAELinux 2009 + OF1.5
Ubuntu 9.04 x64 (jaunty jackalope) + OF1.6
bigred is offline   Reply With Quote

Old   October 13, 2009, 13:28
Default
  #6
New Member
 
Join Date: Sep 2009
Posts: 17
Rep Power: 16
tachyon_me is on a distinguished road
thats very helpful , I will try .... thanks
tachyon_me is offline   Reply With Quote

Reply

Tags
checkmesh, setset, zeroareafaces

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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
[snappyHexMesh] Snappyhex mesh: poor inlet mesh Swagga5aur OpenFOAM Meshing & Mesh Conversion 1 December 3, 2016 16:59
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 06:42
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52


All times are GMT -4. The time now is 21:15.