# "calculated " boundary condition

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

 January 28, 2010, 06:13 "calculated " boundary condition #1 New Member   sunil Join Date: Jan 2010 Posts: 8 Rep Power: 7 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 01:31.

 January 28, 2010, 10:28 #2 Senior Member   Stefan Herbert Join Date: Dec 2009 Location: Darmstadt, Germany Posts: 129 Rep Power: 8 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

January 28, 2010, 14:22
#3
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
Quote:
 Originally Posted by suniljain 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Thomas P. Abraham Main CFD Forum 20 July 7, 2013 05:05 jwillie2000 CFX 1 December 7, 2009 18:07 CFDtoy FLUENT 6 February 13, 2007 06:51 Peiyong FLUENT 1 November 10, 2006 12:44 sam FLUENT 2 July 20, 2003 02:19

All times are GMT -4. The time now is 05:35.