CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   intel and outel in teh same boundary (https://www.cfd-online.com/Forums/star-ccm/89082-intel-outel-teh-same-boundary.html)

Louis C June 3, 2011 12:21

intel and outel in teh same boundary
 
hello,

I have a cavity with a single enter.
So this enter is inlet and outel. I want to input a function field on the pressure, like Pinlet=cos(time), Poutlet=-cos(time).
But how can set these conditions on the same boundary?

I hope that my english is not so bad, and that you can understand me;)

Thanks for your help.

abdul099 July 10, 2011 06:37

Either you split up the boundary (strongly recommended), or you can modify your field function (NOT recommended) to something like

$$Position[0]>=-0.1&&$$Position[0]<=0.1?-cos(time):cos(time)

You can also add some more conditions like $$Position[0] (x-direction), $$Position[1] (y-direction) etc.
When you need a circular split up, you might think about using $$Position[] in a cylindrical coordinate system. See the field function programming reference.


All times are GMT -4. The time now is 02:56.