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/)
-   -   Create an udf for evaluate the adaptive time step (https://www.cfd-online.com/Forums/fluent-udf/218661-create-udf-evaluate-adaptive-time-step.html)

francescolab June 28, 2019 12:03

Create an udf for evaluate the adaptive time step
 
Goodmorning, i have to write an udf for evaluate the rime step size, during my simulation, with the evaluation of a function that compute the maximum of the division between velocity and cell dimension (dx), during every step. I have to use this function because i can compute with this program the value of the time step size with a condition on cfl (i define a number for cfl limit). I wrote the function but Fluent give me some errors. Someone could help me?

francescolab June 28, 2019 12:06

https://ibb.co/PDFqyjq
https://ibb.co/YjzHnyd
Image of code and error

AlexanderZ July 1, 2019 01:11

put here code and error (with detailed explanations of steps which lead to error)

dont use pictures

best regards


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