CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   meniscus in a capillary tube (https://www.cfd-online.com/Forums/openfoam/244791-meniscus-capillary-tube.html)

UmmeRyan August 29, 2022 04:33

meniscus in a capillary tube
 
Hello.

I am simulating the injection of water in a capillary tube filled with air using interfoam solver and defined constant alpha contact angle of 150 on the walls; However, the meniscus is not acquiring the shape as it should. (It's only a line)

The tube is 10 mm in length and 1 mm dia and discretized as (150 150 50)

This is the boundary condition in alpha.water

boundaryField
{
inlet
{
type inletOutlet;
value uniform 1;
inletValue uniform 1;
}

outlet
{
type zeroGradient;
}

walls1
{
type constantAlphaContactAngle;
theta0 30;
limit gradient;
value uniform 0;
}


Velocity:

boundaryField
{
inlet
{
type fixedValue;
value uniform (3.5 0 0);//fixed inlet velocity

}

outlet
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}

walls1
{
type noSlip;
}




Can anyone suggest if this is the right way to define the contact angle and if I am missing anything?

The geometry is circular cylinder that I created using Salome, then imported as 3 stl. files. (inlet, outlet, walls) and used SnappyHexMesh later. The checkmesh did not give any error.

Previously I worked with rectangular tube using blockmesh (as defined in the capillary rise tutorial) and this contact angle worked fine.


All times are GMT -4. The time now is 13:39.