|
[Sponsors] |
March 25, 2019, 04:49 |
flowRateInletVelocity for multiple patches
|
#1 |
New Member
Mattia
Join Date: May 2018
Location: Novara - Italy
Posts: 29
Rep Power: 7 |
Hello,
I have a question and I'm sure is something that can be checked in the source code, but I'm not that confident with C++ so please don't mind if this sound extremely stupid Is flowRateInletVelocity suitable in the case my inlet is made of multiple surfaces grouped together in a single patch (check sample image, colored faces are inlet). What I mean is if the BC will divide the flowrate by all the inlet faces, resulting in a constant velocity value, equal for all patches even if there are walls in between the inlets. I hope I did explain clearly enough. I think this won't work, but I would like to ear your opinion. If this is not the case, with regex I should be able to keep all the inlet separated and this should work. At this point I was wondering if using extrapolateProfile flag will produce a parabolic profile for every single patch.* Bye * I saw here that velocity profile is uniform and not parabolic. Nevermind. Last edited by time-; March 25, 2019 at 05:14. Reason: Checked source code |
|
March 26, 2019, 09:40 |
|
#2 |
Senior Member
|
Hi,
flowRateInletVelocity calculates area of a patch (using simple sum of face areas), divides volumetric flow rate to calculate velocity, and then sets this value at every patch face. In general, boundary condition knows nothing about "walls in between inlets". |
|
April 21, 2019, 10:40 |
|
#3 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21 |
If you look at the source code of the boundary condition, you see what extrapolateProfile does:
https://github.com/OpenFOAM/OpenFOAM...orField.C#L161 It takes the values from the cell centers of the cells at the boundary and scales them, so the overall flowrate is equal to the requested value. So what ever your flow profile is in the flow domain, it will be projected (and adopted) to the boundary faces. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem using AMI | vinz | OpenFOAM Running, Solving & CFD | 298 | November 13, 2023 08:19 |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 91 | December 21, 2022 04:50 |
Possible bug with stitchMesh and cyclics in OpenFoam | Jack001 | OpenFOAM Pre-Processing | 0 | May 21, 2016 08:00 |
Case running in serial, but Parallel run gives error | atmcfd | OpenFOAM Running, Solving & CFD | 18 | March 26, 2016 12:40 |
[blockMesh] Merging edge patches | Yosmcer | OpenFOAM Meshing & Mesh Conversion | 11 | November 16, 2014 14:51 |