CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Setting constantAlphaContactAngle in interMixingFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2019, 14:59
Default Setting constantAlphaContactAngle in interMixingFoam
  #1
New Member
 
Chan Kwok Hoe
Join Date: Sep 2019
Posts: 3
Rep Power: 7
kage is on a distinguished road
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 is offline   Reply With Quote

Old   September 15, 2019, 05:43
Default
  #2
New Member
 
Chan Kwok Hoe
Join Date: Sep 2019
Posts: 3
Rep Power: 7
kage is on a distinguished road
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)
kage is offline   Reply With Quote

Reply

Tags
constantalphacontactangle, intermixingfoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent Parallelization Problem After AC Power Dropped pawl Hardware 5 November 13, 2016 06:08
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 22:38
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 09:53
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 21:58
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 00:14.