CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Calculating flow rate across a section

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2013, 04:32
Default Calculating flow rate across a section
  #1
New Member
 
Eric Dalmau
Join Date: Mar 2013
Location: Catalonia
Posts: 20
Rep Power: 13
edalmau is on a distinguished road
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
edalmau is offline   Reply With Quote

Old   June 28, 2013, 05:46
Default
  #2
New Member
 
Eric Dalmau
Join Date: Mar 2013
Location: Catalonia
Posts: 20
Rep Power: 13
edalmau is on a distinguished road
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;
        }
)
If I ran it separately (first alpha1 and then phi) it works for alpha1 but not for phi. I've tried all types of interpolationscheme I found in the dict info but I don't know if there are more not included there.

Any help?
edalmau is offline   Reply With Quote

Old   July 2, 2013, 18:36
Default
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by edalmau View Post
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.


If I ran it separately (first alpha1 and then phi) it works for alpha1 but not for phi. I've tried all types of interpolationscheme I found in the dict info but I don't know if there are more not included there.

Any help?
I personally use swak4Foam in that kind of situation. It allows me to evaluate whatever combination of fields I want
__________________
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
gschaider is offline   Reply With Quote

Old   July 3, 2013, 05:55
Default
  #4
New Member
 
Eric Dalmau
Join Date: Mar 2013
Location: Catalonia
Posts: 20
Rep Power: 13
edalmau is on a distinguished road
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.
edalmau is offline   Reply With Quote

Reply

Tags
fieldvalue, mrfinterfoam, post-processing, probes, run-time

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
Mass flow rate: calculation v/s computation beguxa FLUENT 5 December 2, 2018 21:02
[Commercial meshers] converting Fluent mesh to openfoam standard mesh deepesh OpenFOAM Meshing & Mesh Conversion 31 March 29, 2017 05:59
Convergence problem with target mass flow rate ADL FLUENT 2 May 29, 2012 21:11
How to calculate phase flow rate? sangramroy FLUENT 0 January 11, 2012 13:02
Calculating mass flow rate cfd novice FLUENT 1 April 3, 2008 18:31


All times are GMT -4. The time now is 06:49.