|
[Sponsors] |
September 21, 2022, 04:03 |
Measure mass flow at two places in a model
|
#1 |
New Member
Tobias
Join Date: Jul 2022
Posts: 14
Rep Power: 4 |
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)); } 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. |
|
|
|
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 06:40 |
CFD analaysis of Pelton turbine | amodpanthee | CFX | 31 | April 19, 2018 18:02 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 05:21 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 17:44 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 00:00 |