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/)
-   -   UDF - Error loading libudf (https://www.cfd-online.com/Forums/fluent-udf/85610-udf-error-loading-libudf.html)

Atze March 2, 2011 09:56

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

Josyula August 29, 2011 02:53

Hi,

Were you able to sort out this problem?

If yes, kindly please let me know how you resolved this issue.

Thank you.

The_Architect August 29, 2011 09:50

Hi,

if you have not done it be sure to start Fluent from the VS command prompt.

sosososo1114 August 29, 2011 11:43

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

kiran_kumar January 12, 2012 04:22

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

laurentb January 13, 2012 09:50

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

kiran_kumar January 14, 2012 02:11

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

Cam February 2, 2012 05:35

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

kiran_kumar February 2, 2012 05:45

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

laurentb February 2, 2012 10:15

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)

Makafa April 1, 2012 15:13

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?

mila_oliv July 20, 2012 17:03

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.....

kerend September 20, 2012 14:54

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

kerend September 20, 2012 15:43

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

imanmirzaii September 21, 2012 21:46

Good Post
 
Niiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiice it worked for me
I looooooooooooooove CFD Online!
:)

QuocHung_Phan October 30, 2012 03:23

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.

Far December 5, 2012 10:54

still do we need to use the fluent from SDK platform?

bshahzamanian December 9, 2012 14:51

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.

natalie January 17, 2013 17:44

thanks a lot for this thread!
was very helpful to me!
:)

daandb January 21, 2013 08:00

Had the same problem, solution worked like a charm. Tnx!


All times are GMT -4. The time now is 04:19.