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

Error Code 193

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

Like Tree3Likes
  • 1 Post By Schnauzer
  • 1 Post By Abhiroop
  • 1 Post By srsel6

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2016, 11:07
Default Error Code 193
  #1
New Member
 
LRubino
Join Date: Feb 2016
Location: Brazil
Posts: 6
Rep Power: 10
Schnauzer is on a distinguished road
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!
Schnauzer is offline   Reply With Quote

Old   February 29, 2016, 19:46
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
What is your UDF and complete error message?
`e` is offline   Reply With Quote

Old   March 23, 2016, 16:33
Default
  #3
New Member
 
LRubino
Join Date: Feb 2016
Location: Brazil
Posts: 6
Rep Power: 10
Schnauzer is on a distinguished road
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!
srsel6 likes this.
Schnauzer is offline   Reply With Quote

Old   August 24, 2016, 11:55
Default
  #4
New Member
 
Abhiroop Bhadra
Join Date: Jul 2016
Posts: 10
Rep Power: 9
Abhiroop is on a distinguished road
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.
Abhiroop is offline   Reply With Quote

Old   August 25, 2016, 11:59
Default
  #5
D.M
Member
 
Davoud Malekian
Join Date: Jan 2016
Posts: 53
Rep Power: 10
D.M is on a distinguished road
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;
}
D.M is offline   Reply With Quote

Old   August 25, 2016, 12:25
Default
  #6
New Member
 
Abhiroop Bhadra
Join Date: Jul 2016
Posts: 10
Rep Power: 9
Abhiroop is on a distinguished road
Hello,

Yeah I am geting the same error, even with this udf.
Abhiroop is offline   Reply With Quote

Old   August 31, 2016, 05:50
Default
  #7
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
I think it is a compiler error. More specifically: you don't have a compiler, at least Fluent can not find it.

Quote:
when I tried to compile the udf it got 'built'
Can you show what happened after you click "build"?
pakk is offline   Reply With Quote

Old   August 31, 2016, 06:22
Default
  #8
New Member
 
Abhiroop Bhadra
Join Date: Jul 2016
Posts: 10
Rep Power: 9
Abhiroop is on a distinguished road
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
D.M likes this.
Abhiroop is offline   Reply With Quote

Old   November 4, 2016, 08:00
Default
  #9
New Member
 
Join Date: Oct 2016
Posts: 2
Rep Power: 0
a_gh is on a distinguished road
?
Quote:
Originally Posted by Abhiroop View Post
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
Did you change any of your environmental variables?
a_gh is offline   Reply With Quote

Old   January 2, 2017, 18:18
Default
  #10
New Member
 
Alex Winbush
Join Date: Dec 2016
Location: UK
Posts: 1
Rep Power: 0
Olexi is on a distinguished road
Quote:
Originally Posted by Abhiroop View Post
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
Repeating the above comment but I can confirm that after a lot of messing around with Ansys 17.2 in Windows 10, I finally eliminated the error 193 message by uninstalling Microsoft Visual Studio Community Edition 2015 and installing Microsoft Visual Studio Express 2013. Abhiroop's solution works for me.

Should have installed 2015 come to think of it but 2013 was just the first one I clicked on and it does the job.
Olexi is offline   Reply With Quote

Old   August 30, 2017, 22:58
Thumbs up I follow your suggestion, and I succeed! Many thanks!
  #11
New Member
 
Charlie
Join Date: Aug 2017
Posts: 3
Rep Power: 8
fyf408 is on a distinguished road
Quote:
Originally Posted by Schnauzer View Post
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!
I follow your suggestion, and I succeed! Many thanks!
fyf408 is offline   Reply With Quote

Old   February 18, 2021, 10:19
Default
  #12
Member
 
Join Date: Jun 2017
Posts: 55
Rep Power: 10
srsel6 is on a distinguished road
Quote:
Originally Posted by Schnauzer View Post
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!
Yup, this works for me too. Just for everyone's knowledge:

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.
pakk likes this.
srsel6 is offline   Reply With Quote

Reply

Tags
error 193, udf error

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 04:14.