|
[Sponsors] |
June 29, 2011, 22:16 |
boundary condition of an internal surface
|
#1 |
New Member
Join Date: May 2010
Posts: 7
Rep Power: 0 |
Dear all,
I would like to calculate mass flow rate of a small surface put in flow. The surface is put just for calculating flow rate so it should not affect the flow. The solver I use is interFoam. I wonder if I have to define the small surface as a patch and pose boundary condition of gradient zero for pressure, velocity, and volume fraction or there is other better ways. I’d be glad if you give me advice. Thank you in advance for your help. Yu |
|
June 30, 2011, 10:23 |
|
#2 |
New Member
Join Date: Jun 2011
Location: Rotterdam, the Netherlands
Posts: 9
Rep Power: 15 |
Dear Yu,
Sampling data is explained in paragraph 6.5 of the OF user guide. You can take samples anywhere in your domain without defining a surface, just create a file called sampleDict. Regards, Kevin |
|
June 30, 2011, 22:59 |
|
#3 |
New Member
Join Date: May 2010
Posts: 7
Rep Power: 0 |
Dear Kevin,
Thank you for your advice. It’s great that if I don’t have to specify patch for my purpose since I don’t have to think about boundary condition that doesn’t affect the flow. I have a question about the sampleDict. According to the paragraph 6.5 of the OF user guide, it seems that I could choose keyword "surfaces" in the sampleDict. http://www.openfoam.com/docs/user/sa...hp#x34-2001106 The shape of a surface where I want to calculate flow rate is an ellipse so I want to know how to calculate flow rate on surface with any shape. I think it can be specified by the STL file. I am wondering if that is possible in sampleDict. Or if there is any other way to solve my problem and teach me it would be appreciated. Best regards, Yu |
|
July 4, 2011, 04:51 |
|
#4 |
New Member
Join Date: Jun 2011
Location: Rotterdam, the Netherlands
Posts: 9
Rep Power: 15 |
You could create a surface/patch to take samples. This is certainly possible for boundary patches but I'm not sure how it works with patches in the middle of a domain.
Another way is to use the 'cloud' option in the sampleDict and specify the coordinates of the points (on your ellipse) you want to sample. Regards, Kevin |
|
July 4, 2011, 06:55 |
|
#5 |
New Member
Join Date: May 2010
Posts: 7
Rep Power: 0 |
Hello Kevin,
Thank you for your reply. It is very helpful. About the first way you mentioned I’m not sure but it seems that I have to define boundary patches so I need to think about proper boundary conditions that don’t affect flow around the patch. The second way seems to work. For example, I may need a STL file for the shape such as an ellipse, then get the area and the coordinates of a triangle consisting of the STL, then get velocity for the coordinate by sampleDict with ‘cloud’ option, then calculate flow rate by multiplying the velocity by the area for a triangle and summing up them. I may need to make a program to calculate it. Yu |
|
September 13, 2011, 10:52 |
|
#6 |
Member
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15 |
hi ynsudo,
I have the same problem: I want to have the flow rate throug a given surface. The surface is already defined in my mesh so it would be a boundary patch or a cyclic patch. What I do not uynderstand when I look at the SampleDict example in the Userguide is how to find the syntaxe for programming the flow rate through each face of the patch surface and then sum it over all the faces of the surface patch. surface Any help would be welcomed. Thanks |
|
September 13, 2011, 21:37 |
|
#7 |
New Member
Join Date: May 2010
Posts: 7
Rep Power: 0 |
Hello Miles
I am trying to use a routine named calcMassFlow to calculate the mass flow rate. http://openfoamwiki.net/index.php/Contrib_calcMassFlow There would be a program for higher versions. This routine could calculate the mass flow rate for one-phase flow. If you would like to calculate the mass flow rate for two-phase flow you would need to modify the program. Best, Yu |
|
September 14, 2011, 05:17 |
|
#8 |
Member
Miles
Join Date: Sep 2011
Posts: 48
Rep Power: 15 |
Thanks you
I am gonna check this... as soon as I have found a good programming tuto on openfoam. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Surface with double boundary condition | Marcopolopeich | CFX | 2 | January 16, 2011 11:41 |
asking for Boundary condition in FLUENT | Destry | FLUENT | 0 | July 27, 2010 01:55 |
External Radiation Boundary Condition for Grid Interface | CFD XUE | FLUENT | 0 | July 9, 2010 03:53 |
External Radiation Boundary Condition (Two sided wall), Grid Interface | CFD XUE | FLUENT | 0 | July 8, 2010 07:49 |
The Boundary Condition about the Flat Plate | boing | Main CFD Forum | 1 | January 6, 2002 17:53 |