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

ExtrudeMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 12, 2006, 04:47
Default Hi, I need a utility that ext
  #1
Member
 
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 8
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 Im 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, 04:22
Default 1) yes, this should be easy. T
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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, 06:25
Default Hi, I want to use extrudeMesh
  #3
Member
 
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 8
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, 06:35
Default Readable surface formats are:
  #4
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
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, 13:01
Default Try extrude patch of existing
  #5
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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, 11:23
Default
  #6
Member
 
Daniel
Join Date: Apr 2010
Location: Manchester
Posts: 31
Rep Power: 7
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, 166 views)
drrbradford is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ExtrudeMesh for Dummies wolle1982 OpenFOAM Mesh Utilities 2 October 28, 2008 11:35


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