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

[snappyHexMesh] Patch definition in sHM

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2013, 10:55
Default Patch definition in sHM
  #1
New Member
 
Sture Smidt
Join Date: Mar 2013
Posts: 27
Rep Power: 13
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: 134
Rep Power: 17
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
Face merging, patch definition, wall function Sandu69 OpenFOAM 2 March 24, 2010 11:48
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


All times are GMT -4. The time now is 04:17.