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!

yorelchr January 21, 2013 18:01

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:

Creating library libudf.lib and object libudf.exp
rate_driver.obj : error LNK2019: unresolved external symbol _chemrate_ referenced in function _arm9_rate
libudf.dll : fatal error LNK1120: 1 unresolved externals
chemrate is in the fortran file. How can I help FLUENT find this file?

I have tried this method for compiling (http://www.cfd-online.com/Forums/flu...ndows2000.html)

Quote:

You need visual studio 6 and in order to compile you need to set your environment variables selecting the item from the start menu, ie start -> programs -> Fluent.Inc -> Environment Variables. (or whatever it is)

Then run the vcvars32.bat batch file from the cmd prompt located in the bin folder of c++. Then you can run nmake to compile.

Look at the documentation Fluent have provided! There is a .pdf file which explains this!

Greg
but it does not work.
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:

Setting environment for using Microsoft Visual 2010 x86 tools
" .
Then I went to my directory, where I have the .cas, .c and .f and typed nmake, but I obtained:
Quote:

NMAKE : fatal error U1064 : Makefile not found and no taret specified.
Do I have to set environment for the Visual Fortran? I have Compaq Visual Fortran 6.

Thank you for your help.

yorelchr

nasser April 11, 2013 18:21

Hi friends
my OS is win7 32bit , I need the same tutorall for win7 32 , can anybody help me ?
tnx

rou May 21, 2013 08:15

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?

laurentb May 21, 2013 08:38

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)

rou May 21, 2013 11:46

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"

rohit.jain092 July 6, 2013 08:03

This works. Thank you so so much CFD Online and everyone. :))))))))

shashank312 August 6, 2013 13:07

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:

Originally Posted by laurentb (Post 428887)
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)


laurentb August 7, 2013 03:23

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.

shashank312 August 7, 2013 14:30

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.

tranvantrung551987 August 20, 2013 10:47

Quote:

Originally Posted by bshahzamanian (Post 396540)
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.

i get the same error, did you resolve proplem?. Can you help me ?
thank you verry much

tranvantrung551987 August 22, 2013 03:50

Quote:

Originally Posted by Atze (Post 297661)
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

i get the same error, do you compiled succesfully ?. can you help me.
thank you

amirebidarabi September 18, 2013 13:05

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?

shahid nadeem February 28, 2014 04:44

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

liuhehezaizai March 14, 2014 02:54

hi
 
Quote:

Originally Posted by The_Architect (Post 322097)
Hi,

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

:Dcan you tell me how to start Fluent from the VS command prompt?thank you very much .

Subodh21 March 19, 2014 11:08

Thanks a lot it worked for me :)

liuhehezaizai May 4, 2014 23:17

would you help me
 
Quote:

Originally Posted by laurentb (Post 339192)
This ANSYS support note provides all informations necessary to compile UDF for FLUENT 64-bit

hello,would you please tell me how to settle the problem i conquered ?thank you very much.

liuhehezaizai May 4, 2014 23:34

Quote:

Originally Posted by laurentb (Post 339192)
This ANSYS support note provides all informations necessary to compile UDF for FLUENT 64-bit

hello ,i have read the .pdf but still have a problem,when i "Starting FLUENT using the SDK 7.0 Command Prompt Window",i can not write the right Working directory(c. Change to your Working directory (directory where your .cas, dat and .c file reside)),coule you tell me how to write it correctly? thank you very much .

ramin66m August 19, 2014 11:08

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.

Muhammed_iraq October 23, 2014 11:56

Udf
 
Quote:

Originally Posted by laurentb (Post 342472)
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)

Dear laurentb
What is benefit of Microsoft visual studio for loading UDF IN fluent?

Muhammed_iraq October 23, 2014 15:39

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.