CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: snappyHexMesh and Others (http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/)
-   -   Patch definition in sHM (http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117177-patch-definition-shm.html)

sture May 3, 2013 10:55

Patch definition in sHM
 
Hi,

I do the following:

geometry
{
kanalLangA.obj
{
type triSurfaceMesh;
regions
{
inlet // name in stl-file
{
name inlet;
// type patch;
}
outlet // name in stl-file
{
name outlet;
// type patch;
}
wall // name in stl-file
{
name wall;
// type wall;
}
}
}
};

The obj file is made with Rhino, this is an example:

# Rhino

g wall
o wall
v 0 0 1
v 0 1 1
v 50 0 1
v 50 1 1
vt 0 0
vt 0 1
vt 1 0
vt 1 1
vn 0 0 1
vn 0 0 1
vn 0 0 1
vn 0 0 1
f 4/4/4 2/2/2 1/1/1 3/3/3
o wall
v 50 1 0
v 50 1 1
v 0 1 0
v 0 1 1
vt 0 0
vt 0 1
vt 1 0
vt 1 1
vn 0 1 0
vn 0 1 0
vn 0 1 0
vn 0 1 0
f 8/8/8 6/6/6 5/5/5 7/7/7
.....

I am trying to define patches with names from an obj file, which does not work.

How do I make names in a stl file (without editing the stl file, which I know how to do)?

I need different patch names for BC etc.

SS

JR22 May 3, 2013 11:11

Have you tried?:

Code:

        patchInfo
        {
            type            patch;
        }

or
Code:

        patchInfo
        {
            type            wall;
        }



All times are GMT -4. The time now is 07:02.