|
[Sponsors] |
August 23, 2011, 07:31 |
extrudeMesh - stop edge and cell removal
|
#1 |
Member
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 30
Rep Power: 16 |
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. |
|
August 23, 2011, 07:39 |
|
#2 |
Member
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 30
Rep Power: 16 |
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 |
|
August 23, 2011, 09:53 |
|
#3 |
Member
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 30
Rep Power: 16 |
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. |
|
August 24, 2011, 12:19 |
|
#4 |
Member
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 30
Rep Power: 16 |
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. |
|
Tags |
cell volume, extrudemesh, revolved mesh |
|
|
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 |