CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   velocity profile mixing hot and cold water in a pipe (https://www.cfd-online.com/Forums/openfoam/188366-velocity-profile-mixing-hot-cold-water-pipe.html)

ari92 May 28, 2017 14:26

velocity profile mixing hot and cold water in a pipe
 
1 Attachment(s)
Hello everybody,
I would like to simulate a pipe flow with two inflows ( first inflow cold 10 ; second inflow 54C) and one outflow with the mixture of both (at 37C).

I'm using icoFoam solver modified to solve temperature equation.
The inlet where I have hot water, which enter at a velocity of 0.026 m/s, is inclined at an angle of 70.

I have problem with the velocity profile it is not working well, while for the temperature i got a good result.

this is the 0/U file:
dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
inletFace1
{
type fixedValue;
value uniform (0.00644 0 0);
}
inletFace2
{
type fixedValue;
value uniform (0.00699 -0.01922 0);
}
outletFace
{
type zeroGradient;
}
lowerWall
{
type fixedValue;
value uniform (0 0 0);
}
upperWall
{
type fixedValue;
value uniform (0 0 0);
}
lateralWall
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
{
type empty;
}
}

I can't find the error...
thank you very much

nsf June 1, 2017 16:11

Hi arianna,

I think you got the velocity on inletFace2 wrong. O think the magnitude is approximately 0.021 m/s. There is a surfaceNormal boundary condition that might be easier to use.

Best Regards
Nicolas


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