CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Boundary conditions (http://www.cfd-online.com/Forums/openfoam/110887-boundary-conditions.html)

zaynah04 December 24, 2012 04:08

Boundary conditions
 
Dear experienced Open foam user,

the learning of openfoam and ubuntu is done in a very slow process by me..

I have now successfully converted my gambit file to foam format and i have grasped most of the foam mode of use. EXCEPT Boundary conditions..

after converting my mesh to foam, i went to P and U folder to Modify bC but when i go also in constant/polymesh/boudary i found that all the parameters that u used ie s1 s1 v and p are exactly same, but i am confused in the P and U . can anyone help me please?
Quote:

FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0.0002 0 0);

boundaryField
{
wall-4
{
type fixedValue;
value uniform (0 0 0);
}

velocity-inlet-5
{
type fixedValue;
value uniform (1 0 0);
}

velocity-inlet-6
{
type fixedValue;
value uniform (0 3 0);
}

pressure-outlet-7
{
type zeroGradient;
}

wall-8
{
type fixedValue;
value uniform (0 0 0);
}

frontAndBackPlanes
{
type empty;
}
}

and for P
Quote:

FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
wall-4
{
type zeroGradient;
}

velocity-inlet-5
{
type zeroGradient;
}

velocity-inlet-6
{
type zeroGradient;
}

pressure-outlet-7
{
type fixedValue;
value uniform 0;
}

wall-8
{
type zeroGradient;
}

frontAndBackPlanes
{
type empty;
}
}

and in constant/polymesh/boundary

Quote:


FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

6
(
cylinder
{
type wall;
nFaces 90;
startFace 19215;
}
p
{
type patch;
nFaces 90;
startFace 19305;
}
s2
{
type symmetryPlane;
nFaces 90;
startFace 19395;
}
s1
{
type symmetryPlane;
nFaces 90;
startFace 19485;
}
v
{
type patch;
nFaces 90;
startFace 19575;
}
frontAndBackPlanes
{
type empty;
nFaces 19440;
startFace 19665;
}
)




All times are GMT -4. The time now is 00:43.