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

[Netgen] Create boundary

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2008, 09:54
Default Create boundary
  #1
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
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: 552
Rep Power: 25
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 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
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 06:53
Wind turbine simulation Saturn CFX 58 July 3, 2020 02:13
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Fluid Domain moving with Rigid body Lloyd Sullivan CFX 3 August 17, 2018 10:58
domain imbalance for enrgy equation happy CFX 14 September 6, 2012 02:54


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