CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Exiting a UDF (https://www.cfd-online.com/Forums/fluent-udf/91518-exiting-udf.html)

pranab_jha August 13, 2011 18:39

Exiting a UDF
 
Hi,
I am using a UDF to specify a pressure boundary condition. I want to know if that when I reach a specific pressure, how can I stop using the UDF at that time-step and change the BC.

I use a journal file to give the commands, so in short, if I get that pressure condition, I would like to change the BC from the UDF to a constant using the journal file itself.

Has somebody had any success or experience in this?

3DmaniacSLDWRKS August 16, 2011 13:00

any luck? if so plz share your experience with us :)

thanks

D.Q.Zheng August 23, 2011 04:47

I don't know whether the following could be helpful.

Maybe you can use 'If' statements in your UDF to define BC, e.g.

If(pressure_now<pressure_condition)
{}
else
{}


All times are GMT -4. The time now is 20:53.