CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

Patch definition in sHM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 3, 2013, 10:55
Default Patch definition in sHM
  #1
New Member
 
Sture Smidt
Join Date: Mar 2013
Posts: 22
Rep Power: 4
sture is on a distinguished road
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
sture is offline   Reply With Quote

Old   May 3, 2013, 11:11
Default
  #2
Senior Member
 
JR22's Avatar
 
Jose Rey
Join Date: Oct 2012
Posts: 123
Rep Power: 8
JR22 will become famous soon enough
Have you tried?:

Code:
        patchInfo
        {
            type            patch;
        }
or
Code:
        patchInfo
        {
            type            wall;
        }
JR22 is offline   Reply With Quote

Reply

Tags
names, patches, shn

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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 108 June 9, 2015 08:13
[GAMBIT] periodic faces not matching Aadhavan ANSYS Meshing & Geometry 6 August 31, 2013 11:25
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 19:45.