CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Maths in UDF (https://www.cfd-online.com/Forums/fluent/48359-maths-udf.html)

Corentin May 28, 2008 13:36

Maths in UDF
 
Hi!

Is it possible to do some maths in a UDF?

For instance, can I do the product of two matrices, find the maximum of an array, and so on?

Thank you!

BastiL May 28, 2008 13:53

Re: Maths in UDF
 
of course you can. You can do all that can be done in c programming language.

Regards

Corentin May 28, 2008 13:57

Re: Maths in UDF
 
Ok, thank you :)

I guess there must be some file.h to include?

Regards

fluent_guy June 2, 2008 08:02

Re: Maths in UDF
 
type #include "math.h" to be sure


All times are GMT -4. The time now is 18:42.