CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   Any expert in udf writing here? (

coolengineer April 22, 2009 12:52

Any expert in udf writing here?
Hi everybody,

Although I am new user, I have been online everyday for over one week. But I cannot find answers to my problem. Anyone here experience in writing udfs?

I just need a critical touch.

Waiting from you.

coolengineer April 22, 2009 14:33

Thanks to mAx
I thank mAx very much for his guidence through my problem!

-mAx- April 23, 2009 01:15

you're welcome.
Can you quick detail how do you solved your issue on your previous thread
It can be helpfull for someone else

coolengineer April 23, 2009 04:21

How I solved my problem
When I attemped to hook my udf to Fluent, the following problem occured:

Creating library libudf.lib and object libudf.exp
my_herschel_bulkley.obj : error LNK2019: unresolved external symbol __imp__Cell_Strain_Rate_Mag referenced in function _my_herschel_bulkley
libudf.dll : fatal error LNK1120: 1 unresolved externals

As you can guess the problem was with my assignment the Cell_Strain_Rate_Mag to a symbol. I deleted assignment and instead I used Cell_Strain_Rate_Mag in the following definitions, then hooked the udf to Fluent and saw that it worked.

Thank you again mAx.

All times are GMT -4. The time now is 23:07.