CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How to check residuals in UDF for dynamic mesh? (https://www.cfd-online.com/Forums/fluent/188216-how-check-residuals-udf-dynamic-mesh.html)

 Prikane May 25, 2017 14:00

How to check residuals in UDF for dynamic mesh?

Dear colleagues,

I am working on transient problem in Fluent. After applying UDF for dynamic mesh and after finishing first time step (with 20 iterations per time step), on the beginning of second time step I should check whether the solution converged (residuals < 0.001). If solution did not converge I should not move mesh and if solution convergence happened boundary nodes on which UDF for dynamic mesh is applied should move. And this procedure should repeat each next step.

How to check equation residuals in UDF for dynamic mesh - is there any function?

Or is there any other way? For example, can I somehow set that my UDF for dynamic mesh is only applied when solution of convergence is achieved?

Many thanks in advance for helping me.

Kind regards,

Prikane

 ana86 May 6, 2019 07:52

Quote:
 Originally Posted by Prikane (Post 650275) Dear colleagues, I am working on transient problem in Fluent. After applying UDF for dynamic mesh and after finishing first time step (with 20 iterations per time step), on the beginning of second time step I should check whether the solution converged (residuals < 0.001). If solution did not converge I should not move mesh and if solution convergence happened boundary nodes on which UDF for dynamic mesh is applied should move. And this procedure should repeat each next step. How to check equation residuals in UDF for dynamic mesh - is there any function? Or is there any other way? For example, can I somehow set that my UDF for dynamic mesh is only applied when solution of convergence is achieved? Many thanks in advance for helping me. Kind regards, Prikane

 Prikane May 6, 2019 08:26

Hey Ana86,

Yes, I have solved the problem by following instructions given in the following two links:
http://www.eureka.im/1087.html
https://www.cfd-online.com/Forums/fl...ge-fluent.html

The explained procedure worked for me! Good luck!

Kind regards,

Prikane

 ana86 May 8, 2019 09:33

Thank you :)

 All times are GMT -4. The time now is 23:51.