-
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
I am very disturbed due to this error. I want to simulate the Pure Yaw Motion using following UDF but i ge this error
(Error: The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).\n\nThe system cannot find the file specified.
\n\nC:\Users\enaz8\Desktop\Try1\libudf\win64\3d\li budf.dll
Error Object: #f)
anybody please tell me.
My udf
#include "udf.h"
#include "dynamesh_tools.h"
real a0, w, u0;
DEFINE_CG_MOTION(motion, dt, vel, omega, time, dtime)
{
Thread *t;
NV_S(vel, = 0.0);
NV_S(omega, = 0.0);
if (!Data_Valid_P())
{
Message("Wrong\n");
return;
}
t = DT_THREAD((Dynamic_Thread *)dt);
a0 = 0.1;
w = 2.513; // frequency
vel[0] = 0.0; // x-component of velocity
vel[1] = -a0 * w * cos(w * time); // y-component of velocity
vel[2] = 0.0; // z-component of velocity
omega[0] = 0.0;
omega[1] = 0.0;
omega[2] = 0.0;
Message("time:%f vely:%f\n", time, vel[1]);
}Posted February 14, 2024 at 13:46 by Nazir Ahmed -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
it worked! thank you so much!Posted July 10, 2019 at 11:09 by prayash -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
Thank you trollreign. It was very useful. you have saved a lot of times of people. Just wanted to update and share my experience and help others who feel like a beginner like myself . I am using Workbench v18.1. I was trying to model 3ddp parallel a 2 stroke scavenging which ansys has a tutorial for. To make the story short the udf file which was created in 2006 didn't work with 64bit error and as it was recommended, I installed free version of visual studio community 17 from Microsoft (before starting installation I checked all the boxes which were relevant, and installing space was about 30 GB). I didn't change any environmental variable. In my start menu I followed "Visual Studio 17 > Visual Studio Tools > VC > x86_x64 cross tool Command Prompt". In the VC folder, there were 3 other cmd options which didn't work. make sure you select x86_x64. then in the cmd window I navigated to my working folder and copied the fluent luncher address after it. the command line looked like this which the "new run with sdk" is my working folder: E:\Ansys files\2 stroke\Fluent\new run with sdk>"C:\Program Files\ANSYS Inc\v181
\fluent\fluent18.1.0\launcher\win64\launcher1.exe" . In the launcher, I selected 3d, double precision, and 10 cores, started fluent, compiled the default .c udf file (which was in the same working folder), built the library and finally it was loaded successfully. Even better, in cmd window I started my workbench project file (which contain my fluent component). The workbench opened and started the fluent from there like always and I could successfully load the library. I hope it works for you too.Posted February 14, 2018 at 17:56 by nima_nzm -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
s there anyone who can help me to solve this problem?
https://www.cfd-online.com/Forums/fl...tml#post653912
Please please please ...Posted June 19, 2017 at 07:01 by MEKSEM -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
HI I have ansys 14.0 installed in my system and I removed microsoft visual studio 2015. then I have installed visual studio 2013. But I am getting the error of 'nmake'.
when I search in windows tab ' visual studio tools' folder then i found no folder of that name in my system. And when I open command prompt then it is not of visual studio 2013 but it opens as 2015
I request your help.Posted October 24, 2016 at 04:11 by classified -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
Hi to every one,
This post is really good to compile UDF. By following similar pattern I compiled UDF successfully on Fluent14(with VS2010). Now I am following same procedure to compile UDF on Fluent16... I am Not successful. Is there any one who is using FLUENT16 , Please share experience to compile UDF successfully.. RegardsPosted July 28, 2016 at 01:13 by furqanrk -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
Thank you Trollreign for this awesome postPosted March 16, 2016 at 04:25 by Indu Sharma -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
I am experiencing the error LINK : fatal error LNK1104: cannot open file 'LIBCMT.LIB. I have tried Michael's method but i failed to make it work.
Anyone has any other solutions to this?Posted August 23, 2015 at 03:38 by tsaget -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
Hi all,
thanks dear Trollreign for your detailed explanation.
unfortunately I have done all he same procedure mentioned but I couldn't compile the UDF.
The system I am using:
windows 8.1 x64
visual studio 2013 ultimate
visual studio 2010 ultimate
Ansys fluent version 2015
problem of "nmake" solved by installing both fluent and visual studios in the C:\ root. before installing in the same root I got that error.
I still get the error
The UDF library you are trying to load (libudf) is not compiled for 2d on the curent platform (win64).
I am not an expert fluent user and the purpose of posting was only to share my experience. (failure experience )
any comments would be appreciated.
Best regards,
ParhamPosted July 17, 2015 at 04:38 by Parham Vatankhah -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
hi trollreign,
this was a fantastic post. you saved me a lot of time!
thanks
akPosted July 10, 2015 at 03:43 by ak6g08 -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
Hi all,
I encountered the same problem:
LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib2
The solution came when I added the following line in the path variable (see p.7 of the present post):
;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Program Files\ANSYS Inc\v120\fluent\ntbin\win64Posted January 14, 2015 at 09:59 by MichaelVS -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
Quote:
"C:\Program Files\ANSYS Inc\v140\fluent\ fluent14.0.0\launcher\win64\launcher1.exe"
or
"C:\Program Files\ANSYS Inc\v140\fluent\ntbin\win64\fluent.exe" -r14.0.0 -shortcut
that starts the Fluent Launcher panel, click OK you will enter Fluent, then load your case.Posted July 29, 2014 at 23:07 by p36288
Updated July 30, 2014 at 03:27 by p36288 -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
For anyone who don't have VS2010, there is a simple way solve the math.h problem:
find the line as:
_CRTIMP double __cdecl cbrt(_In_ double _X);
delete or comment it.
In VS 2013, it is located at Line 482.Posted July 29, 2014 at 12:38 by p36288 -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
I encountered the below error, followed the step 1-5 and resolved it
The UDF library you are trying to load (libudf) is not compiled for 2d on the curent platform (win64).
The system cannot find the file specified.
X:\<your working folder>libudf\win64\2d\libudf.dll
#----------------------------------------------------------
Step-1 : Enable visualization technology in the BIOS setting in Windows 8 or 7
Step-2 : install Microsoft visual studio 2012 express
Step-3 : open VS2012 X64 Cross tools Command Prompt, change directory to working folder , where you have the *.c file
Step-4 : open Fluent V14.5 through step-3 command prompt window, make sure you open with appropriate 2D or 3D double precision options
Step-5 : compile the UDFPosted June 4, 2014 at 22:53 by jthiakz -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
In the end, I uninstalled Microsoft Visual Studio Express 2010 and 2013. I installed Microsoft Visual Studio 2010 Ultimate and everything works!Posted April 29, 2014 at 07:40 by macfly -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
Quote:Me too, at some point, I got the error "fatal error LNK1104: cannot open file 'libcmt.lib'."
Then I found out that libcmt.lib is only present in the Microsoft Visual C++ 2010 Express (C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib).
So I started to just use Microsoft Visual C++ 2010 Express, i.e. start Fluent from the Visual Studio Command Prompt (2010).
My udf compiled flawlessly! I'm halfway there...
But then when I try to load it, I got the following error:
Opening library "my working directory\libudf"...
Error: Error code: 193
And I'm stuck... Anybody knows what to do with this error?
Thanks.Posted April 29, 2014 at 05:49 by warrior -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
Me too, at some point, I got the error "fatal error LNK1104: cannot open file 'libcmt.lib'."
Then I found out that libcmt.lib is only present in the Microsoft Visual C++ 2010 Express (C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib).
So I started to just use Microsoft Visual C++ 2010 Express, i.e. start Fluent from the Visual Studio Command Prompt (2010).
My udf compiled flawlessly! I'm halfway there...
But then when I try to load it, I got the following error:
Opening library "my working directory\libudf"...
Error: Error code: 193
And I'm stuck... Anybody knows what to do with this error?
Thanks.Posted April 23, 2014 at 19:06 by macfly -
Posted February 18, 2014 at 06:40 by hrvig -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
Hi,
Thanks a lot for your guide. I've been trying to get UDFs til work for some time now.
I am getting an error:
LINK : fatal error LNK1104: cannot open file 'LIBCMT.lib2
Does anyone have any suggestions on how to fix it?
(windows 8.1, installed visual studio express 2013, visual studio 2010 (to get the old math.h), Microsoft .NET Framework 4.5.1, Windows Software Development Kit 8, and ANSYS Fluent v15 x64)
Best regards,
JakobPosted February 18, 2014 at 06:35 by hrvig -
Getting ANSYS 14 Fluent, Windows 8.1 and VS2013 to compile UDFs
Hi Trollreign,
I am facing the x64 system problem. I have Fluent 14, win 7 and Visual Studio from 2008 to 2012.
I have tried to start Fluent from the VS2012 Cross Tools command prompt and it didn't work. Then I decided to update the environment variables as Messi indicated in the post http://www.cfd-online.com/Forums/flu...tml#post471365
I've used SDK v7.1A and visual studio 11 (I don't know why I haven't got a Visual Studio 2012 folder) instead of v6.0A and 9.
This hasn't solved my problem either.
Now I'm having this message:
Code:c:\program files\ansys inc\v140\fluent\fluent14.0.0\src\global.h(10) : fatal error C1083: Cannot open the include archive: 'stdio.h': Invalid argument
Code:Opening library "c:\users\<working directory>libudf"... Error: The UDF library you are trying to load (C:\Users\<working directory>\libudf) is not compiled for 3d on the curent platform (win64).
Any comment would be highly appreciated.
Thanks a lot!Posted January 28, 2014 at 04:58 by Bollonga