CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   inletOutlet BC & interpolation (https://www.cfd-online.com/Forums/openfoam-programming-development/111882-inletoutlet-bc-interpolation.html)

linch January 17, 2013 05:26

inletOutlet BC & interpolation
 
Hi Foamers,

a short question:

given a volScalarField a with BC's:
Quote:

leftSide
{
type inletOutlet;
inletValue uniform 1130;
value uniform 0;
}
rightSide
{
type zeroGradient;
}
if interpolated on cell faces
Code:

surfaceScalarField af (fvc::interpolate(a));
the boundaries look like
Quote:

leftSide
{
type calculated;
value uniform 0;
}
rightSide
{
type calculated;
value uniform 500;
}
The right one is interpolated properly, but the left one is zero, even though neither the cell values nor the inlet value are zeros.

Can anyone please tell me why?

kmooney January 24, 2013 08:54

Hi Illya,

Is there a non-zero internal value for your field? I'm just trying to get a little more information, this seems a little strange indeed.

Now that you bring it up, I'm not %100 sure how the interpolation operator works with boundary values of a vol field...

Cheers!

Kyle


All times are GMT -4. The time now is 07:52.