CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Wall contact angle (http://www.cfd-online.com/Forums/openfoam-pre-processing/62000-wall-contact-angle.html)

feijooos January 28, 2009 14:34

Hello, I working with inter
 
Hello,

I working with interFoam and I am trying to specify a specific contact angle for the fluid, in this case water. I searched the forum for related topics. I found a couple, but I can't seem to get it to work.

How do I implement the constantGammaContactAngle?
I know I have to specify it in my gamma field (/0/gamma). However, when I do this, I get an error upon using the setFields utility. It tells me that the gamma field is not found, wrong token word.

Can somebody help me out?

Thanks,

Eelco

feijooos February 2, 2009 02:43

anybody?
 
anybody?

asaha February 2, 2009 08:44

Hello Eelco, Pl. try using
 
Hello Eelco,

Pl. try using constantGammaContactAngle in damBreak tutorial as below:

boundaryField
{
leftWall
{
type constantGammaContactAngle;
theta0 40;
uTheta 0;
thetaA 40;
thetaR 40;
value uniform 0;
}

rightWall
{
type constantGammaContactAngle;
theta0 40;
uTheta 0;
thetaA 40;
thetaR 40;
value uniform 0;
}

lowerWall
{
type constantGammaContactAngle;
theta0 40;
uTheta 0;
thetaA 40;
thetaR 40;
value uniform 0;
}

atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}

defaultFaces
{
type empty;
}
}

Regards,

a a saha.

feijooos February 2, 2009 11:36

Hi a a saha, Thanks for you
 
Hi a a saha,

Thanks for your reply. I tried it out in the dambreak case and it is working. However, when I try implementing it in a 3D case it does not work. When I run the setFields command to initialize the gamma field, nothing happens. SetFields runs fine, but the gamma file (/0/gamma) doesn't get initialized. Any ideas?

Thanks,

Eelco

feijooos February 3, 2009 12:52

I think I solved the problem.
 
I think I solved the problem. Setfields doesn't work, but funkySetFields does if I use the -keepPatches option. Seems to be working fine now.

Thanks for the help. Eelco


All times are GMT -4. The time now is 18:59.