|
[Sponsors] |
January 1, 2011, 09:34 |
Surface tracking in interfoam
|
#1 |
New Member
Join Date: Sep 2009
Posts: 15
Rep Power: 0 |
Hi everyone,
i need to track to interface in interFoam. this is my current attempt: Code:
forAll(mesh.cells(), celli) { if ((alpha1[celli] >= scalar(0.01))&&(alpha1[celli] <= scalar(0.99))) { T[celli] = scalar(200); } } the problem with that is that the interface in interfoam isn't 100% sharp. It is a bit diffuse. So i track sometimes double the cells. Simply right alpha == 0.5 doesn't work. The programm now finds the cells that have the alpha value of 0.5, but a cell can be a surface cell with a value of 0.01 to 0.99. In paraFoam simply typing alpha 0.5 is working fine. Does anyone know what the name of the function is to find the surface. It is finding the right surace cells. Best regards Henning |
|
January 3, 2011, 11:56 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
http://openfoamwiki.net/index.php/Contrib/swak4Foaman can now work for sampledSurfaces and example where this is used to track the height of a surface is https://openfoam-extend.svn.sourcefo...capillaryRise/ But of course if you afterwards need the T-field to implement some physics that depend on the interface then this won't help you Bernhard |
||
January 4, 2011, 10:53 |
|
#3 |
New Member
Join Date: Sep 2009
Posts: 15
Rep Power: 0 |
Does paraFoam use the sample surface to create the surface?
I want to implent some physics by this |
|
January 5, 2011, 09:41 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
If you need the surface for physics, then swak won't help you. Maybe there is a way to easily find out which cells a sampledSurface passes through (but I'm not aware of it) |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible | velan | OpenFOAM Meshing & Mesh Conversion | 3 | October 22, 2015 12:05 |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 03:09 |
[Gmsh] boundaries with gmshToFoam | ouafa | OpenFOAM Meshing & Mesh Conversion | 7 | May 21, 2010 13:43 |
Tensions on free surface interFoam | sega | OpenFOAM Running, Solving & CFD | 0 | April 29, 2008 15:26 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 13, 2001 00:19 |