CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   Data errors (

Hanz August 13, 2009 07:42

Data errors
Dear all,

I am experiencing a problem with data errors.

I want to simply find the relative velocity between the particles in a cell, which I have set up using a UDF.

I know that the calculated value I have should be roughly zero, however the value is 0.18m/s which is higher than it should be.

Could this be to do with my variable definitions or the format I use to fprintf my data with. I use double for my definitions and print using %g or %d for integers.

Some help would be great.

All times are GMT -4. The time now is 15:37.