CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Changing boundary condition at pressure outlet using udf (https://www.cfd-online.com/Forums/cfx/143880-changing-boundary-condition-pressure-outlet-using-udf.html)

flashkicker November 4, 2014 23:59

Changing boundary condition at pressure outlet using udf
 
Hi, i am doing MTech project in cfd analysis and in need of urgent help.
I am using fluent to solve this problem.
Following is my problem:

1. A simple assemby with 1 inlet and 2 outlets. With a fan near to the inlet.

2. I need to find pressure acting on the blade of the fan, in case one of the outlet is closed.

3. My issue over here is to close and open the output with respect to time.
4. I wanted to know could it be done by UDF.

5. Or any other method which could be used.
I want the change to take place with respect to time.
It would be very kind of you if you could help me out.

Thanks and regards....

ghorrocks November 5, 2014 06:20

Yes it can be done by a UDF. But try the Fluent forum if you want to find out how.

flashkicker November 5, 2014 07:07

Could you provide me with link. I am new to UDF.

flashkicker November 5, 2014 15:03

#include "udf.h"



DEFINE_PROFILE(unsteady_pressure, thread, position)

{

face_t f;

real t = CURRENT_TIME;



if((t>=5 && t<=10))

{

begin_f_loop(f, thread)

{

F_PROFILE(f, thread, position) = 0;

}

end_f_loop(f, thread)

}

}
Following was the UDF I used but it doesn't seem to affect the fluid flow as pressure outlet is zero. Please anybody could help out.

ghorrocks November 6, 2014 00:59

Quote:

But try the Fluent forum if you want to find out how.
http://www.cfd-online.com/Forums/fluent/

flashkicker November 7, 2014 04:14

Thank you for the help


All times are GMT -4. The time now is 08:36.