|
[Sponsors] |
May 19, 2015, 16:49 |
Non uniform inlet specification
|
#1 |
New Member
Albert Pressler
Join Date: Feb 2015
Location: UK
Posts: 3
Rep Power: 11 |
Hi all,
I need to specify an inlet that represents a large rectangular air flow inlet area where a grid of flow velocities and temperatures have been measured in reality. So the resulting modeled inlet boundary would look like a checkerboard, every field representing one measurement. What would be the easiest way to specify those different inlet BCs without defining all individual inlets in the files? After looking aroud the forum I guess Groovy BC would be the tool to go for, probably in conjunction with a lookup table that contains the measured data. My problem is, I'm not really familiar with the syntax and I don't know how to define the locations of the inlet fields within the Groovy BC description as well as the data file. Can someone give me a hint if that would be the right way and how I'd have to define it? Thanks a lot! |
|
May 21, 2015, 05:44 |
|
#2 | |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 16 |
Hi Albert,
For a checkerboard inlet BC, it will be somehow difficult to handle with groovyBC. You can directly implement the code in your solver via the following methodology: // First get the label of your inlet boundary by: label myinlet = mesh.boundaryMesh().findPatchID("inlet"); // Then get inspired from this thread: http://www.cfd-online.com/Forums/ope...ion-class.html Best Regards, Good Luck ! T.D. Quote:
|
||
May 25, 2015, 06:49 |
|
#3 |
New Member
Albert Pressler
Join Date: Feb 2015
Location: UK
Posts: 3
Rep Power: 11 |
Thanks a lot T.D. for your answer, but I'm afraid I don't really know what to do with it...
How and where do I specify the inlet conditions for the various patches? Or would it be easier after all to just set up 64 inlets? Sorry but I'm not much of a coder and not very familiar with chenging solver code... |
|
July 16, 2015, 07:06 |
|
#4 |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 16 |
OK. You can still learn some coding.
Everybody can (only if he/she wants to) Regards, T.D. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
dsmcFoam setup | hherbol | OpenFOAM Pre-Processing | 1 | November 19, 2021 01:52 |
Channel flow using InterFOAM | DanM | OpenFOAM Running, Solving & CFD | 49 | July 31, 2020 11:43 |
Is there a bug when running createBaffles in parallel??? | zfaraday | OpenFOAM Pre-Processing | 1 | May 12, 2015 13:32 |
LES supersonic free jet | martyn88 | OpenFOAM | 22 | April 17, 2015 06:00 |
interFoam/kOmegaSST tank filling with printStackError/Mules | simpomann | OpenFOAM Running, Solving & CFD | 3 | February 17, 2014 17:06 |