CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   outlet-vent pressure adaption (https://www.cfd-online.com/Forums/fluent/103538-outlet-vent-pressure-adaption.html)

Zigainer June 20, 2012 07:13

outlet-vent pressure adaption
 
Hi,

following case (see: http://www.cfd-online.com/Forums/flu...daption.html):

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 12:37.