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/)
-   -   UDF for outlet-vent pressure adaption (https://www.cfd-online.com/Forums/fluent-udf/103273-udf-outlet-vent-pressure-adaption.html)

Zigainer June 15, 2012 10:08

UDF for outlet-vent pressure adaption
 
Hi,

following case:

I do have 3 pressure-vent outlets. At the end I want to have a specific mass flow rate at each outlet (-+5%). If I use target mass flow rate my calculations crash (pressure is adapted every time step, right?)

So I want somehow a function (UDF?) which check the mass flow after 1000 iterations. If it is within a limit its fine, if not the pressure should be adapted (lets say old_pressure - 1000) ... and this gain every 1000 iterations ...

Can you help me with this? I had no experience with UDF so far and I just did it manually (stop after 1000 iterations, check mass flow, change pressure) ...

Thanks


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