CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   A newbie's question -- NaN in icoFoam (http://www.cfd-online.com/Forums/openfoam-solving/104679-newbies-question-nan-icofoam.html)

BigMatilda July 12, 2012 20:15

A newbie's question -- NaN in icoFoam
 
Hello world
I am a brand new user to OpenFoam. I am trying to set up a very simple flow -- a rectangular pipe, with flow coming in and going out... Sadly, I keep getting NaN. I compared my U and p and boundary files to those of the OffsetCylinder example, as well as those of the cavity example, and can't figure out what's wrong...
Any advice would be greatly appreciated!

U:

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

internalField uniform (0 0 0);

boundaryField
{
a
{
type fixedValue;
value uniform (-1e-5 0 0);
}

c
{
type zeroGradient;
}

b
{
type fixedValue;
value uniform (0 0 0);
}

d
{
type fixedValue;
value uniform (0 0 0);
}
e
{
type fixedValue;
value uniform (0 0 0);
}

f
{
type fixedValue;
value uniform (0 0 0);
}

defaultFaces
{
type empty;
}
}


p:


internalField uniform 0;

boundaryField
{
a
{
type zeroGradient;
}

c
{
type fixedValue;
value uniform 0;
}

b
{
type zeroGradient;
}

d
{
type zeroGradient;
}

e
{
type zeroGradient;
}

f
{
type zeroGradient;
}

defaultFaces
{
type empty;
}
}

boundary:

6
(
a
{
type patch;
nFaces 390;
startFace 340881;
}

b
{
type wall;
nFaces 4816;
startFace 341271;
}

c
{
type patch;
nFaces 386;
startFace 346087;
}

d
{
type wall;
nFaces 4696;
startFace 346473;
}

e
{
type wall;
nFaces 8798;
startFace 351169;
}

f
{
type wall;
nFaces 8964;
startFace 359967;
}
)

Thanks!

Vignesh V July 13, 2012 06:22

A newbie's question -- NaN in icoFoam Reply to Thread
 
Hi Lev,

I think you can better go through these tutorials.

If u want your case to be run in icoFoam. I can help you out.

http://www.somogyibence.hu/documents.../Cornell1.html

Regards,
Vignesh V


All times are GMT -4. The time now is 18:15.