CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   simpleFOAM pipe with two inlets and one outlet doesnøt work? (https://www.cfd-online.com/Forums/openfoam-solving/236441-simplefoam-pipe-two-inlets-one-outlet-doesnot-work.html)

skovmunk May 30, 2021 12:05

simpleFOAM pipe with two inlets and one outlet doesnøt work?
 
2 Attachment(s)
Hello!

I have made a test setup at home which looks roughly like the attached pic "opstilling" (sorry it's in danish). I want to simulate the flow in the pipe, so there is an inlet at the main pipe and the one from the side. I have made the pipes in Salome, see pic "salome_geometri". The mesh seems fine, and there are no problems with this.

I want to define pressure at the inlets and outlet. So these are fixed, and the velocity is calculated. I have only found examples where people define the velocity at the inlets. I have tried:

P


inlet
{
type totalPressure;
p0 uniform 2.23408;
}

inlet_k
{
type totalPressure;
p0 uniform 1.46979;
}

outlet
{
type fixedValue;
value uniform 0;
}

wall
{
type zeroGradient;
}


U

wall
{
type noSlip;
}

inlet_k
{
type pressureInletVelocity;
value uniform (0 0 0);

}

inlet
{
type pressureInletVelocity;
value uniform (0 0 0);
}


outlet
{
type zeroGradient;
}

But it seems like the flow at inlet goes the wrong way. In Paraview i see that the current flows out of the pipe at the inlet and not into it.
inlet = small pipe
inlet_k = big pipe

Thanks in advance for any help. Really appreciate anything!

HPE May 30, 2021 16:31

setting velocity inlets to zeroGradient and/or pressure inlets to fixedValues could help?


All times are GMT -4. The time now is 20:14.