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

Non uniform inlet specification

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2015, 16:49
Default Non uniform inlet specification
  #1
New Member
 
Albert Pressler
Join Date: Feb 2015
Location: UK
Posts: 3
Rep Power: 11
AlbertPressler is on a distinguished road
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!
AlbertPressler is offline   Reply With Quote

Old   May 21, 2015, 05:44
Smile
  #2
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 16
T.D. is on a distinguished road
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:
Originally Posted by AlbertPressler View Post
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!
T.D. is offline   Reply With Quote

Old   May 25, 2015, 06:49
Default
  #3
New Member
 
Albert Pressler
Join Date: Feb 2015
Location: UK
Posts: 3
Rep Power: 11
AlbertPressler is on a distinguished road
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...
AlbertPressler is offline   Reply With Quote

Old   July 16, 2015, 07:06
Default
  #4
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 16
T.D. is on a distinguished road
OK. You can still learn some coding.
Everybody can (only if he/she wants to)

Regards,
T.D.
T.D. 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
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


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