|
[Sponsors] |
June 27, 2013, 05:32 |
Calculating flow rate across a section
|
#1 |
New Member
Eric Dalmau
Join Date: Mar 2013
Location: Catalonia
Posts: 20
Rep Power: 13 |
Hi all Foamers,
I've search about how to calculate fields in different parts of my case and I've a doubt about what is better (or maybe the unique way) for calculating the flow across a section of my study case. The case is a tank with pipe (to simplify) where the fluid flows. Which of these two post-processing at run-time you recommend to my case? 1) fieldValue 2) probes Maybe there are other options, if any better, please tell me. Thanks in advance, Eric |
|
June 28, 2013, 06:46 |
|
#2 |
New Member
Eric Dalmau
Join Date: Mar 2013
Location: Catalonia
Posts: 20
Rep Power: 13 |
I found out that I can use sample to save info across a plane.
I've my SampleDict here but it doesn't work for phi. I read in other posts that it may depend on the interpolation scheme and what kind of "variable" are you trying to store. Phi is defined as SurfaceScalarField. This leads me to 2 questions: 1) Which kind of interpolation can work with phi assuming I've a plane or cut plane defined? 2) Is there any way to sample an operation between two variables? In my case I need alpha1*phi. Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object sampleDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // setFormat raw; surfaceFormat vtk; formatOptions { ensight { format ascii; } } interpolationScheme cell; fields ( alpha1 phi ); surfaces ( triangleCut { // Cutingplane using iso surface type cuttingPlane; planeType pointAndNormal; pointAndNormalDict { basePoint (0.0 1.0 1.54); normalVector (0.0 0.866025 0.5); } interpolate true; } ) Any help? |
|
July 2, 2013, 19:36 |
|
#3 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
July 3, 2013, 06:55 |
|
#4 |
New Member
Eric Dalmau
Join Date: Mar 2013
Location: Catalonia
Posts: 20
Rep Power: 13 |
Ok thanks I'll take a look on that app. I've look around other posts and for sampling only 1 component of the U vector is there any way to type that? Cause in one post I found "U.component(i)" where i is the component number from 0-2 but it doesn't work for me. The sample app is making only the cutting plane file but not filled with U data only geometrical.
|
|
Tags |
fieldvalue, mrfinterfoam, post-processing, probes, run-time |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mass flow rate: calculation v/s computation | beguxa | FLUENT | 5 | December 2, 2018 22:02 |
[Commercial meshers] converting Fluent mesh to openfoam standard mesh | deepesh | OpenFOAM Meshing & Mesh Conversion | 31 | March 29, 2017 06:59 |
Convergence problem with target mass flow rate | ADL | FLUENT | 2 | May 29, 2012 22:11 |
How to calculate phase flow rate? | sangramroy | FLUENT | 0 | January 11, 2012 14:02 |
Calculating mass flow rate | cfd novice | FLUENT | 1 | April 3, 2008 19:31 |