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 profile based on function of flow time ERROR! (https://www.cfd-online.com/Forums/fluent-udf/176991-udf-profile-based-function-flow-time-error.html)

Ash Kot September 1, 2016 18:39

UDF profile based on function of flow time ERROR!
 
I'm running 2 phase flow implicit Eularian-Eularian flow model.
created model.

defined material to each phase.

defined boundary conditions-for inlet, it's mass flow rate with initial gauge pressure defined

defined outlet pressure boundary condition- as outlet pressure values.

Then velocity slip ratio defined based on variable mass flow rate of phase 1 but constant mass flow rate of phase 2.

All above boundary conditions are defined as profile UDFs as function of flow time.

then phase coupled simple solver is used.

rest is just a calculations activities, with surface monitors.

the case successfully setup and started calculations till 300 time steps with 1 second as time step size.

after that UDF, as function of time, provides new values to the solver. and that's where everything goes wrong and suddenly I receive divergence in AMG solver. Which I shouldn't be getting since the case ran successfully for first 300 time steps

so I need help to know what exactly went wrong.

thank you,

regards,

Bruno Machado September 2, 2016 09:35

Quote:

Originally Posted by Ash Kot (Post 616319)
I'm running 2 phase flow implicit Eularian-Eularian flow model.
created model.

defined material to each phase.

defined boundary conditions-for inlet, it's mass flow rate with initial gauge pressure defined

defined outlet pressure boundary condition- as outlet pressure values.

Then velocity slip ratio defined based on variable mass flow rate of phase 1 but constant mass flow rate of phase 2.

All above boundary conditions are defined as profile UDFs as function of flow time.

then phase coupled simple solver is used.

rest is just a calculations activities, with surface monitors.

the case successfully setup and started calculations till 300 time steps with 1 second as time step size.

after that UDF, as function of time, provides new values to the solver. and that's where everything goes wrong and suddenly I receive divergence in AMG solver. Which I shouldn't be getting since the case ran successfully for first 300 time steps

so I need help to know what exactly went wrong.

thank you,

regards,

We have no idea about your code or if something else in your configuration is wrong. Maybe the time step you are using is too big, maybe is under relaxation factor, maybe is something else. with the information you provide, i dont think any one can help you.


All times are GMT -4. The time now is 03:50.