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

Measure mass flow at two places in a model

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2022, 05:03
Default Measure mass flow at two places in a model
  #1
New Member
 
Tobias
Join Date: Jul 2022
Posts: 7
Rep Power: 2
dalasrevo is on a distinguished road
Hello dear OpenFOAM community,

I have a problem that I could not solve even with a lot of searching in the forum (most probably I have already read many threads where a solution could be found, but I did not understand it):
I have a 3D structure meshed with cfMesh. It starts with a free surface, followed by a pressure section, which then goes back to an area with free surface. Now I want to measure a flow (mass flow) at two points, each of which is the transition from the free mirror to the pressure area, to find out at which side how much flows through. I would like to do the whole thing at runtime of interFoam and not in paraView.

Unfortunately I can't show the model, but I attach a sketch in 2D to clarify my problem: flow is from left to right (black open regions are free surface, blue is pressure section, red is a deflector wall which parts the flow and ends at the pressure section. Green and cyan are the two places where I would like to measure my massflow)


I have placed the two faces I would like to measure on as .stl under constant/triSurface.
How do I proceed now?
I have tried so far, among other things, to enter the following in the controlDict:

Code:
    flow_left
    {
    type surfaces;
    libs ("libsampling.so");
    writeControl writeTime;
    interpolationScheme cellPoint;
    surfaceFormat stl;
    setFormat raw;
    surfaces
    (
        flow_left
        {
        type sampledTriSurfaceMesh;
        surface flow_left.stl;
        source boundaryFaces;
        interpolate true;
        }
    );
    fields (U mag(U));
    }

flow_right
    {
    type surfaces;
    libs ( libsampling.so );
    writeControl writeTime;
    interpolationScheme cellPoint;
    surfaceFormat stl;
    setFormat raw;
    surfaces
    (
        flow_right
        {
        type sampledTriSurfaceMesh;
        surface flow_right.stl;
        source boundaryFaces;
        interpolate true;
        }
    );
    fields (U mag(U));
    }
Funnily enough, what happens now is that a copy of my flow_left.stl and flow_right.stl is placed in each folder in postProcessing. Funny, but definitely not what I want. I have obviously messed up everything that is possible to mess up.


I'm totally at a loss and would really appreciate some help. If there is a completely different approach to solve my problem, I am of course open to that as well.
Attached Images
File Type: jpg flow_sketch.jpg (15.2 KB, 3 views)
dalasrevo is offline   Reply With Quote

Reply

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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 07:40
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 19:02
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00


All times are GMT -4. The time now is 19:16.