CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Pressure Inlet = Problem (https://www.cfd-online.com/Forums/openfoam/68998-pressure-inlet-problem.html)

bmandt October 8, 2009 09:19

Pressure Inlet = Problem
 
Hi all,

I would like to fill a tank (interFoam), with U = 0, Inlet Pressure 202650, Outlet 101325.

File 0/p:

object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 101325;
boundaryField
{
inlet
{
type fixedValue;
value uniform 202650;
}
outlet
{
type fixedValue;
value uniform 101325;
}
walls
{
type zeroGradient;
}
}


File 0/U:

object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
inlet
{
type pressureInletVelocity;
value uniform (0 0 0);
}
outlet
{
type zeroGradient;
}
walls
{
type fixedValue;
value uniform (0 0 0);
}
}

The simulation works without error output, but nothing happens, no fluid flows.

Has anyone a solution, where is my mistake?

Thank you very much.

Best regards

Benjamin

rans2009 October 8, 2009 09:31

Hi Benjamin,

Have you set initial fields for the volume fraction of fluid that flows, I dont know precisely, even I might be wrong,

Sameera

bmandt October 8, 2009 09:45

1 Attachment(s)
Hi Sameera,

thanks for your help!

Do you mean "setFields"? No, the tanks are only filled with phase2 (air).

For better understanding, the case is added: Attachment 1214.

Best regards.

Benjamin

bmandt October 9, 2009 07:56

does anyone has an idea to solve this problem?

bigred October 12, 2009 05:45

I think your type for your inlet in your velocity file is wrong. I looked in the manual and it shows that type pressureInletVelocity is used for when the pressure is known and when the velocity will be calculated using the flux. The value to be given for this type, I assume is the pressure value, not the velocity value. I fi understand it correctly, you're putting the inlet velocity to 0, so you will have no flow. Try changing the type to zeroGradient.

bmandt October 12, 2009 07:12

1 Attachment(s)
Hi bigred,

I chanhed the type from InletOutletVelocity to zeroGradient. But I think, there is something wrong already. Please have a look at the screenshot.

I do not understand the problem. And I don't understand, why it doesn't work.

I know the pressure at the inlet: 202650 Pa
I know the pressure at the outlet: 101325 Pa

OF has to calculate the velocity at the inlet with the known pressures (I think so).

Thank you very much for your kind help!

Best regards.

Benjamin


All times are GMT -4. The time now is 08:04.