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

Helping to compile the UDF file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2017, 05: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   July 1, 2017, 07:58
Default
  #2
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, 06:53
Default
  #3
Member
 
MayTheFlowBeWithYou's Avatar
 
I have to remain anonymous, I'm sorry.
Join Date: Jun 2017
Location: The Netherlands, Delft University of Technology
Posts: 48
Rep Power: 9
MayTheFlowBeWithYou is on a distinguished road
What version of VS2013 did you use?
MayTheFlowBeWithYou is offline   Reply With Quote

Old   August 27, 2017, 18:53
Default
  #4
New Member
 
Ivanrips's Avatar
 
Roger Iván
Join Date: Jun 2009
Location: Perú
Posts: 22
Rep Power: 17
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, 22:40
Default
  #5
Super Moderator
 
diamondx's Avatar
 
Ghazlani M. Ali
Join Date: May 2011
Location: Tokyo, Japan
Posts: 1,385
Blog Entries: 23
Rep Power: 29
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, 06:15
Default
  #6
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
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


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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17: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 18:51


All times are GMT -4. The time now is 16:08.