CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Any expert in udf writing here? (http://www.cfd-online.com/Forums/fluent-udf/63880-any-expert-udf-writing-here.html)

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
http://www.cfd-online.com/Forums/flu...to-fluent.html
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 02:23.