CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   [B]the compiler keep on compile previous udf without updating new udf?[/B] (https://www.cfd-online.com/Forums/fluent-udf/138876-b-compiler-keep-compile-previous-udf-without-updating-new-udf-b.html)

fruitkiwi July 13, 2014 03:26

[B]the compiler keep on compile previous udf without updating new udf?[/B]
 
Dear all,

I am using fluent in ansys 14.5, my compiler working in the first time, eg. compile sixdof.udf, and it manage to work flawlessly.

However, when I try to compiler other udf file eg. velocity.udf, the result never changes, in the fluent windows it still using the old sixdof.udf as end results. I can see the message telling me that it is still using the previous library file, C:\Users\fruitkiwi\libudf\win64\3ddp\libudf.dll

even when i am moving the library file go to other places, it still compile the previous udf, without updating the new udf which i instruct in the compiler GUI.

May I know if there is anyone of you face the similar problem and manage to solve it?

Thank you in advance.

pakk July 14, 2014 16:51

Probably (but this is a bit of a guess) when you thought that you compiled the 'new' udf, it did not work and you got a warning on your screen, that you missed. If the compilation failed, Fluent uses the most recent compiled version.

fruitkiwi July 14, 2014 21:46

1 Attachment(s)
Dear Pakk,

thanks for reply.
as attachment shown, in that way, based on your experience, is it possible for me to delete any file to let it compile the latest version?

Attachment 32345

fruitkiwi July 18, 2014 02:20

is there anyone know how I can update the compiler compiled file rather than let it keep on compile the old file?

thank you.

pakk July 24, 2014 09:03

Fluent will always try to compile the newest version. You don't need to delete any files for that.

Sometimes, Fluent will have a problem with compiling the newest version, for example when you you made a mistake in the udf. In that case, nothing will be compiled. And when you try to use the udf, Fluent will use the most recent compiled version.

Check what is showing on your screen when you try to compile the udf. Do you see warnings or errors?

lehoanganh07 July 24, 2014 19:38

Different UDF file, you should make the diffrent name for library.
First UDF file the defaul name in Fluent is libudf. So fo second UDF file such as velocity.c, you compile with name libudf1


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