Hello all,
I am finding difficulty loading a UDF file (.c) in ANSYS Fluent 14.5 2d dp. It prompts for the same error :- The UDF library you are trying to load (libudf) is not compiled for 2ddp on the curent platform (win64). I am working with Windows 8. And all efforts to make it work have failed. A little more assistance would be nice. |
Only 2 steps did the trick for me in order to compile UDFs in Fluent 14.5 or 15 on Windows 8.1:
- Installing Microsoft Visual Studio Express 12 for Windows 8: http://www.microsoft.com/en-ca/downl....aspx?id=30664 - Add the path to nmake.exe in the path environment variable. |
Thanks for the reply macfly. Although the nmake issue has been resolved, I'm still experiencing an error : Cannot find D:\abcdefg..\ libudf.dll.
|
hello rou
Quote:
|
sorry but I didn't solve the problem
|
//solved
I am at the very last point c and i want to change the working directory. Unfortunately the program gives me the following error: C:\Program Files\Microsoft SDKs\Windows\v7.0>"C:\Users\Julio.Ruben-PC\Desktop\Falko\tut-12-dm-ship-wave\Work_File" ""C:\Users\Julio.Ruben-PC\Desktop\Falko\tut-12-dm-ship-wave\Work_File"" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. Translation of last part: is not recognized as an internal or external command, operable program or batch file. Please help! Quote:
|
Hi guys,
I followed all steps and still get the same error message: would you comment on this. I've Teamviewer if anybody wanna check with me. Error: The UDF library you are trying to load (INC_1) is not compiled for 3ddp on the current platform (win64). The system cannot find the file specified. C:\Ahmed\UDF-mansour\INC_1\win64\3ddp\libudf.dll Error Object: #f |
Dear Laurent,
I've followed every single step in the pdf file and I still have the same error message. could you comment on this. thanks. Ahmed |
Please give the error that you see when you try to build the udf. Without that information, we can not tell you what went wrong.
|
Hi,
If someone found the way to overcome this error "The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).". Please share the steps that needs to be take care. Regards, Vigii |
Quote:
Probably compiling went wrong. Please give the error that you see when you try to build the udf. Without that information, we can not tell you what went wrong. |
Please find the error displayed as below
HTML Code:
Copied C:\Users\vignesh.v\Desktop\gerotor_test/C:\Users\vignesh.v\Desktop\gerotor_test\gerotor.c to libudf\src |
Thanks a lot laurentb. We could however, launch the workbench itself from the sdk command prompt so that all the components of the project are available simultaneously
|
compiling help
Hi guyz, i am new in UDF and C++ language so i'm asking for ur kind help!
I am facing the same problem of above, i am running a x64 fluent v14 and i wanted to try the UDF made by Ankit Gohel(thx soooooooooooo much man u're great!!). after having installed visual studio and sdk i face the same problem, cos probably i dunno understand properly the compiling part of the issue, where i should create a dll library for a x64 based environment instead of the x86 of Ankit(once again man, big up for u) :D now the question, somebody a bit more prepared on compiling/interpreting would explain in detail the passages to perform this operation with visual studio, or even directly compile the file in x64 environment and upload it here below?? i think would be of help for a lot of people like me, involved in dynamic mesh problems. thx for anybody reading, my MS thesis depends upon this file, damn! |
Quote:
The 'easiest' way to compile in Fluent is go to the menu, select Define->User-Defined->Functions->Compiled, and choose the file. There might be good reasons to do this differently, but if you don't have such a reason, keep it simple, and do it that way. Small detail: C++ and C are two different languages, and Fluent UDFs use C, not C++. |
Sorry pakk u re right i need to be clearer, thx for the answer thus.
I found somewhere a precompiled udf for cylinder motion that would be really useful in my case of study, a transversal moving cyl in ansys fluent. When i try to load it on fluent it says: The UDF library you are trying to load (libudf) is not compiled for 2ddp on the curent platform (win64). Then i thought i should recompile it with visual studio for x64, am i right?? I copy here the UDF for some advice eventually.. #include "udf.h" #include "dynamesh_tools.h" #define p1 22/7 #define f1 0.161 DEFINE_CG_MOTION(cylinder, dt, cg_vel, cg_omega, time, dtime) { Thread*t; face_t f; real vel_prev; vel_prev = 0.0; cg_vel[0] = 0.0; cg_vel[1] = (1.013)*sin(2*p1*f1*time); cg_vel[2] = 0.0; if (!Data_Valid_P()) return; /* t = DT_OMEGA_CG(dt); */ cg_omega[0] = 0.0; cg_omega[1] = 0.0; cg_omega[2] = 0.0; vel_prev = vel_prev + cg_vel[1]; Message ("time = %f, cg_vel[1] = %f\n", time, vel_prev); } |
Found this step by step walkthrough that may be useful for others, post the link here below.
http://www.simutechgroup.com/CFD/com...5-or-15-0.html |
i've solved my issues in compiling the udf, it was a matter of environmental and user variables to be reset, thx also to rizwan for his "http://www.cfd-online.com/Forums/fluent-udf/44201-attn-all-soluton-udf-compile-problem.html"
Now i face another error, the following: "c:\program files\ansys inc\v140\fluent\fluent14.0.0\src\global.h(10) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory" is it a big deal, anybody knows something about? |
Resolved this issue by simply ctrl+c/ctrl+v of the files from the c:\program files\visual studio\vc\crt\src subdirectories to the same src folder under ansys.
|
anybody has fluent and sdk and is available for compiling to me an udf??it's a matter of seconds but i cannot figure out why it is not working to me...pls i am stuck in this since weeks...
|
All times are GMT -4. The time now is 13:34. |