CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

Help me about modifying the outlet patch boudary condition,how to write updateCoef()

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 21, 2011, 03:13
Default Help me about modifying the outlet patch boudary condition,how to write updateCoef()
  #1
New Member
 
betty
Join Date: Apr 2011
Posts: 1
Rep Power: 0
fanghuabetty is on a distinguished road
Hi
here is the case, a box with two patches on top of that, one patch is for the input, the other patch is for the outlet, the inlet has a incompressible wind,the velocity U=1m/s, and I need to forcely set the outlet patch's p = 0.8*U*U, which means that the outlet patch's p is varying with the outlet's U, I have set the

the 0/p is :
outlet
{
type myNewVelocity;
value uniform 0;
}
which, myNewVelocity inherit from class:fixedValueFvPatchField, but I don't know how to set p=0.8*U*U in the updateCoeffs() function, please help me.

Last edited by fanghuabetty; April 21, 2011 at 03:57.
fanghuabetty is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Write the cell area of a patch Andrea_85 OpenFOAM 5 July 27, 2011 08:29
How to write a boundary condition which depends on a seperate patch nzy102 OpenFOAM 9 August 8, 2010 12:55
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 6 April 17, 2010 23:40
Write interpolated patch data of coarse mesh braennstroem OpenFOAM Running, Solving & CFD 0 June 4, 2009 13:55
VOF Outlet boundary condition in cfd - ace JM Main CFD Forum 0 December 15, 2006 09:07


All times are GMT -4. The time now is 04:09.