|
[Sponsors] |
November 22, 2014, 16:32 |
|
#41 |
New Member
Join Date: Nov 2014
Posts: 3
Rep Power: 12 |
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. |
|
November 22, 2014, 18:02 |
|
#42 |
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17 |
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. |
|
November 23, 2014, 03:54 |
|
#43 |
New Member
Join Date: Nov 2014
Posts: 3
Rep Power: 12 |
Thanks for the reply macfly. Although the nmake issue has been resolved, I'm still experiencing an error : Cannot find D:\abcdefg..\ libudf.dll.
|
|
February 8, 2015, 10:01 |
hello rou
|
#44 |
New Member
Aayush
Join Date: Feb 2015
Location: Solapur
Posts: 3
Rep Power: 11 |
did you find a solution to above problem? i am too stuck at this error. Please help.
|
|
February 8, 2015, 16:24 |
|
#45 |
New Member
arough
Join Date: Mar 2013
Location: tunisia
Posts: 24
Rep Power: 13 |
sorry but I didn't solve the problem
|
|
March 18, 2015, 06:09 |
|
#46 | |
New Member
Join Date: Mar 2015
Posts: 6
Rep Power: 11 |
//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:
|
||
April 10, 2015, 08:06 |
|
#47 |
New Member
Ahmed
Join Date: Mar 2015
Posts: 3
Rep Power: 11 |
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 |
|
April 12, 2015, 09:23 |
|
#48 |
New Member
Ahmed
Join Date: Mar 2015
Posts: 3
Rep Power: 11 |
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 |
|
April 13, 2015, 06:07 |
|
#49 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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.
|
|
April 29, 2015, 03:57 |
|
#50 |
Member
|
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 |
|
April 29, 2015, 04:18 |
|
#51 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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. |
||
April 29, 2015, 05:56 |
|
#52 |
Member
|
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 Copied C:\Users\vignesh.v\Desktop\gerotor_test/C:\Users\vignesh.v\Desktop\gerotor_test\gerotor_vane_smoothing.c to libudf\src udf_names.c file in 3ddp is upto date. (system "copy "C:\PROGRA~1\ANSYSI~1\v145\fluent"\fluent14.5.0\src\makefile_nt.udf "libudf\win64\3ddp\makefile" ") 1 file(s) copied. (chdir "libudf")() (chdir "win64\3ddp")() # Generating ud_io1.h gerotor.c ..\..\src\gerotor.c(540) : error C2143: syntax error : missing ';' before 'type' ..\..\src\gerotor.c(542) : error C2065: 'i' : undeclared identifier ..\..\src\gerotor.c(542) : error C2065: 'i' : undeclared identifier ..\..\src\gerotor.c(542) : error C2065: 'i' : undeclared identifier ..\..\src\gerotor.c(544) : error C2065: 'i' : undeclared identifier ..\..\src\gerotor.c(544) : error C2065: 'i' : undeclared identifier gerotor_vane_smoothing.c Generating Code... Done. Opening library "C:\Users\vignesh.v\Desktop\gerotor_test\libudf"... Error: The UDF library you are trying to load (libudf) is not compiled for 3ddp on the current platform (win64). The system cannot find the file specified. C:\Users\vignesh.v\Desktop\gerotor_test\libudf\win64\3ddp\libudf.dll Error Object: #f |
|
July 17, 2015, 07:41 |
compiling help
|
#54 |
New Member
Ludo
Join Date: Jul 2015
Posts: 14
Rep Power: 11 |
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) 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! |
|
July 17, 2015, 08:18 |
|
#55 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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++. |
||
July 17, 2015, 10:45 |
|
#56 |
New Member
Ludo
Join Date: Jul 2015
Posts: 14
Rep Power: 11 |
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); } |
|
July 18, 2015, 10:32 |
|
#57 |
New Member
Ludo
Join Date: Jul 2015
Posts: 14
Rep Power: 11 |
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 Last edited by ludosbiz; July 18, 2015 at 14:07. |
|
July 18, 2015, 14:07 |
|
#58 |
New Member
Ludo
Join Date: Jul 2015
Posts: 14
Rep Power: 11 |
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? |
|
July 21, 2015, 16:43 |
|
#59 |
New Member
Ludo
Join Date: Jul 2015
Posts: 14
Rep Power: 11 |
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.
Last edited by ludosbiz; July 22, 2015 at 04:50. |
|
August 3, 2015, 16:00 |
|
#60 |
New Member
Ludo
Join Date: Jul 2015
Posts: 14
Rep Power: 11 |
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...
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |