|
[Sponsors] |
February 28, 2016, 11:07 |
Error Code 193
|
#1 |
New Member
LRubino
Join Date: Feb 2016
Location: Brazil
Posts: 6
Rep Power: 10 |
Hi,
I'm simulating a VIV problem and I am using UDF to prescribe the cylinder movement. I'm having trouble compiling the UDF. The message ERROR 193 appears. I've done some research here in the forum but still can not solve this problem. Error: Error code: 193 Error Object: #f I'm using : Fluent 16 Win 7 64 Virtual Studio 2015 Express What can I do? Thank you very much! |
|
February 29, 2016, 19:46 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
What is your UDF and complete error message?
|
|
March 23, 2016, 16:33 |
|
#3 |
New Member
LRubino
Join Date: Feb 2016
Location: Brazil
Posts: 6
Rep Power: 10 |
HI,
My UDF solves the 2D oscillating cylinder. I resolved my problem, I list below what I did: First I'm running: Fluent 16, W7 x64. 1) Unistalled some old C++ versions (They appeared in Windows Control Panel); 2) Installed Microsoft Windows SDK v7.0 (available in Microsoft website) 3) Installed Microsoft Visual Studio 2013 (available in Microsoft website) 4) Start Fluent from CMD Shell Works fine! |
|
August 24, 2016, 11:55 |
|
#4 |
New Member
Abhiroop Bhadra
Join Date: Jul 2016
Posts: 10
Rep Power: 10 |
As I initially tried to compile my UDF, I got the following error message
"'nmake' is not recognized as an internal or external command, operable program or batch file". I then installed Microsoft Visual Studio 10. I also followed the remedies given in the 'wiki' page. I opened fluent from the VS Command Prompt and when I tried to compile the udf it got 'built', however when I tried to 'load' the function I got 'Error:193'. In the wiki page it was written to get 'SDK' for a 64 bit system, however when I open fluent from the SDK 7.1 Command Prompt. I get the initial error "'nmake' is not recognized as an internal or external command, operable program or batch file" once again. Has someone else faced this problem? ( I am using Ansys 16.1 in Win10 (64 bit)) Please help, its urgent. |
|
August 25, 2016, 11:59 |
|
#5 |
Member
Davoud Malekian
Join Date: Jan 2016
Posts: 53
Rep Power: 10 |
Hello
i don't think it is a compiler kind of error (i mean this error is not because of visual studio or ...), so post your udf here maybe we can help you. i post a udf here try to compile it , if no error happens then your udf is your problem not visual studio. here is the udf: #include "udf.h" DEFINE_PROPERTY(density,c,t) { real rho; real temp; real temp_ref = 303; temp = C_T(c,t); rho = 1.225 * (1 - (1./temp_ref) * (temp - temp_ref)); return rho; } |
|
August 25, 2016, 12:25 |
|
#6 |
New Member
Abhiroop Bhadra
Join Date: Jul 2016
Posts: 10
Rep Power: 10 |
Hello,
Yeah I am geting the same error, even with this udf. |
|
August 31, 2016, 05:50 |
|
#7 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
I think it is a compiler error. More specifically: you don't have a compiler, at least Fluent can not find it.
Quote:
|
||
August 31, 2016, 06:22 |
|
#8 |
New Member
Abhiroop Bhadra
Join Date: Jul 2016
Posts: 10
Rep Power: 10 |
I used ANSYS 17 on windows 10, with Microsoft Visual Studio 2015 Express Edition (the Community Edition does NOT work) and it worked for me.
Best of Luck |
|
November 4, 2016, 08:00 |
|
#9 |
New Member
Join Date: Oct 2016
Posts: 2
Rep Power: 0 |
||
January 2, 2017, 18:18 |
|
#10 | |
New Member
Alex Winbush
Join Date: Dec 2016
Location: UK
Posts: 1
Rep Power: 0 |
Quote:
Should have installed 2015 come to think of it but 2013 was just the first one I clicked on and it does the job. |
||
August 30, 2017, 22:58 |
I follow your suggestion, and I succeed! Many thanks!
|
#11 | |
New Member
Charlie
Join Date: Aug 2017
Posts: 3
Rep Power: 9 |
Quote:
|
||
February 18, 2021, 10:19 |
|
#12 | |
Member
Join Date: Jun 2017
Posts: 55
Rep Power: 11 |
Quote:
When I installed VS 2013 (since it's compatible with Ansys 19.2), this issue still persisted. So I had to set my environment variables to reference VS2013, uninstalled VS2012 and deleted all the remaining files that aren't automatically deleted in your C:\ drive when uninstalling. I then restarted my computer. However I then ran into this problem when I tried to load the udf library: LINK : fatal error LNK1104: cannot open file 'libudf.dll' All I had to do was close Fluent, delete the udf folder that Fluent creates when it compiles your .c files. Then I reran Fluent. I did all this in batch mode by the way. |
||
Tags |
error 193, udf error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] FOAM FATAL ERROR: Inconsistent number of faces blockMesh::createMergeList() line 193 | Hengel | OpenFOAM Meshing & Mesh Conversion | 7 | November 15, 2021 23:56 |
UDF Compiling : Error 193 | Atze | Fluent UDF and Scheme Programming | 12 | September 3, 2019 02:50 |
Error Code 193 when compiling | syler3321 | FLUENT | 1 | December 5, 2011 18:56 |
[blockMesh] FOAM FATAL ERROR: Inconsistent number of faces blockMesh::createMergeList() line 193 | Hengel | OpenFOAM Meshing & Mesh Conversion | 0 | September 15, 2010 09:34 |