CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Help me about modifying the outlet patch boudary condition,how to write updateCoef() (http://www.cfd-online.com/Forums/main/87479-help-me-about-modifying-outlet-patch-boudary-condition-how-write-updatecoef.html)

fanghuabetty April 21, 2011 04:13

Help me about modifying the outlet patch boudary condition,how to write updateCoef()
 
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.


All times are GMT -4. The time now is 00:39.