CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How to unit patches in the Boundary conditions (https://www.cfd-online.com/Forums/openfoam/88751-how-unit-patches-boundary-conditions.html)

almir May 25, 2011 04:46

How to unit patches in the Boundary conditions
 
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
}



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

MartinB May 25, 2011 05:05

Hi,

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

Martin


All times are GMT -4. The time now is 21:37.