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

"calculated " boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2010, 05:13
Default "calculated " boundary condition
  #1
New Member
 
sunil
Join Date: Jan 2010
Posts: 8
Rep Power: 16
suniljain is on a distinguished road
hi,
how to apply calculated type of primitive patch field. i have a relation between p and v at that boundary (patch) , say p=constant * v. so how should i write p and v boundary condition for that patch.
is there anybody who can help me..............

Last edited by suniljain; February 19, 2010 at 00:31.
suniljain is offline   Reply With Quote

Old   January 28, 2010, 09:28
Default
  #2
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 17
herbert is on a distinguished road
Hi,

I think one way to solve your problem was the following. (But its only a suggest and surely not the only one)

1. set boundaryType for U to zeroGradient
2. set boundaryType for p to fixedValue
3. solve Eqns
4. set value on boundary of p to C*U
5. repeat steps 3-4 and hope for convergence

Does anyone know about a more elegant solution?

Regards
Stefan
herbert is offline   Reply With Quote

Old   January 28, 2010, 13:22
Default
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by suniljain View Post
hi,
how to apply calculated type of primitive patch field. i have a relation between p and v at that boundary (patch) , say p=constant * v. so how should i write p and v boundary condition for that patch.
is there anybody who can help me.
I may be biased ("If you've got a hammer, every problem looks to you like a nail", and if you wrote the hammer it is worse), but http://openfoamwiki.net/index.php/Contrib_groovyBC may help you (at least for prototyping such a kind of boundary condition)

Bernhard
gschaider 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
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 05:05
Transient outlet boundary condition problem jwillie2000 CFX 1 December 7, 2009 17:07
Axis Boundary Condition..what is it? CFDtoy FLUENT 6 February 13, 2007 05:51
How to set boundary condition in Fluent for the fo Peiyong FLUENT 1 November 10, 2006 11:44
How to resolve boundary condition problem? sam FLUENT 2 July 20, 2003 02:19


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