CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the (http://www.cfd-online.com/Forums/fluent-udf/98896-error-udf-library-you-trying-load-libudf-not-compiled-2d.html)

gxu2 March 21, 2012 12:30

Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the
 
Hi, all
When I compiling UDFs, I can build "libudf", but I can't load it. So could anyone can help me or to explain why?

Thank you very much!

Opening library "c:\users\gxu2\desktop\vof\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the curent platform (ntx86).

ReeKo March 22, 2012 09:31

Are you sure the UDF was compiled correctly? I suggest you to launch FLUENT from compiler's prompt window under the working directory folder (where the .cas & .dat & the udf are located) then retry with the compiling.
To me, that errors means UDF wasn't compiled correctly.

Regards

gxu2 March 22, 2012 11:02

1 Attachment(s)
Thank you, my friend!

I have tried lots of times but still can't get that through.

see the picture attachted.

ReeKo March 22, 2012 12:05

Are you sure to have tried launching FLUENT from the compiler's prompt window?

If you are, this could be a 32 bit vs 64 bit problem IF you're using FLUENT 64 bit version. For example (i'm working under windows OS) try installing Microsoft .NET Framework SDK. I use the ancient v2.0 version of them and they do the job. They're freeware, google them.
Once you installed them, again, launch FLUENT from SDK's prompt comand and retry.

In addition, check http://www.cfd-online.com/Wiki/Fluen...UDF.29_Related for more troubleshooting.

Regards

gxu2 March 26, 2012 17:32

Thank you Reeko

my computer is 32bit and I have installed the ANSYS FLUENT 32bit correctly, so it is not the OS related problem. I have installed .net framework 4.o and SDK 7.1 on my computer and there is also visual C++6.0 on my computer. But I can't get throught this problem.

I am sorry that I don't know how to input orders, like to run fluent in SDK promt command window. Could you tell me a little bit?


Thank you very much and May God bless you!

Best regards!

ReeKo March 27, 2012 07:51

Well, thank you for the blessing :)

Just tell me, what OS are you running on?

Regards

gxu2 March 27, 2012 09:27

win 7, 32 bit, I have installed ANSYS educational version.

It always said the libudf.dll is missing, actually it is not generated and well compiled.

Should I install VC 2008, or 2009, or 2010, I don't know which version I should install for well compiling.

Thank you very much for helping me.

ReeKo March 27, 2012 10:22

Install VC++ 2010 Express then ensure you have followed the steps described in "Set the correct environment variables" @ http://www.cfd-online.com/Wiki/Fluen...UDF.29_Related.
Run SDK's prompt window (you should find it under some folder in the Start->Programs mený). The shell will start from SDK's directory so you have to have to move on your working directory that contains both the case/dat and the UDF files (i.e: C:\my_fluent_case or whatever). Then type "fluent" and return; fluent will start and able to compile, so you can retry hopefully getting what you want.

Regards

mila_oliv July 20, 2012 16:31

I'm having a similar problem, but can't even build the library....this is what happens after i press build:

1 file(s) copied.
(system "copy "C:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "libudf\win64\2ddp\makefile" ")
1 file(s) copied.
(chdir "libudf")()
(chdir "win64\2ddp")()

Done.


I did a test with a code I found in this forum and it was compiled! So I think the problem is my udf.... can you take a look and maybe help me find my mistake??? I just started leraning udf by myself....it's not very easy! :D


Quote:

#include "udf.h"
#define n 0

DEFINE_SOURCE(funcaocorrente, c, t, ds, eqn)
{
real NV_VEC(psi);
real NV_VEC(vxdy);
real source;
int n,m,deltay;
cell_t c;
Thread *t;

/*number of nodes*/
n+=C_NNODES(c,t);
/*mesh size = mXm*/
m=(n^0.5)-1;
/*distance between nodes*/
deltay=1/m;
/*stream function definition: psi[i][j+1]=psi[i][j]+(Vx*deltay)*/
vxdy=NV_S(C_U(c,t),*=,deltay);
/*calculating stream function*/
C_UDMI(c,t,0)=NV_V(psi,+=,vxdy);
/*allocating stream function to postprocees*/
source=C_UDMI(c,t,0)
dS[eqn]=C_U(c,t);
return source;
}

mehdimoradi. November 21, 2013 05:41

Quote:

Originally Posted by gxu2 (Post 350712)
Hi, all
When I compiling UDFs, I can build "libudf", but I can't load it. So could anyone can help me or to explain why?

Thank you very much!

Opening library "c:\users\gxu2\desktop\vof\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the curent platform (ntx86).

Hi;
Could you solved your problem. I also encountered with the same problem.
My OS also is win7(32bit) and fluent 32 bit is installed on it.
if you could solve the problem let me know.
Thanks


All times are GMT -4. The time now is 05:14.