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

[Other] Extrude2dmesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2010, 01:37
Default Extrude2dmesh
  #1
New Member
 
neri alamanni
Join Date: Nov 2009
Posts: 4
Rep Power: 16
neri.alamanni is on a distinguished road
Hi all
how the extrude2dmesh works? does it extrude 2d mesh in a standard format (ideas .unv, gmsh, fluent etc)? Are there any working examples? Is the source code of extrude2dmesh available?
Thank you and best regards to all of you
neri
neri.alamanni is offline   Reply With Quote

Old   July 26, 2010, 13:24
Default
  #2
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
Hi all
I have the same neri.alemanni's question. How can i use extrude2dmesh?
Thanks
Daniele111 is offline   Reply With Quote

Old   September 1, 2010, 07:21
Default
  #3
New Member
 
Florian Becker
Join Date: Apr 2010
Posts: 12
Rep Power: 0
draufunddran is on a distinguished road
hi Daniele and neri,

i used extrude2Dmesh yesterday, and i got it to work. You only need the 4 files:

  • points
  • faces
  • cells
  • boundary
In the points file there should be the list of points you want to use, and off course they should be all in one plane for example they should all have the same z-value.

In the faces file there should be only faces with 2 points and the order should be so that you can write the boundarys in the boundary file. for example all the faces for inlet should be in one block and the faces for outlet in an other block.

The cells file should only contain the cells witch are created by putting at least 3 or more faces to one cell (not a 3d cell but a 2D cell such like the faces in a 3D mesh).

In the boundary file you only have to write the boundary-faces with the number of faces and where the block starts.

i hope this will help a bit, and sorry for my bad english, i'm not very good at writing english....


greetings draufunddran

Last edited by draufunddran; September 20, 2010 at 07:14.
draufunddran is offline   Reply With Quote

Old   October 11, 2010, 07:14
Default
  #4
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
Thanks
You can post an example?

Daniele
Daniele111 is offline   Reply With Quote

Old   October 11, 2010, 07:29
Default
  #5
New Member
 
Florian Becker
Join Date: Apr 2010
Posts: 12
Rep Power: 0
draufunddran is on a distinguished road
yes of course... but i'm really busy right now, so i will post an example tomorrow.

sorry...

draufunddran
draufunddran is offline   Reply With Quote

Old   October 11, 2010, 07:41
Default
  #6
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
Sure. Don't worry. Thanks you a lot.

Daniele
Daniele111 is offline   Reply With Quote

Old   October 11, 2010, 09:19
Default
  #7
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
Nobody uses extrude2DMesh? This is my simple test case: a 2D square with only 1 cell, and I want extrude it. I have this error:

Create polyMesh for time = 0

Direction:0 range:1
Direction:1 range:1
Direction:2 range:0
Extruding in direction 2 with thickness 100

#0 Foam::error:rintStack(Foam::Ostream&) in "/home/acconcia/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/acconcia/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted:
#3
in "/home/acconcia/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/extrude2DMesh"
#4
in "/home/acconcia/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/extrude2DMesh"
#5 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#6
in "/home/acconcia/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/extrude2DMesh"
Segmentation fault
Attached Files
File Type: gz 2d.tar.gz (721 Bytes, 48 views)
Daniele111 is offline   Reply With Quote

Old   October 11, 2010, 09:40
Default
  #8
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
I eliminate errors and my output now it is:

Create time

Create polyMesh for time = 0

Direction:0 range:1
Direction:1 range:1
Direction:2 range:0
Extruding in direction 2 with thickness 1

Adding empty patch frontAndBack at index 4 for front and back faces.

Writing extruded mesh to time 1

End

It likes right. But if I try to visualize mesh with parafoam it crash. Why?
Daniele111 is offline   Reply With Quote

Old   October 11, 2010, 11:22
Default
  #9
Senior Member
 
Daniele
Join Date: Feb 2010
Posts: 134
Rep Power: 16
Daniele111 is on a distinguished road
I resolved the problem. Now I'm trying to create a 2D mesh with triangular elements, but I have the same error that you posted i your thread:

--> FOAM FATAL ERROR:
Created illegal face 2(3 1) at position:7 when filtering removed points

From function polyTopoChange::compact(..)
in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 988.

FOAM aborting


Do you find the problem?
Daniele111 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
extrude2DMesh ChrisPro OpenFOAM Pre-Processing 1 March 24, 2016 14:48
[Other] extrude2DMesh does not work ! ooo OpenFOAM Meshing & Mesh Conversion 3 July 5, 2013 11:19
[mesh manipulation] extrude2Mesh stucks on error "created illegal face" draufunddran OpenFOAM Meshing & Mesh Conversion 0 September 20, 2010 04:32


All times are GMT -4. The time now is 13:38.