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

[mesh manipulation] ExtrudeMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2006, 05:47
Default ExtrudeMesh
  #1
Member
 
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 17
segersson is on a distinguished road
Hi,
I need a utility that extrudes a 2d-mesh with prescribed layer thicknesses. The standard utility extrudeMesh seems to give all layers the same thickness. If I´m not mistaken the layer thickness is calculated using the operator() function in the class linearNormalExtruder. Could one somehow change this function to use prescribed layer thicknesses instead (I'd appriciate any advice)?

Also I will need to extrude several surfaces beginning from different levels in the z-direction (I'm meshing a city block). My plan is to extrude matching meshes for the different surfaces seperatly using a modified extrudeMesh utility, and then stich these meshes together using the standard openFoam mesh utilities (stichMesh?). Is this possible?

Best regards
David
segersson is offline   Reply With Quote

Old   May 15, 2006, 05:22
Default 1) yes, this should be easy. T
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
1) yes, this should be easy. The operator() is indeed the function that generates the points. The layer argument tells you which layer you are generating points for, the surfacePoint argument gives the coordinate of the layer 0 point. Both should tell you where you are so just modify the function to have a non-linear distribution.

2) difficult and might give problems when stitching different blocks. It is easier just to generate a big block and remove cells where there are buildings (using subsetMesh with the '-patch' argument)
mattijs is offline   Reply With Quote

Old   June 28, 2006, 07:25
Default Hi, I want to use extrudeMesh
  #3
Member
 
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 17
segersson is on a distinguished road
Hi,
I want to use extrudeMesh using the -surface argument, i.e. I want to read the 2d-mesh from a file instead of from a patch in an existing mesh. I can not find any example on the format of the surface file, and I have not managed to track down the specification from the PrimitivePatch template-class i Doxygen (gets quite hard to follow for a non-expert C++ programmer...)

Could anybody who have used this functionality post an example or a format-specification for the input file to use with the -surface argument?

Regards
David
segersson is offline   Reply With Quote

Old   June 28, 2006, 07:35
Default Readable surface formats are:
  #4
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Readable surface formats are:

AC3D
GTS
OBJ
OFF
STL
TRI

You can find their definitions on the internet or can check out the source code for the readers here: OpenFOAM/OpenFOAM-1.3/src/triSurface/triSurface/interfaces/
eugene is offline   Reply With Quote

Old   June 29, 2006, 14:01
Default Try extrude patch of existing
  #5
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Try extrude patch of existing case (with sourceRoot/sourceCase/sourcePatch) and look at the file <patch>.smesh it writes.

This is a simple 2D mesh format defined in class faceMesh (faceMesh.H)
mattijs is offline   Reply With Quote

Old   August 22, 2011, 12:23
Default
  #6
Member
 
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 30
Rep Power: 16
drrbradford is on a distinguished road
How can I stop extrudeMesh from removing short edges?

Needless to say, there was supposed to be a middle portion of my mesh. . .
Attached Images
File Type: jpg drawing.jpg (51.2 KB, 238 views)
drrbradford is offline   Reply With Quote

Reply


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
[mesh manipulation] extrudeMesh can't find any patches shang2 OpenFOAM Meshing & Mesh Conversion 6 February 26, 2021 21:46
[mesh manipulation] extrudeMesh limits Adaptive/Dynamic Mesh Refinenemt potentialFoam OpenFOAM Meshing & Mesh Conversion 3 January 29, 2018 04:42
[mesh manipulation] Generating 3-D axisymmetric mesh using extrudeMesh martyn88 OpenFOAM Meshing & Mesh Conversion 17 June 21, 2017 20:42
[snappyHexMesh] Problem with extrudeMesh sHM 2D airfoil mesh ssss OpenFOAM Meshing & Mesh Conversion 2 September 1, 2014 14:12
[snappyHexMesh] snappyHexMesh after extrudeMesh / Creating background mesh with extrudeMesh pythag0ra5 OpenFOAM Meshing & Mesh Conversion 3 September 11, 2013 10:10


All times are GMT -4. The time now is 11:14.