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

Specifying a prescribed velocity inlet

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2022, 07:40
Default
  #21
New Member
 
Join Date: May 2021
Location: Athens, Greece
Posts: 28
Rep Power: 5
SadBoySquad is on a distinguished road
Quote:
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

Reply

Tags
inlet, prescribed velocity


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 03:31
VELOCITY vs VELOCITY IN STN FRAME vs RELATIVE VELOCITY everest20 FLUENT 1 July 13, 2015 09:35
3-D parabolic velocity Inlet - Steady state - UDF Turbulent Flow mohibanwar Fluent UDF and Scheme Programming 10 May 18, 2015 11:34
UDF problem : inlet velocity in cyl. coord. system Jongdae Kim FLUENT 0 June 15, 2004 12:21
UDF paraboloid velocity inlet Ronak Shah FLUENT 0 June 4, 2003 10:44


All times are GMT -4. The time now is 12:46.