CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How can I apply UDF made in C++ language in Fluent? (https://www.cfd-online.com/Forums/fluent/178013-how-can-i-apply-udf-made-c-language-fluent.html)

chundud September 27, 2016 01:17

How can I apply UDF made in C++ language in Fluent?
 
Hello.

I've got problem to apply UDF which I coded in C++ language.

The reason I coded in C++ is I have to use complex number and its calculation.

I am using Fluent 16.1 and Visual studio 2015.

Does anyone know the answer?

Thank you and sorry for my short english.

Nicco October 14, 2016 10:05

Quote:

Originally Posted by chundud (Post 619366)
Hello.

I've got problem to apply UDF which I coded in C++ language.

The reason I coded in C++ is I have to use complex number and its calculation.

I am using Fluent 16.1 and Visual studio 2015.

Does anyone know the answer?

Thank you and sorry for my short english.

I have the same problem. Did you find a solution?

Qingsong October 14, 2016 10:11

Quote:

Originally Posted by chundud (Post 619366)
Hello.

I've got problem to apply UDF which I coded in C++ language.

The reason I coded in C++ is I have to use complex number and its calculation.

I am using Fluent 16.1 and Visual studio 2015.

Does anyone know the answer?

Thank you and sorry for my short english.

Maybe you can try it in VS2013 or lower version. It happens to me once, but I'm not sure whether it works to your case.

Nicco October 14, 2016 10:28

Quote:

Originally Posted by Qingsong (Post 621531)
Maybe you can try it in VS2013 or lower version. It happens to me once, but I'm not sure whether it works to your case.

So I can write my UDF in C++ ? Which library for complex Numbers did you use?

Qingsong October 14, 2016 11:45

Quote:

Originally Posted by Nicco (Post 621533)
So I can write my UDF in C++ ? Which library for complex Numbers did you use?

You can ask others for this. I only use simple codes. Sorry...

AHF October 18, 2016 04:23

Quote:

Originally Posted by Nicco (Post 621533)
So I can write my UDF in C++ ? Which library for complex Numbers did you use?

please describe the error that you face to.


All times are GMT -4. The time now is 20:12.