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

flowRateInletVelocity for multiple patches

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2019, 04:49
Default flowRateInletVelocity for multiple patches
  #1
New Member
 
Mattia
Join Date: May 2018
Location: Novara - Italy
Posts: 29
Rep Power: 7
time- is on a distinguished road
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.
Attached Images
File Type: jpg SALOME 9.2.2 - [Study1]_10.48.24.jpg (27.5 KB, 32 views)

Last edited by time-; March 25, 2019 at 05:14. Reason: Checked source code
time- is offline   Reply With Quote

Old   March 26, 2019, 09:40
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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".
alexeym is offline   Reply With Quote

Old   April 21, 2019, 10:40
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
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.
jherb is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 11:24.