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/)
-   -   Setting constantAlphaContactAngle in interMixingFoam (https://www.cfd-online.com/Forums/openfoam-solving/220565-setting-constantalphacontactangle-intermixingfoam.html)

kage September 11, 2019 14:59

Setting constantAlphaContactAngle in interMixingFoam
 
Dear all,

I'm new to OpenFOAM, using OpenFOAM 7. I've managed to simulate a simple drop of water on a flat surface using the interFoam function.

I moved on to trying the interMixingFoam function as I needed to simulate some mixing of liquids on a hydrophobic flat surface. However, I was unable to set the contact angle. The simulation runs fine though.

I placed the following inside the boundaryField for alpha.water.orig

Code:

    walls
    {
        type            constantAlphaContactAngle;
        theta0          157.5;
        limit          gradient;
        value          uniform 0;
    }

Instead of getting the original stated 157.5 contact angle as per simulated using interFoam, the contact angle seemed more like 90 degrees using interMixingFoam.

Am I doing something wrong here?

kage September 15, 2019 05:43

Just realised what went wrong. While I set the theta0 for the water, the theta0 for air was set to zeroGradient. As a result, the theta0 for the water phase was probably overwritten.

In order to get the results I needed, the theta0 for the air phase was also explicitly defined, similarly to the water phase (though 180-waterContactAngle)


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