CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Trying to understand BC's following elbow tutorial (https://www.cfd-online.com/Forums/openfoam/112722-trying-understand-bcs-following-elbow-tutorial.html)

nik February 4, 2013 05:16

Trying to understand BC's following elbow tutorial
 
3 Attachment(s)
Hi,

I am a new user of OpenFOAM and I am trying to understand how boundary conditions works. I have run the elbow tutorial for incompressible flows, as is without changing anything, and I was looking at the results using Tecplot (Tec360 2012).

At the left of each of the attached figures, one can see contour plots of Ux, for the main zone (at a z=0 slice), and one of the inlet zones (zone names in Tecplot are "Step 0 Incr 0" and "velocity-inlet-5 Step 0 Incr 0" respectively). At the right, a close up is shown at the intersection of the two zones. I have attached 3 figures showing three different time steps: t=0, 1 and 10 sec.

At that inlet boundary, the streamwise velocity, Ux, should be fixed and equal to 1 according to the boundary condition (from file 0/U):

velocity-inlet-5
{
type fixedValue;
value uniform (1 0 0);
}

What I don't understand is why:
(1) at the first step of the simulation (t=0 sec) the velocity at the inlet surface is equal to zero, while at the main zone is around Ux=0.24?
(2) at the following time steps (t=1 - 10 sec) the velocity at the inlet (main zone) never becomes equal to 1? In fact it seems to be half the inlet value (0.5 instead of 1).
(3) the velocity at the inlet zone surface, seems to be consistent with the boundary condition (more or less), only a few seconds into the simulation, but not from the beginning (t=1 sec)? Even at the end of the simulation (t=10 sec), the velocity in not uniform along the inlet surface.

I was expecting the velocity to be Ux=1 at both the inlet surface, and very close to the inlet (main zone). What am I missing here?

Thanks,
Nicolas

nik February 18, 2013 06:38

Figured it out
 
Just wanted to share with the rest, that the problem was in the way I was presenting results using Tecplot. As I said I am using the OpenFOAM loader, that comes with the newer versions of Tecplot (i am using Tec360 2012R1). Long story short, to show correctly the values one has to set the Contour Type to "Primary Value Flood". However, this way Tecplot shows one value for each control volume. In order for Tecplot to show smoothed interpolated values using cell center values, you have to use the Slice tool, extract "Current Slice" and then select Contour Type of "Flood" for the extracted slice.

Nicolas

giack July 31, 2013 11:15

Hi to all,
I have a simple question about how Bcs are treated by tecplot. When I load the simulation Tecplot doesn't load the Bcs and the value in the last domain cells is wrong. Someone knows the reason of this strange behaviour?

Thanks to all


All times are GMT -4. The time now is 17:27.