CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User 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 Search this Thread 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: 14
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: 255
Rep Power: 21
MartinB will become famous soon enough
Hi,

have a look here, post #2:
http://www.cfd-online.com/Forums/ope...eld-names.html

Martin
MartinB 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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 12:58
natural convection mehrdadeng CFX 10 February 25, 2011 05:25
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 22:41.