|
[Sponsors] |
February 19, 2010, 04:54 |
properties of the interfaceProperties class
|
#1 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Hej;
I have questions about the interfaceProperties class. What does Code:
nHatf_ Also: in the function calculateK() in the first two lines Code:
00101 const fvMesh& mesh = alpha1_.mesh(); 00102 const surfaceVectorField& Sf = mesh.Sf(); Code:
surfaceScalarField& alphaAreas = mesh.magSf() ; If this does not work, is it possible to get the interface area between the two phases somehow else? Thanks in advance!
__________________
~roman |
|
February 19, 2010, 06:18 |
|
#2 |
Senior Member
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17 |
Hi romant,
nHatf_ is the normal vector on the interface. Important is: it is stored as a surfaceScalarField. This means, the values are defined at the face centres. The f indizes this. The _ means, it is a private variable. mesh: mesh represents the mesh. The class behind is fvMesh meaning finite volume mesh. alpha_.mesh() gives you the mesh structure liing behind the alpha_ volScalarField. Now you can access different mesh properties like the volume of your cell, the cellCentres... mesh.Sf() now gives you the the face area vectors of each controll volume face. It is defined as surfaceVectorField mesh.magSf() will give you the magnitude of those area vectors (of the controll volume faces) which corresponds to the area of those faces. If I understand you correctly, you want to calculate the area of the interface in that cell. But im afraid you won't get it that way. If you have further questions, please feel free... Best Kathrin |
|
February 19, 2010, 06:23 |
|
#3 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
nHatf_ cannot be the normal, because it is a scalar, the calculation is
Code:
nHatf_ = nHatfv & Sf;
__________________
~roman |
|
February 19, 2010, 06:46 |
|
#4 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, romant,
I find it is said that "The interface.nHatf() represents a cell face unit interface normal flux." in the thread: http://www.cfd-online.com/Forums/ope...of-method.html chiven |
|
February 19, 2010, 06:53 |
|
#5 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Hej,
I have read the same that it is some kind of flux (it actually says that in the source file as well), but the problem is, I don't completely understand the physical meaning of this flux. In my opinion flux should be some kind of per area per time, but there is not time involved here. So it might just be per area. Now comes the question, what area. From the calculations it should gives the magnitude of the normal vector of the cell faces onto the normal vector of the interface. What is the physical meaning behind this?
__________________
~roman |
|
February 19, 2010, 08:20 |
|
#6 |
Senior Member
Kathrin Kissling
Join Date: Mar 2009
Location: Besigheim, Germany
Posts: 134
Rep Power: 17 |
Sorry,
I was one step behind. Do you want to acces nHatfv? The flux: Maybe it ist just a kind of projecting it into the right direction? Best Kathrin |
|
February 19, 2010, 08:24 |
|
#7 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Nope, I don't want access to nHatfv otherwise I could just rewrite that part of the class.
I am trying to find a way to predict the interface area within the cell, therefore I am looking at almost everything that OpenFOAM can give me and try to make sense of it.
__________________
~roman |
|
June 23, 2015, 15:57 |
|
#8 |
Member
HM
Join Date: Apr 2015
Posts: 30
Rep Power: 11 |
Hello Foamers;
I know this post is relatively old, but I had a question about the interface: I am using interFoam, and I was wondering if there is anyway that we can access to the normal vector at the interface. I mean I want to have the normal vector in my results. Any feedback is appreciated |
|
June 24, 2015, 04:22 |
|
#9 | |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
Quote:
To my knowledge there is no direct way of obtaining it from OpenFOAM. One thing you could do is get familiar with the VOF method from literature and see if somebody describes a method to obtain the normal vector of the interface. If you then implement this, post it here
__________________
~roman |
||
February 20, 2016, 20:31 |
|
#10 |
New Member
Rimsha
Join Date: Jan 2016
Posts: 25
Rep Power: 10 |
Hi all,
I want to edit the interfaceProperties.H file so i can make surface tension an function of temperature or anything really so it is dependent on something instead of just one value in interfoam. anyone has any clue on how to go about this or any example i can look at to learn from. Any help will be much appreciated. Kind Regards Rimsha Last edited by block; March 4, 2016 at 12:27. |
|
March 21, 2022, 00:28 |
|
#11 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Hello guys,
Did anyone access nHatf from interface properties? Can anyone tell me How to access it and use it in a solver? Thanks in advance Last edited by saicharan662000@gmail.com; March 21, 2022 at 03:06. |
|
Tags |
interfoam, multiphase, two-phase |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Properties of air versus temperature AND pressure | Vincent | Main CFD Forum | 5 | July 28, 2008 07:28 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |
About UList and List class | leosding | OpenFOAM Running, Solving & CFD | 1 | December 2, 2005 00:52 |