|
[Sponsors] |
The UDF library you are trying to load is not compiled for 2ddp on the current platfo |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 25, 2021, 01:22 |
The UDF library you are trying to load is not compiled for 2ddp on the current platfo
|
#1 |
New Member
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 5 |
i have to simulate a flapping motion in ansys but the udf is not loading
i have a code for flapping motion in 2D can you check it, i can not find any error in it. /* the code is written for 2D flapping chord length of 0.01 m and Reynolds number of 157 i.e velocity = 0.229 m/s */ #include "udf.h" static real alpha_dot = 0.0; /* rotational velocity */ static real x_velocity = 0.0; /* velocity in X direction */ static real y_velocity = 0.0; /* velocity in Y direction*/ DEFINE_CG_MOTION(flapping, dt, vel, omega, time, dtime) { Thread *t; face_t f; real pi = 3.14159; real c = 0.01; /* wing chord in meters */ real amp = 0.025; /* Amplitude in meters */ real period= 0.025; /* time period in second */ real alpha; /* angle of attack */ real beta = (pi/3); /* inclination angle of stroke plane */ /*reset velocities*/ NV_S(vel, =, 0.0); NV_S(omega, =, 0.0); if (!Data_Valid_P ()) return; x_velocity= -(amp*pi/(period))*cos(beta)*sin(2*pi*time/period); y_velocity= -(amp*pi/(period))*sin(beta)*sin(2*pi*time/period); alpha = (pi/4)-((pi/4)*sin(2*pi*time/period)); alpha_dot = -((pi/4)*2*pi/(period))*cos(2*pi*time/period); Message("time:%f alpha:%f alpha_dot:%f x_velocity:%f y_velocity:%f\n",time,alpha,alpha_dot,x_velocity, y_velocity); vel[0] = (x_velocity); vel[1] = (y_velocity); omega[2]= -(alpha_dot); } (whenever i click on build there is a msg i.e. (chdir "libudf")(chdir "win64\2ddp") 'nmake' is not recognized as an internal or external command, operable program or batch file.) after this if i load it gives the error i.e. The UDF library you are trying to load is not compiled for 2ddp on the current platform (win64) kindly help me. |
|
March 25, 2021, 01:45 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
The nmake error is the crucial part: your Fluent is not properly installed/configured, and now Fluent can not find a compiler. It has nothing to do with your code.
Search for the nmake error on this forum, there are explanations on how to install the compiler for fluent.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build". |
|
March 25, 2021, 02:44 |
|
#3 |
New Member
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 5 |
i have opened the fluent from command prompt (not directly ) but still it is same, i am using ansys 16 and VS 17 should i reinstall ansys/fluent?
|
|
March 25, 2021, 02:59 |
|
#4 |
New Member
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 5 |
there is a method written there which say that i have to set the PATH by writing the location of nmake from the directory but i can not find the nmake location, it doesnt exist
|
|
March 25, 2021, 04:12 |
|
#5 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
As I said, look for that error on this forum. You need a compiler. There are good explanations, all there for details. I never installed it, so I can't help much.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build". |
|
March 25, 2021, 04:18 |
|
#6 |
New Member
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 5 |
followed all the steps for changing of udf.bat file also i have placed the nmake PATH
but now i am getting error i.e. fatal error C1083 |
|
March 25, 2021, 04:25 |
|
#7 |
New Member
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 5 |
ok thank you so much
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Current density visualisation (PEM fuel cell add-on module) | pchoopanya | FLUENT | 10 | August 21, 2023 15:33 |
problem loading UDF library in parallel cluster | Veera Gutti | FLUENT | 8 | July 26, 2016 08:24 |
UDF library load error | smgeorge531 | Fluent UDF and Scheme Programming | 6 | August 26, 2013 05:06 |
cannot load UDF library | jayilosa | Fluent UDF and Scheme Programming | 3 | November 16, 2011 13:44 |
Why udf can not be compiled in my pc? | Xinqiang | FLUENT | 0 | June 10, 2009 15:32 |