# Simulation of drop with interFoam

 Register Blogs Members List Search Today's Posts Mark Forums Read

April 27, 2014, 08:57
Simulation of drop with interFoam
#1
New Member

Join Date: Apr 2014
Posts: 9
Rep Power: 12
Hi everybody!
i'm a beginner in openFoam. i have a problème in my simulation. i want to simulate a drop with a solver interFoam. but my drop moves to the right or left, but i want it remains in the middle.this image can explain more the situation.
Attached Images
 ddropp.jpg (12.7 KB, 44 views)

April 27, 2014, 13:54
#2
Senior Member

Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
Quote:
 Originally Posted by abdessamad Hi everybody! i'm a beginner in openFoam. i have a problème in my simulation. i want to simulate a drop with a solver interFoam. but my drop moves to the right or left, but i want it remains in the middle.this image can explain more the situation.
I'm guessing the friction between the drop and the surface is very low. I'm also guessing that you have a file with transportProperties in your constant folder. You may need to check the phase (something that looks like this),

Code:
```phase2
{
transportModel  Newtonian;
nu              nu [ 0 2 -1 0 0 0 0 ] 1.48e-05;
rho             rho [ 1 -3 0 0 0 0 0 ] 1;
CrossPowerLawCoeffs
{
nu0             nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf           nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m               m [ 0 0 1 0 0 0 0 ] 1;
n               n [ 0 0 0 0 0 0 0 ] 0;
}

BirdCarreauCoeffs
{
nu0             nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515;
nuInf           nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k               k [ 0 0 1 0 0 0 0 ] 99.6;
n               n [ 0 0 0 0 0 0 0 ] 0.1003;
}
}```
you need to create a no-slip condition on the boundary.

http://www.princeton.edu/~asmits/Bic...tionflows.html

Last edited by massive_turbulence; April 27, 2014 at 13:56. Reason: added details

 April 27, 2014, 19:53 #3 New Member   abdessamad Join Date: Apr 2014 Posts: 9 Rep Power: 12 Thank you Andrew Somorjai for your reply. i have the same file of transportpropreties like that: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object transportProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // phases (water air); water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 1000; CrossPowerLawCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; m m [ 0 0 1 0 0 0 0 ] 1; n n [ 0 0 0 0 0 0 0 ] 0; } BirdCarreauCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; k k [ 0 0 1 0 0 0 0 ] 99.6; n n [ 0 0 0 0 0 0 0 ] 0.1003; } } air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; rho rho [ 1 -3 0 0 0 0 0 ] 1; CrossPowerLawCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; m m [ 0 0 1 0 0 0 0 ] 1; n n [ 0 0 0 0 0 0 0 ] 0; } BirdCarreauCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; k k [ 0 0 1 0 0 0 0 ] 99.6; n n [ 0 0 0 0 0 0 0 ] 0.1003; } } sigma sigma [ 1 0 -2 0 0 0 0 ] 0.07; // ************************************************** *********************** // but i think the probleme is a "slip condition" but i dont knew how to add it in boundary condition. please if you have any ideas tell me about. thank u very much.

April 27, 2014, 20:21
#4
Senior Member

Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
Quote:
 Originally Posted by abdessamad Thank you Andrew Somorjai for your reply. i have the same file of transportpropreties like that: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object transportProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // phases (water air); water { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1e-06; rho rho [ 1 -3 0 0 0 0 0 ] 1000; CrossPowerLawCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; m m [ 0 0 1 0 0 0 0 ] 1; n n [ 0 0 0 0 0 0 0 ] 0; } BirdCarreauCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; k k [ 0 0 1 0 0 0 0 ] 99.6; n n [ 0 0 0 0 0 0 0 ] 0.1003; } } air { transportModel Newtonian; nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05; rho rho [ 1 -3 0 0 0 0 0 ] 1; CrossPowerLawCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; m m [ 0 0 1 0 0 0 0 ] 1; n n [ 0 0 0 0 0 0 0 ] 0; } BirdCarreauCoeffs { nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515; nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06; k k [ 0 0 1 0 0 0 0 ] 99.6; n n [ 0 0 0 0 0 0 0 ] 0.1003; } } sigma sigma [ 1 0 -2 0 0 0 0 ] 0.07; // ************************************************** *********************** // but i think the probleme is a "slip condition" but i dont knew how to add it in boundary condition. please if you have any ideas tell me about. thank u very much.
According to this

http://www.cfd-online.com/Forums/ope...lawcoeffs.html

he says that the CrossPowerLawCoeffs and BirdCarreauCoeffs are for non-Newtonian viscosity models. So that might be one thing to think about. As for boundary conditions those would be in your 0 folder within the U file for the surface but I'm not sure what definition you would change for the type (if at all, maybe zeroGradient would work).

Here's a nice tutorial.

http://www.tfd.chalmers.se/~hani/kur...Hemida_VOF.pdf

 April 28, 2014, 13:30 #5 New Member   abdessamad Join Date: Apr 2014 Posts: 9 Rep Power: 12 it does not work yet

April 29, 2014, 17:51
#6
Senior Member

Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
Quote:
 Originally Posted by abdessamad it does not work yet

 April 29, 2014, 19:16 this is my project #7 New Member   abdessamad Join Date: Apr 2014 Posts: 9 Rep Power: 12 thanks Andrew for your time.this is my project .project_drop.tar.gz

April 29, 2014, 19:28
#8
New Member

Join Date: Apr 2014
Posts: 9
Rep Power: 12
I deleted the folder polymesh because it has a large capacity
Attached Files
 project_drop.tar.gz (2.8 KB, 17 views)

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post salman189 OpenFOAM Running, Solving & CFD 6 March 22, 2023 13:34 Ralinus OpenFOAM Running, Solving & CFD 8 January 13, 2014 08:54 MiraLisa FLUENT 0 August 15, 2013 04:44 lingdeer ANSYS 1 May 19, 2013 01:40 lostin4ever Main CFD Forum 4 October 12, 2010 08:29

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