CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] The Inlet boundary conditions are not correctly shown in paraView (https://www.cfd-online.com/Forums/paraview/204415-inlet-boundary-conditions-not-correctly-shown-paraview.html)

upuli July 23, 2018 05:20

The Inlet boundary conditions are not correctly shown in paraView
 
1 Attachment(s)
Dear members




I have a chamber which has shape shown in attached figure. Boundaries are inlet(bottom), outlet(at top), walls(left and right sides) and back and front.The blockMesh file entries are as follows


Code:

convertToMeters 1.0;

vertices
(
(-0.15 -0.3 -0.15)
(-0.15 0.0 -0.15)
(-0.05 0.3 -0.15)
(-0.05 0.3 0.15)
(-0.15 0.0 0.15)
(-0.15 -0.3 0.15)
(0.15 -0.3 -0.15)
(0.15 0.0 -0.15)
(0.05 0.3 -0.15)
(0.05 0.3 0.15)
(0.15 0.0 0.15)
(0.15 -0.3 0.15)


);
blocks
(
hex (0 1 4 5 6 7 10 11) (30 30 1) simpleGrading (1 1 1)
hex (1 2 3 4 7 8 9 10) (30 30 1) edgeGrading (1 1 1 )
);

patches
(
wall Walls
(
(6 11 10 7)
(7 10 9 8)
(0 1 4 5 )
(1 2 3 4 )

)
patch Inlet
(
(0 5 11 6)
)
patch Outlet
(
(2 8 9 3)
)
empty back
(
(0 6 7 1)
(1 7 8 2)
)
empty front
(
(5 4 10 11)
(3 9 10 4)

)
);

edges
(
);

mergePatchPairs
(
);

I want to set the inlet velocity(U) to 0.12 ms-1. So my U file entries in the 0 folder are as follows.


Code:

dimensions      [0 1 -1 0 0 0 0];

internalField  uniform (0 0 0);

boundaryField
{
    Walls
    {
        type            fixedValue;
        value          uniform (0 0 0);
    }
    Inlet
    {
        type            fixedValue;
        value          uniform (0 0.12 0);
    }
    Outlet
    {
      type            inletOutlet;
    inletValue      uniform (0 0 0);
  value          uniform (0 0 0);
    }
    back
    {
        type            empty;
    }
    front
    {
        type            empty;
    }
}

But when I open the case in the paraview and in the internal mesh view, I see that U at inlet is shown as 0.005399 ms-1. The simulation runs without stop. In each time step folder the U value is correclty shown as 0.12 ms-1. How can I overcome this issue?


Thank You
Attachment 64695

jherb July 23, 2018 07:05

Paraview shows you the values in the cell centers by default. By default, it only loads the internal mesh. If you want to see the values on the faces, you have to select them individually in the box "Mesh Regions" to be loaded.

upuli July 23, 2018 23:01

Hi


Thank you very much for the explanation. Is there a method to set the cell center values at the inlet cells to the desired value(0.12 ms-1).


Thank you
regards


Upuli


All times are GMT -4. The time now is 16:19.