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

Error Code 193

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

Like Tree1Likes
  • 1 Post By Abhiroop

Reply
 
LinkBack Thread Tools 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: 2
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: 797
Rep Power: 9
`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: 2
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!
Schnauzer is offline   Reply With Quote

Old   August 24, 2016, 10:55
Default
  #4
New Member
 
Abhiroop Bhadra
Join Date: Jul 2016
Posts: 10
Rep Power: 2
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, 10:59
Default
  #5
D.M
Member
 
D.Malekian
Join Date: Jan 2016
Posts: 34
Rep Power: 2
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, 11:25
Default
  #6
New Member
 
Abhiroop Bhadra
Join Date: Jul 2016
Posts: 10
Rep Power: 2
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, 04:50
Default
  #7
Senior Member
 
Join Date: Nov 2013
Posts: 943
Rep Power: 13
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, 05:22
Default
  #8
New Member
 
Abhiroop Bhadra
Join Date: Jul 2016
Posts: 10
Rep Power: 2
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: 1
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

Reply

Tags
error 193, udf error

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FOAM FATAL ERROR: Inconsistent number of faces blockMesh::createMergeList() line 193 Hengel OpenFOAM Native Meshers: blockMesh 6 December 30, 2015 22:21
UDF Compiling : Error 193 Atze Fluent UDF and Scheme Programming 10 November 6, 2013 09:28
Error Code 193 when compiling syler3321 FLUENT 1 December 5, 2011 18:56
FOAM FATAL ERROR: Inconsistent number of faces blockMesh::createMergeList() line 193 Hengel OpenFOAM Native Meshers: blockMesh 0 September 15, 2010 08:34


All times are GMT -4. The time now is 00:10.