CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   Exiting a UDF (

pranab_jha August 13, 2011 18:39

Exiting a UDF
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 :)


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.


All times are GMT -4. The time now is 13:05.