CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

How to unit patches in the Boundary conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 25, 2011, 04:46
Default How to unit patches in the Boundary conditions
  #1
New Member
 
Join Date: May 2011
Location: Germany/Bosnia
Posts: 9
Rep Power: 7
almir is on a distinguished road
hi,

im going to make heattranasfer investigation,
as solver i want to use buoyantSimpleFoam.
For that i want to use the existing "0"-folder from buoyantSimpleFoam.
Now my problem is that the files in the folder for example for Temperature T only have 4 patches, and my part where i want to make my research have about 250 patches. And the patches from 3 to 180 have all the same Boundary conditions. So how i can put them together that i donīt have to write for each patch a line and define the Temperature.

So my file now is looking like that:
how can I unite the names which have the same temperature?

Thank you,
greets!



/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

internalField uniform 293;

boundaryField
{
1
{
type zeroGradient;
}

2
{
type zeroGradient;
}

3
{
type fixedValue;
value uniform 307.75; // 34.6 degC
}
4
{
type fixedValue;
value uniform 307.75; // 34.6 degC
}
5
{
type fixedValue;
value uniform 307.75; // 34.6 degC
}


:
:
:
:

from 6 to 179!!!
:
:
:

180
{
type fixedValue;
value uniform 307.75; // 34.6 degC
}
181
{
type fixedValue;
value uniform 307.75; // 34.6 degC
}



// ************************************************** *********************** //
almir is offline   Reply With Quote

Old   May 25, 2011, 05:05
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 13
MartinB is on a distinguished road
Hi,

have a look here, post #2:
How to define multiple boundary field names

Martin
MartinB is online now   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
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 13:58
natural convection mehrdadeng CFX 10 February 25, 2011 06:25
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 6 April 17, 2010 23:40
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 6, 2008 23:17
A problem about setting boundary conditions lyang Main CFD Forum 0 September 19, 1999 18:29


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