CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

The UDF library you are trying to load is not compiled for 2ddp on the current platfo

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2021, 01:22
Default 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: 2
umeralizuberi is on a distinguished road
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.
umeralizuberi is offline   Reply With Quote

Old   March 25, 2021, 01:45
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,947
Rep Power: 24
pakk will become famous soon enough
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".
pakk is offline   Reply With Quote

Old   March 25, 2021, 02:44
Default
  #3
New Member
 
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 2
umeralizuberi is on a distinguished road
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?
umeralizuberi is offline   Reply With Quote

Old   March 25, 2021, 02:59
Default
  #4
New Member
 
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 2
umeralizuberi is on a distinguished road
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
umeralizuberi is offline   Reply With Quote

Old   March 25, 2021, 04:12
Default
  #5
Senior Member
 
Join Date: Nov 2013
Posts: 1,947
Rep Power: 24
pakk will become famous soon enough
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".
pakk is offline   Reply With Quote

Old   March 25, 2021, 04:18
Default
  #6
New Member
 
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 2
umeralizuberi is on a distinguished road
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
umeralizuberi is offline   Reply With Quote

Old   March 25, 2021, 04:25
Default
  #7
New Member
 
umerali
Join Date: Mar 2021
Posts: 14
Rep Power: 2
umeralizuberi is on a distinguished road
ok thank you so much
umeralizuberi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Current density visualisation (PEM fuel cell add-on module) pchoopanya FLUENT 9 April 2, 2018 03:27
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


All times are GMT -4. The time now is 20:12.