CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] Extrude2dmesh (https://www.cfd-online.com/Forums/openfoam-meshing/72076-extrude2dmesh.html)

neri.alamanni January 25, 2010 01:37

Extrude2dmesh
 
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

Daniele111 July 26, 2010 13:24

Hi all
I have the same neri.alemanni's question. How can i use extrude2dmesh?
Thanks

draufunddran September 1, 2010 07:21

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

Daniele111 October 11, 2010 07:14

Thanks
You can post an example?

Daniele

draufunddran October 11, 2010 07:29

yes of course... but i'm really busy right now, so i will post an example tomorrow.

sorry...

draufunddran

Daniele111 October 11, 2010 07:41

Sure. Don't worry. Thanks you a lot.

Daniele

Daniele111 October 11, 2010 09:19

1 Attachment(s)
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::printStack(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

Daniele111 October 11, 2010 09:40

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 October 11, 2010 11:22

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?


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