|
[Sponsors] |
June 29, 2017, 05:28 |
Helping to compile the UDF file
|
#1 |
New Member
maslan
Join Date: Jun 2017
Posts: 2
Rep Power: 0 |
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; } |
|
July 1, 2017, 07:58 |
|
#2 |
New Member
maslan
Join Date: Jun 2017
Posts: 2
Rep Power: 0 |
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 |
|
July 4, 2017, 06:53 |
|
#3 |
Member
I have to remain anonymous, I'm sorry.
Join Date: Jun 2017
Location: The Netherlands, Delft University of Technology
Posts: 48
Rep Power: 9 |
What version of VS2013 did you use?
|
|
August 27, 2017, 18:53 |
|
#4 |
New Member
Roger Iván
Join Date: Jun 2009
Location: Perú
Posts: 22
Rep Power: 17 |
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 |
|
August 28, 2017, 22:40 |
|
#5 |
Super Moderator
Ghazlani M. Ali
Join Date: May 2011
Location: Tokyo, Japan
Posts: 1,385
Blog Entries: 23
Rep Power: 29 |
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 |
|
August 30, 2017, 06:15 |
|
#6 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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".
|
|
|
|
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 |