|
[Sponsors] |
[OpenFOAM] How to calculate mass flow rate through arbitrary rectangle plane in paraview |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 10, 2016, 03:16 |
How to calculate mass flow rate through arbitrary rectangle plane in paraview
|
#1 |
Member
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 13 |
Hi All,
I am trying to calculate mass flow rate at 12 HVAC vents opening. These openings are not defined as patch or face. They are interior of the domain. I want to define plane/rectangle of a give size at these opening locations to calculate the mass flow rate through them. But when I create a plane in paraview using sources > plane, the plane doesn't have nay data field - U or p. Please help me to calculate mass flow rate at arbitrary plane in the domain. When I use slice or cut plane, it cuts through the whole domain, which I don't want. Regards, Manoj |
|
March 11, 2016, 06:04 |
|
#2 |
Senior Member
|
Hi,
If you want to use the plane from sources, you need to do resampleWithDataSet. I typically use the following sequence of filters: Slice>Connectivity>threshold on the "regionID" (see example images) Regards, Tom |
|
March 11, 2016, 07:28 |
|
#3 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
||
March 14, 2016, 11:39 |
|
#4 | |
Member
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 13 |
Quote:
When I use sequence of filters: Slice>Connectivity .. I get just one region ID - 0, as in the attached snapshot. How to use the threshold then. Sorry for my ignorance.. Regards, Manoj |
||
March 14, 2016, 11:41 |
|
#5 |
Member
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 13 |
||
March 17, 2016, 03:51 |
|
#6 | |
Member
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 13 |
Quote:
keyword sourceName is undefined in dictionary "/home/manoj/trial/vent/system/controlDict.functions.new_plane" Code:
functions { new_plane { type faceSource; functionObjectLibs ("libfieldFunctionObjects.so"); enabled true; outputControl outputTime; log true; valueOutput true; source sampledSurface; sampledSurfaceDict { type sampledTriSurfaceMesh; surface opening.stl; source cells; // What to sample: cells (nearest cell) // insideCells (only triangles inside cell) // boundaryFaces (nearest boundary face) interpolate true; } operation areaAverage; fields ( U ); } } Code:
functions { #include "volFlowRateSurface" } Regards, Manoj |
||
March 18, 2016, 13:27 |
|
#7 | |
Senior Member
|
Quote:
In that case there is no possibility for the threshold filter. I had assumed you would have some distinct regions for each opening, maybe you could make a clear sketch of what you are trying to do. Regards, Tom |
||
April 1, 2016, 08:14 |
|
#8 | |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
Quote:
Check this post, which offers another way of defining a (infinite) plane that may be useful to you : http://www.cfd-online.com/Forums/ope...tml#post581774 Regarding the error your received, have you tried inserting the keyword sourceName inside the new_plane dictionary, like below? That is what the error message says. Code:
functions { new_plane { type faceSource; functionObjectLibs ("libfieldFunctionObjects.so"); enabled true; outputControl outputTime; log true; valueOutput true; source sampledSurface; sourceName anyNameYouLike; ... Thomas |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Specify mass flow rate for periodic boundary conditions in channel flow | lion1990 | OpenFOAM Running, Solving & CFD | 1 | July 9, 2018 18:46 |
Pressure Outlet Targeted Mass Flow Rate | LuckyTran | FLUENT | 1 | November 23, 2016 11:40 |
Periodic channel flow with time dependent mass flow rate | QBeast | FLUENT | 3 | May 10, 2013 14:14 |
Discrete Phase & Mass Flow Rate | MagnusZeus | FLUENT | 0 | December 2, 2011 18:57 |
particle, parcel and mass flow rate balance | flybird | FLUENT | 0 | May 24, 2007 11:44 |