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

extrudeMesh - stop edge and cell removal

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2011, 07:31
Default extrudeMesh - stop edge and cell removal
  #1
Member
 
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 30
Rep Power: 16
drrbradford is on a distinguished road
I'm having problems with sweeping a 2D mesh.

I need to change to the threshold for the lengths below which the edges and cells are removed automatically by the collageEdges part of the extrudeMesh utility.

I have altered the mergeDim value in extrudeMesh.C to a very small number (1E-20 * d) but this didn't make any difference and I'm not really comfortable with changing any more code that I don't understand.

Can anybody direct me as to where I can alter this threshold value?

Cheers.

I've attached screenshots of the problems it causes. The first is the 2D mesh I would like to sweep. The second is a clip plane showing the problems that deletion of small volumes causes with the geometry.
Attached Images
File Type: jpg plane_mesh.jpg (47.1 KB, 34 views)
File Type: jpg Screenshot2.jpg (50.0 KB, 33 views)
drrbradford is offline   Reply With Quote

Old   August 23, 2011, 07:39
Default
  #2
Member
 
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 30
Rep Power: 16
drrbradford is on a distinguished road
A little more info:

When I run extrudeMesh I get the following type of message:

Code:
Merging edge (8530 8531) since length 0 << 0.042625
In this case, the 0 refers to the removal of the edges created at the axis of rotation (I assume). It is the value of "0.042625" I would like to alter.
drrbradford is offline   Reply With Quote

Old   August 23, 2011, 09:53
Default
  #3
Member
 
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 30
Rep Power: 16
drrbradford is on a distinguished road
Converting the mesh to metres from mm was a good start. However, I'm still having problems with the small volumes in the boundary layer, close to the axis of rotation.

Last edited by drrbradford; August 23, 2011 at 10:22.
drrbradford is offline   Reply With Quote

Old   August 24, 2011, 12:19
Default
  #4
Member
 
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 30
Rep Power: 16
drrbradford is on a distinguished road
I've solved the problem and have learned a tiny bit about programming while I've been at it.

For anyone who needs to deal with this in future:

1. Change mergeDim value in the file /OpenFOAM-X.Y.Z/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C to some appropriate value. Don't make it too small if you still want to remove the singularities created at the axis of symmetry.

2. Delete the file applications/utilities/mesh/generation/extrude/extrudeMesh/Make/<PLATFOM>/extrudeMesh.o

3. Open a terminal in the applications/utilities/mesh/generation/extrude/extrudeMesh/ directory and run wmake.

Boom, threshold changed.
drrbradford is offline   Reply With Quote

Reply

Tags
cell volume, extrudemesh, revolved mesh


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 - no layer added bejbro OpenFOAM Meshing & Mesh Conversion 5 February 1, 2020 21:05
gradient calculation of cell centered finite volume method zhengjg Main CFD Forum 10 November 12, 2012 00:13
[Commercial meshers] Star mesh import problem chris1980 OpenFOAM Meshing & Mesh Conversion 20 May 8, 2006 02:07


All times are GMT -4. The time now is 12:51.