CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Create boundary

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2008, 09:54
Default Hi everybody I have created a
  #1
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 8
fabrizio is on a distinguished road
Hi everybody I have created a polymesh from Netgen and all went fine. Now I have to fix boundaries, and I have this boundary file:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

FoamFile
{
version 2.0;
format ascii;

root "/home/fabrizio/OpenFOAM/fabrizio-1.4.1/run";
case "prova";
instance "constant";
local "polyMesh";

class polyBoundaryMesh;
object boundary;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

12
(

patch1
{
type patch;
physicalType patch;
nFaces 14;
startFace 294;
}

patch2
{
type patch;
physicalType patch;
nFaces 18;
startFace 308;
}

patch3
{
type patch;
physicalType patch;
nFaces 16;
startFace 326;
}

patch4
{
type patch;
physicalType patch;
nFaces 14;
startFace 342;
}

patch5
{
type patch;
physicalType patch;
nFaces 14;
startFace 356;
}

patch6
{
type patch;
physicalType patch;
nFaces 14;
startFace 370;
}

patch7
{
type patch;
physicalType patch;
nFaces 6;
startFace 384;
}

patch8
{
type patch;
physicalType patch;
nFaces 6;
startFace 390;
}

patch9
{
type patch;
physicalType patch;
nFaces 6;
startFace 396;
}

patch10
{
type patch;
physicalType patch;
nFaces 8;
startFace 402;
}

patch11
{
type patch;
physicalType patch;
nFaces 6;
startFace 410;
}

patch12
{
type patch;
physicalType patch;
nFaces 6;
startFace 416;
}
)

// ************************************************** *********************** //

I want patch1 to be inlet, patch 2 to be outlet and all the other patches to be walls. I haven't found nothing about in the forum, so I hope someone can help me.

Thanks to all

Fabrizio
fabrizio is offline   Reply With Quote

Old   October 26, 2008, 15:12
Default Hello Fabrizio, A Good even
  #2
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
philippose will become famous soon enough
Hello Fabrizio,

A Good evening to you....!

Well... a short answer to your question would be... there is no automatic method to tell netgenNeutral2Foam which patches have what names.

During the import, the converter automatically recognises the boundary definitions available, and gives them default names "patch<n>"....

You will have to manually change these to the names you want.

If you have many such cases with the same boundary patch names, I would suggest that you quickly cook up a bash script which uses something like "sed" to automatically rename the patches based on a "configuration file" which you provide.

In addition, note that you would also have to change the "type" of the patch to the relevant ones (as you mentioned, wall, etc...)

As for defining a patch to be an inlet or an outlet.... this is not specified in the "boundary" file. Such definitions are made in the "p", and "U" files in the "0" time-step folder of the case.

Hope this helps!

Have a nice day!

Philippose
philippose is offline   Reply With Quote

Reply

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
CreatePatch to create cyclic boundary sbence OpenFOAM Mesh Utilities 18 August 30, 2012 06:51
How to create a UDF Sean FLUENT 1 June 11, 2008 23:39
Create Boundary Profile Ir.Nik FLUENT 0 April 21, 2007 08:48
how to create boundary layer in icem cfd? jayesh CFX 3 November 24, 2005 10:00
create Furkan Oezkan CD-adapco 4 November 10, 2005 10:13


All times are GMT -4. The time now is 23:59.