CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

complex number operation in udf?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2005, 00:15
Default complex number operation in udf?
  #1
hongxiao
Guest
 
Posts: n/a
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.
  Reply With Quote

Old   April 1, 2005, 07:46
Default Re: complex number operation in udf?
  #2
ap
Guest
 
Posts: n/a
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
  Reply With Quote

Old   April 1, 2005, 07:49
Default Re: complex number operation in udf?
  #3
ap
Guest
 
Posts: n/a
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
  Reply With Quote

Old   April 4, 2005, 00:26
Default Re: complex number operation in udf?
  #4
hongxiao
Guest
 
Posts: n/a
Hi,ap,thank you very much! Now,my udf has been compiled successfully.
  Reply With Quote

Old   April 9, 2005, 07:50
Default Re: complex number operation in udf?
  #5
ap
Guest
 
Posts: n/a
  Reply With Quote

Old   June 14, 2017, 14:11
Default Dear HongXiao what did you do to complile your complex number udf?
  #6
New Member
 
Dany Cahue
Join Date: Jun 2017
Posts: 1
Rep Power: 0
dcahue1 is on a distinguished road
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.
dcahue1 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 03:23
UDF: how to know domain number in the model? mssound FLUENT 0 May 17, 2010 15:00
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 10:37
File operation in UDF Ajay FLUENT 0 April 10, 2004 16:33
Urgent: Random number in UDF hedonists FLUENT 1 March 4, 2004 03:26


All times are GMT -4. The time now is 05:43.