CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

Specifying a prescribed velocity inlet

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes

LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2022, 06:40
New Member
Join Date: May 2021
Location: Athens, Greece
Posts: 26
Rep Power: 4
SadBoySquad is on a distinguished road
Originally Posted by Tobi View Post
So yesterday I was thinking about a new implementation. Its not straight forward and tricky. So lets see if I can get some code-snippet work.
The main problem is, that we can apply the condition to x-y-z coordinate and hence, a more reliable logic needs to be applied here. Furthermore, the search of the lowest "coordinate" for each face is not straight forward either.
I know, it is kinda hard to set it up in a way that works on all possible cases.

The way I tackled it (in an in-house solver) was the following:
-- Read the inflow patch
-- Define zAxis direction for the atmospheric BL, along with other required atm BL properties (kinda like what OpenFoam requires)
-- In addition, define a desired tolerance for the local ground level search algorithm.
-- For each inflow face, search through all other inflow faces and find the one that has the lowest zAxis coordinate while also satisfying the given tolerance.
-- The tolerance is defined as the projected distance on the XY plane (i.e. excluding the zAxis direction)
-- The tolerance can be set on a per mesh basis, since it depends on mesh spacing

This algorithm is crude and not particularly fast (N^2 calculations), however it can find the local ground level given a suitable tolerance.
Even if it does not find the directly below ground face, the errors in atmBL calculation would not be that significant.
SadBoySquad is offline   Reply With Quote


inlet, prescribed velocity

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Pressure problems with inlet variable velocity jaimesdiegop CFX 2 September 1, 2016 02:31
3-D parabolic velocity Inlet - Steady state - UDF Turbulent Flow mohibanwar Fluent UDF and Scheme Programming 10 May 18, 2015 10:34
UDF problem : inlet velocity in cyl. coord. system Jongdae Kim FLUENT 0 June 15, 2004 11:21
UDF paraboloid velocity inlet Ronak Shah FLUENT 0 June 4, 2003 09:44

All times are GMT -4. The time now is 10:26.