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

Access the surface tension force at a patch

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

Like Tree2Likes
  • 2 Post By Jakob1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2013, 10:51
Default Access the surface tension force at a patch
  #1
Member
 
Michiel
Join Date: Oct 2010
Location: Delft, Netherlands
Posts: 97
Rep Power: 15
michielm is on a distinguished road
I am constructing a boundary condition to go with interFoam which will allow me to set the pressure at a boundary patch depending on the value of alpha. In particular, I want the pressure to have the form
Code:
p = p0 + alpha1*p1
where p1 is the capillary pressure jump between the two fluids at the boundary.

In order to do this I need to lookup the value of the surface tension force in the cells connecting to the patch and this is where I get stuck. I know how to lookup transportProperties or access data in U, p_rgh and alpha1 in the 0 directory, but I don't know how to access the surface tension force or, equivalently, the values of interface.sigmaK() and alpha1 (which would allow me to calculate the surface tension force).

Can someone tell me how I would go about doing this?
michielm is offline   Reply With Quote

Old   December 13, 2013, 03:50
Default
  #2
New Member
 
Join Date: Nov 2013
Posts: 20
Rep Power: 12
Jakob1 is on a distinguished road
Just found out how to do that yesterday

Depending on what exactly you need (volumeField at adjacent cells, surfaceField on the patch etc) you can find some useful information here:

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

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

http://www.cfd-online.com/Forums/ope...ion-class.html
michielm and Behradskn like this.
Jakob1 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Commercial meshers] Fluent msh and cyclic boundary cfdengineering OpenFOAM Meshing & Mesh Conversion 48 January 25, 2013 03:28
chtMultiRegionFoam Tutorial m.nichols19 OpenFOAM 12 September 9, 2010 11:56
Surface tension - Continuum Surface Force model Robert Main CFD Forum 0 May 2, 2002 07:34
surface tension force Ray Main CFD Forum 0 October 17, 2001 15:42
gravitational force for free surface flow Jongtae Kim Main CFD Forum 1 July 2, 2000 11:57


All times are GMT -4. The time now is 11:01.