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

How to define inlet velocity function?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2017, 23:28
Default How to define inlet velocity function?
  #1
New Member
 
LiangJian
Join Date: Jul 2017
Posts: 13
Rep Power: 10
swordw7 is on a distinguished road
Hello,everyone!
I am a newcomer to openFoam. I don't how to define inlet velocity function. For example v=0.45-2x^2 or v=2t. My openFoam version is 2.1.1.
Best wishes.
swordw7 is offline   Reply With Quote

Old   September 25, 2017, 01:02
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
An easy way is to set the b.c. for each cell using your formula.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   September 28, 2017, 20:52
Default
  #3
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
groovybc in swak4Foam (http://https://openfoamwiki.net/inde...am/Downloading) is an easy way to code your own boundary condition as a function of position.

Caelan
clapointe 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
UDF inlet velocity profile mismatch with Fluent ChristineL Fluent UDF and Scheme Programming 15 November 25, 2016 06:45
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
How to define a mass source at a velocity inlet ? cfdiscool FLUENT 4 June 26, 2014 03:00
UDF for Inlet velocity Mijin Kim FLUENT 0 September 28, 2009 04:50


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