UDF - Error loading libudf
Hi,
i've succesfully compiled my udf, but when i load it fluent says The UDF library you are trying to load (libudf) is not compiled for 2ddp on the curent platform (win64). what can i do ? I use fluent 13, visual c++ 2008 express and win7 x64 Thank you |
Hi,
Were you able to sort out this problem? If yes, kindly please let me know how you resolved this issue. Thank you. |
Hi,
if you have not done it be sure to start Fluent from the VS command prompt. |
HI, have you checked the environment settings of your computer? Make sure all the settings are correctly. I remember once there was a thread talking about how to set the computer environment for FLUENT on this forum, if you followed all the instructions in the replies above but you still could not get udf work, would you mind to search through the forums to find that thread, and reset the environment. This should work.:)
Best regards, Hongjin |
Hi,
Could any body resolved this problem? I have seen many threads regarding this but yet I am not able to solve the proble. I have installed Visual studio 2010 express and Fluent 13. Also installed "Microsoft Windows SDK v7.0". I have run the Fluent from SDK command prompt. And yet I have recieved the error saying that "The UDF library you are trying to load (Sedimentation) is not compiled for 2ddp on the curent platform (win64). The system cannot find the file specified. C: estudf\Sedimentation\win64\2ddp\libudf.dll" Please let me know the solution for this. Thanks in advance. KK |
Compiling and Loading 64 bits UDF library
1 Attachment(s)
This ANSYS support note provides all informations necessary to compile UDF for FLUENT 64-bit
|
Hi Laurent ,
Thanks for the help. Now it is working fine for me. I have followed same steps as mentioned in pdf file. Probably this file is available for all the users of this forum. KK |
Hi Laurentb
I am having the same issue, I have read the PDF but do not understand, I am a beginner and trying to complete the tutorial "heave and pitch simulation of ship hull moving through head sea waves" and I have the hull geometry and a 6DOF UDF which is what I cannot load as it says "The UDF library you are trying to load (libudf) is not compiled for 3ddp on the curent platform (win64). The system cannot find the file specified." Can you please explain in simple terms what I need to do, Thank you in advance! Cameron |
the content of the pdf file :
Compiling and Loading FLUENT 64-bit UDFs using the "FREE" Microsoft Visual Studio 2010 32-bit Express Edition and the 7.0 SDK IMPORTANT SUPPORT NOTE : The 2010 Express Edition and the SDK will allow you to compile 64-bit UDFs for FLUENT. However, the installation and use of the Express and the SDK is not “officially” supported so we ask that you get your IT folks involved in the actual installation. RESTRICTIONS : Also, you CANNOT compile UDFs for FLUENT without first opening the SDK Command prompt window and starting FLUENT from this window. Instructions Download the Microsoft Visual Studio Express Edition (2010) performing a default installation http://www.microsoft.com/express/Downloads/#2010-Visual-CPP. Search for the text: Microsoft Visual C++ 2010 Express in your browser window. 7.0 SDK Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 or search for the text: Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 in your browser window. IMPORTANT NOTE FROM MICROSOFT : if you are running a 64-bit version of Windows and Visual Studio 2008, please upgrade to Visual Studio 2008 SP1 before installing the Windows 7 SDK. Search for the text: Microsoft Visual Studio 2008 Service Pack 2 in your browser window. This prevents an issue where some platform configuration choices are unavailable in Visual Studio’s New Project Platform and New Solution Platform dialogs. Starting FLUENT using the SDK 7.0 Command Prompt Window 1. Open up the SDK Command Window. This is required as this will set the compiler environment variables. 2. Choose the Start Menu > All Programs > Microsoft Windows SDK v7.0 > CMD Shell 3. Launch FLUENT 13.x from this window. (image below):(i am not able to paste picture here) NOTE : Make sure the CMD window states the following a. “Setting SDK Environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.x” b. Targeting Windows Server 2003 x64 DEBUG c. Change to your Working directory (directory where your .cas, dat and .c file reside) d. Launch Fluent: “C:\Program Files\ ANSYS Inc\v130\fluent\ntbin\win64\fluent”you can find this pdf file in fluent users website. KK |
First of all, i recommend you read the Fluent UDF Manual.
If you use a udf you will need to compile your code (.c file) in order to obtain a compiled library (.dll). You don't have to do this if someone give you the library precompiled BUT the library works only for a specific OS (32 or 64bits) and a specific solver (2d or 3d or double precision). In your case you haven't got a library compiled for your OS (64bits) and your solver (3ddp) |
sdk command prompt
Hi, i have visual studio 9 and in the sdk i dont see a command prompt, cant i start ufd for fluent using visual studio command prompt?
|
Hi,
I'm having this problem too, but my windows and the visual studio are 64bits...also I copied a udf that i knew it was right and it was compiled correctly and I succed to load the library. My own codes, on the other hand, i cant compile nor load the library..... This can't be a system problem, right? What am i doing wrong? I'm new at udf..... |
please help me
hi every body
i need this tutorial .is there anybody help me to find this tutorial with below name: Heave and Pitch Simulation of Ship hull moving through head sea waves i would be grateful if someone help me my email is :mkerend2004@yahoo.com |
please help me
hi every body
i need this tutorial .is there anybody help me to find this tutorial with below name: Heave and Pitch Simulation of Ship hull moving through head sea waves i would be grateful if someone help me my email is :mkerend2004@yahoo.com |
Good Post
Niiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiice it worked for me
I looooooooooooooove CFD Online! :) |
Hi, i use fluent 14, cfree4_1_pro and win7 x64
i've succesfully compiled my udf, but when i load it fluent says: The UDF library you are trying to load (libudf) is not compiled for 2ddp on the curent platform (win64). what should i do? Thank you. |
still do we need to use the fluent from SDK platform?
|
udf compiling problem
hi friends
i have a problem, when i compile udf source file it builds well but when i load it this error apears: open_udf_library: The system cannot find the path specified. |
thanks a lot for this thread!
was very helpful to me! :) |
Had the same problem, solution worked like a charm. Tnx!
|
udf
hello everyone,
I have a similar problem when trying to build my udf. My udf is calling another one, in fortran. But when I build the library I have the following error message: Quote:
I have tried this method for compiling (http://www.cfd-online.com/Forums/flu...ndows2000.html) Quote:
I launched vcvars32.bat in the C:\Programmi\Microsoft Visual Studio 10.0\VC\bin directory. Is it ok? then I had the answer " Quote:
Then I went to my directory, where I have the .cas, .c and .f and typed nmake, but I obtained: Quote:
Thank you for your help. yorelchr |
Hi friends
my OS is win7 32bit , I need the same tutorall for win7 32 , can anybody help me ? tnx |
Error [cortex] [time 5/21/13 12:29:14] The UDF library you are trying to load is not compiled for 3d on the curent platform (ntx86).
Le fichier spécifié est introuvable. Error [cortex] [time 5/21/13 12:33:38] FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error [cortex] [time 5/21/13 12:41:38] can any one help me? |
Hi rou,
The answer is in the error message : "The UDF library you are trying to load is not compiled for 3d on the curent platform (ntx86)." Try again after having compiled the library for the right solver (3d) and platform (32 bits) |
Hello,
I still have the some problem and I don't know what to do? a file'cortexerror.log' appear and it write "Le chemin d’accès spécifié est introuvable D:\ER\E_files\dp0\FFF\Fluent\D:\ER\E_files\dp0\FFF \Fluent\libudf\ntx86\3d\libudf.dll Error Object: #f" |
This works. Thank you so so much CFD Online and everyone. :))))))))
|
Hi Laurent,
Are you trying to say that the versions of Fluent, Visual Studio and the Windows platform on my machine must be the same? Thanks, Shashank Quote:
|
Not exactly, if you have compiled a library with Fluent version 32 bits in 2d mode, the library only work for Fluent version 32 bits with 2d mode. It can't work for a 64 bits version or a 3d mode.
|
Well, I am still not able to solve it. Do you have any suggestions or ideas on how to do so? I am running Fluent 14 on a 64-bit system and trying to compile a library in 2ddp mode.
|
Quote:
thank you verry much |
Quote:
thank you |
Problem in compiling
Hi
I have a same problem, I installed that programs but my UDF has not work properly yet,What should I do? Can any body help me? |
thanks a lot it helped me to solve the problem. one doubt do we always need to give name as working and do we need to always keep it in C folder thank you
|
hi
Quote:
|
Thanks a lot it worked for me :)
|
would you help me
Quote:
|
Quote:
|
Hi
I am new in UDF, I build my library when I trying to Compile My UDF to calculate the Kelvin Force on a DPM simulation, the following error appear: The UDF library you are trying to load (libudf) is not compiled for 2ddp on the current platform (win64). The system cannot find the file specified. D:\libudf\win64\2ddp\libudf.dll I try all of the recommendation but, the problem exist yet. in my opinion the problem may be from the UDF that I bring it here: #include "udf.h" #include "dpm.h" #define PI 3.141592654 #define Mu0 12.56637e-7 #define KB 1.38065e-23 #define alpha 0.04 #define I 25 DEFINE_DPM_BODY_FORCE(kelvin_force,p,i) { real bforce; real R; real U; real V; real mp; real z; real LL; real M; real HY; U=P_POS(p)[0]; V=P_POS(p)[1]+0.102 R=pow(U,2)+pow(V,2); mp=212767.59*P_DIAM(p)*P_DIAM(p)*P_DIAM(p); HY=(I/(2*(PI)))*(pow(R,-0.5)); z=(Mu0*mp*HY)/(KB*P_T(p)); LL=(1/tanh(z))-(1/z); M=mp*LL; if (i==0) { bforce = (Mu0*M)*(I/(2*PI))*(U)*(pow(R,-1.5)); return (bforce/P_MASS(p)); } else if (i==1) { bforce =(Mu0*M)*(I/(2*PI))*(V)*(pow(R,-1.5));; return (bforce/P_MASS (p)); } I'm thankful If one of you pay attention to my problem. |
Udf
Quote:
What is benefit of Microsoft visual studio for loading UDF IN fluent? |
Microsoft Visual Studio
Hi everyone
Please i finished to install Microsoft visual studio but please how can i use it to load UDF? just SDK is used to load UDF or what? |
All times are GMT -4. The time now is 16:27. |