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

how to set complex boundary condition, namely a developed velocity in inlet of pipe?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fumiya

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 30, 2015, 16:01
Default how to set complex boundary condition, namely a developed velocity in inlet of pipe?
  #1
Member
 
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14
milad653279 is on a distinguished road
Hi

can anyone help me to write a complex boundary condition without swak4foam? I wanna set developed velocity boundary condition in inlet of pipe, its formula is:

V=V_max*[1-(r/R)^2]

openfoam has simple boundary condition type such as "fixedvalue, fixedgradient and mixed" . How can I implement a variable Bc with posotion without swak4Foam?

thanks
milad653279 is offline   Reply With Quote

Old   December 30, 2015, 18:39
Default codedFixedValue b.c.
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
Hi,

You can use the codedFixedValue condition.

Best regards,
Fumiya
__________________
[Personal]
fumiya is offline   Reply With Quote

Old   January 4, 2016, 05:50
Default
  #3
Member
 
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14
milad653279 is on a distinguished road
dear fumiya

can you write me correct form of this Bc with codedfixedvalue.?
tnx
milad653279 is offline   Reply With Quote

Old   January 4, 2016, 10:46
Default
  #4
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 19
fumiya is on a distinguished road
Hi,

You might want to give it a try for improving your understanding.
There are some good materials on this topic:
http://www.sourceflux.de/blog/the-co...dary-condition

And, there is parabolicVelocity condition implemented in foam extend:
https://github.com/Unofficial-Extend...abolicVelocity

Hope this helps,
Fumiya
gaza likes this.
__________________
[Personal]
fumiya 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
Problem with assigned inlet velocity profile as a boundary condition Ozgur_ FLUENT 5 August 25, 2015 05:58
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 12:19
Boundary condition of velocity and pressure at interface for air water pipe flow jignesh_thaker2007 OpenFOAM Running, Solving & CFD 7 June 19, 2014 11:12
Velocity inlet boundary condition for porous medium Chander CFX 3 March 11, 2012 22:18
velocity inlet vs. moving wall boundary condition Jane Leous Main CFD Forum 0 September 12, 2008 13:42


All times are GMT -4. The time now is 06:48.