CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   complex number operation in udf? (https://www.cfd-online.com/Forums/fluent/36226-complex-number-operation-udf.html)

hongxiao April 1, 2005 00:15

complex number operation in udf?
 
I want to use the complex number operation in udf, but udf has no this type of operation. Can I define the operation in it? and how? By the way, the operation inludes complex Bessel function. Thanks for your help.

ap April 1, 2005 07:46

Re: complex number operation in udf?
 
If you use compiled UDF, you can just use a C/C++ library which manages complex numbers.

There are many open sources solutions. For example, you could consider GSL.

Best regards, ap

ap April 1, 2005 07:49

Re: complex number operation in udf?
 
You can find information on the GNU Scientific Library here:

http://www.gnu.org/software/gsl/

If you work on Linux, you probably just have to install it from the CD's of your distribution.

Regards, ap

hongxiao April 4, 2005 00:26

Re: complex number operation in udf?
 
Hi,ap,thank you very much! Now,my udf has been compiled successfully.

ap April 9, 2005 07:50

Re: complex number operation in udf?
 

dcahue1 June 14, 2017 14:11

Dear HongXiao what did you do to complile your complex number udf?
 
Dear HongXiao what did you do to compile your complex number udf? I am trying to compile complex number udf but the "include<complex>" library does not compile in visual studio. So, which was you methodology?



Quote:

Originally Posted by hongxiao
;119250
Hi,ap,thank you very much! Now,my udf has been compiled successfully.



All times are GMT -4. The time now is 16:36.