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

Helping to compile the UDF file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 29, 2017, 04:28
Default Helping to compile the UDF file
  #1
New Member
 
maslan
Join Date: Jun 2017
Posts: 2
Rep Power: 0
bulu789 is on a distinguished road
Hello,

Can someone compile the UDF file into ANSYS fluent v17.2 or v18.0. I cannot compile and load the UDF file. I've tried all the solution such as using VS2013 command prompt and I still get the error:-

"the udf library you are trying to load is not compiled for 2d on the current platform"

#include "udf.h"

DEFINE_SDOF_PROPERTIES(sdof_props, prop, dt, time, dtime)
{
real cg;
real k = 1 * 1.26*1.26;
cg = DT_CG(dt)[1];
prop[SDOF_MASS] = 1;
prop[SDOF_LOAD_F_Y] = -k*cg;
prop[SDOF_ZERO_TRANS_X] = TRUE;
prop[SDOF_ZERO_ROT_X] = TRUE;
prop[SDOF_ZERO_ROT_Y] = TRUE;
}
bulu789 is offline   Reply With Quote

Old   June 29, 2017, 19:03
Default
  #2
New Member
 
Roger Iván
Join Date: Jun 2009
Posts: 21
Rep Power: 10
Ivanrips is on a distinguished road
Hi my friend;
Here a video with a solution to 'nmake' error
https://www.youtube.com/watch?v=xt2hnE9_LdM
Regards
http://cfd.ninja/
Ivanrips is offline   Reply With Quote

Old   July 1, 2017, 06:58
Default
  #3
New Member
 
maslan
Join Date: Jun 2017
Posts: 2
Rep Power: 0
bulu789 is on a distinguished road
I still get the error. I followed all your steps in the video but I still get the error.

Opening library "D:\AAPROJECT\PROJECT_files\dp0\FFF\MECH\libudf".. .
Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the current platform (win64).

The system cannot find the file specified.

D:\AAPROJECT\PROJECT_files\dp0\FFF\MECH\libudf\win 64\2d\libudf.dll

Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the current platform (win64).\n\nThe system cannot find the file specified.
\n\nD:\AAPROJECT\PROJECT_files\dp0\FFF\MECH\libudf \win64\2d\libudf.dll
Error Object: #f
bulu789 is offline   Reply With Quote

Old   July 4, 2017, 05:53
Default
  #4
Member
 
MayTheFlowBeWithYou's Avatar
 
I have to remain anonymous, I'm sorry.
Join Date: Jun 2017
Location: The Netherlands, Delft University of Technology
Posts: 46
Rep Power: 2
MayTheFlowBeWithYou is on a distinguished road
What version of VS2013 did you use?
MayTheFlowBeWithYou is offline   Reply With Quote

Old   August 27, 2017, 17:53
Default
  #5
New Member
 
Roger Iván
Join Date: Jun 2009
Posts: 21
Rep Power: 10
Ivanrips is on a distinguished road
Hi I have 2017 version, but with 2013 should works, you try open prompt win 64 maybe for this reason doesnt Works. Regards

Sent from my HUAWEI VNS-L21 using CFD Online Forum mobile app
Ivanrips is offline   Reply With Quote

Old   August 28, 2017, 21:40
Default
  #6
Super Moderator
 
diamondx's Avatar
 
Ghazlani M. Ali
Join Date: May 2011
Location: Tokyo, Japan
Posts: 1,384
Blog Entries: 23
Rep Power: 22
diamondx will become famous soon enough
In th libudf folder there is usually a log file. the error must be there.
Please, uninstall all the visual studio you have. don't leave anything. and install visual studio express 2012 for windows. that should work. you don't even have to run fluent from the command line
__________________
Regards,
New to ICEM CFD, try this document --> https://goo.gl/KAOIwm
Ali
diamondx is offline   Reply With Quote

Old   August 30, 2017, 05:15
Default
  #7
Senior Member
 
Join Date: Nov 2013
Posts: 1,135
Rep Power: 15
pakk will become famous soon enough
You are now showing the errors that you see when you click "load". To get help, show the errors that you see when you click "build".
pakk is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Swak4Foam funkyDoCalc with OF2.3 massflow NiFl OpenFOAM 11 November 1, 2016 07:43
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 11:24.