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

UDF Compiling : Error 193

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2011, 10:06
Default UDF Compiling : Error 193
  #1
Member
 
Join Date: Apr 2010
Location: Pisa / Italy
Posts: 62
Rep Power: 16
Atze is on a distinguished road
Hi,

First of all : I'm using Ansys Fluent 13 , Visual C++ 2008 Express , Win7 x64

Now... I've written a CG_motion UDF (i want to simulate a cilinder in 2D virtually constrained with a spring, in order to simulate vibrations due to pressure forces) but i can't compile it.

Searching around some solutions, I was able to BUILD it. Fluent says

Error Object: #f
1 file copiati.
(system "copy "c:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "libudf\win64\2d\makefile" ")
1 file copiati.
(chdir "libudf")()
(chdir "win64\2d")()
# Generating ud_io1.h
UDF_CG.c
# Generating udf_names.c because of makefile UDF_CG.obj
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj UDF_CG.obj
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

Creazione della libreria libudf.lib e dell'oggetto libudf.exp in corso...

Done.

When I click load in order to load the udf function and set the deforming mesh parameters fluent gives me ERROR 193

What can i do ?

Thank you (and sorry for my bad english)
Atze is offline   Reply With Quote

Old   April 27, 2011, 06:16
Default
  #2
New Member
 
ZenCef
Join Date: Feb 2010
Posts: 23
Rep Power: 16
ZenCef is on a distinguished road
I have a same problem with same software.

Ansys Fluent 13 , Visual C++ 2010 Express , Win7 x64

What's the meaning of error 193?
ZenCef is offline   Reply With Quote

Old   May 10, 2011, 11:28
Default
  #3
New Member
 
Anonymous
Join Date: May 2011
Posts: 3
Rep Power: 15
xorjack is on a distinguished road
Hello,

I had the same problem. Error 193. Object #
I have closed FLUENT, started the VC++ cmd and the FLUENT again, loaded the .msh, built the code.
The problem wanished.

Good luck
xorjack is offline   Reply With Quote

Old   December 5, 2011, 21:24
Default
  #4
Member
 
Nathan
Join Date: Aug 2010
Posts: 62
Rep Power: 16
natantyt is on a distinguished road
Hi There

Anybody found a solution to this Error 193?

Thanks
natantyt is offline   Reply With Quote

Old   December 5, 2011, 23:46
Default
  #5
Member
 
fox000002's Avatar
 
Join Date: Apr 2009
Posts: 46
Rep Power: 17
fox000002 is on a distinguished road
Check the compiler version.

Fluent x64 needs a x64 c++ compiler.
fox000002 is offline   Reply With Quote

Old   December 9, 2011, 17:52
Default
  #6
New Member
 
Anonymous
Join Date: May 2011
Posts: 3
Rep Power: 15
xorjack is on a distinguished road
Ok. Use Microsoft .NET Framework SDK v2.0 (64bit) instead of VC++ for Win 7 64 bit.
Start Fluent from SDK command prompt.
xorjack is offline   Reply With Quote

Old   September 30, 2013, 08:04
Default Still failed
  #7
Member
 
Jingchang.Shi
Join Date: Aug 2012
Location: Hang Zhou, China
Posts: 78
Rep Power: 14
aerosjc is on a distinguished road
Quote:
Originally Posted by xorjack View Post
Hello,

I had the same problem. Error 193. Object #
I have closed FLUENT, started the VC++ cmd and the FLUENT again, loaded the .msh, built the code.
The problem wanished.

Good luck
I tried your way, but still failed.
aerosjc is offline   Reply With Quote

Old   October 1, 2013, 06:07
Default
  #8
New Member
 
Anonymous
Join Date: May 2011
Posts: 3
Rep Power: 15
xorjack is on a distinguished road
Quote:
Originally Posted by aerosjc View Post
I tried your way, but still failed.
Please see the post from Dec. 9 2011. It is most essential.
Lets stress it again:

If u have Win7 64x, it is REALLY VITAL:

1. To have Microsoft .NET Framework SDK v2.0 (64bit) set as a compilation environment.
2. To start FLUENT from the SDK command prompt and not from Windows command prompt.

If one of mentioned requirements is not fulfilled you will fail. If these req are fulfilled, the compilation should work.

Good luck
xorjack is offline   Reply With Quote

Old   October 9, 2013, 02:54
Default Win XP
  #9
New Member
 
Join Date: Oct 2013
Posts: 1
Rep Power: 0
ezeevictory is on a distinguished road
Hi guys,

am also getting the same error... 193

i use win xp 64 bit... microsoft visual studio 2008 and fluent 14.5..

couldnt figure out...

can someone help?
ezeevictory is offline   Reply With Quote

Old   October 16, 2013, 01:01
Default
  #10
Member
 
Jingchang.Shi
Join Date: Aug 2012
Location: Hang Zhou, China
Posts: 78
Rep Power: 14
aerosjc is on a distinguished road
I just used the complete installation files of VS2010 ultimate, instead of the express edition, to resolve this problem.
And, maybe VS 2008 is not compatible with Fluent 14.5. But, actually I never use the version 14.5 of Fluent. Hope to help.
aerosjc is offline   Reply With Quote

Old   November 6, 2013, 09:28
Default
  #11
New Member
 
Pengianlei
Join Date: Aug 2013
Posts: 5
Rep Power: 13
LemonPeng is on a distinguished road
I met the same problem. But successfully overcome it by uninstalling some old Visual Studio.
In my computer, both Visual Studio2003 and Visual Studio 2010 are installed, so that I load the UDF with error code 193. Then I uninstall the Visual Studio 2003, the problem disappear.
Hope this message could help you.
Quote:
Originally Posted by Atze View Post
Hi,

First of all : I'm using Ansys Fluent 13 , Visual C++ 2008 Express , Win7 x64

Now... I've written a CG_motion UDF (i want to simulate a cilinder in 2D virtually constrained with a spring, in order to simulate vibrations due to pressure forces) but i can't compile it.

Searching around some solutions, I was able to BUILD it. Fluent says

Error Object: #f
1 file copiati.
(system "copy "c:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "libudf\win64\2d\makefile" ")
1 file copiati.
(chdir "libudf")()
(chdir "win64\2d")()
# Generating ud_io1.h
UDF_CG.c
# Generating udf_names.c because of makefile UDF_CG.obj
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj UDF_CG.obj
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

Creazione della libreria libudf.lib e dell'oggetto libudf.exp in corso...

Done.

When I click load in order to load the udf function and set the deforming mesh parameters fluent gives me ERROR 193

What can i do ?

Thank you (and sorry for my bad english)
LemonPeng is offline   Reply With Quote

Old   March 8, 2018, 05:52
Default error code 193\n
  #12
New Member
 
nima seyfi
Join Date: Feb 2017
Posts: 3
Rep Power: 9
nima2472 is on a distinguished road
hi there
i load fluent with visual 2010
my fluent is 18.2
and my windows is 10
but in loading process fluent give me error 193
how can i solve this problem?!?!
can anybody help??
thnx
nima2472 is offline   Reply With Quote

Old   September 3, 2019, 02:50
Default
  #13
New Member
 
N/A
Join Date: Sep 2019
Posts: 2
Rep Power: 0
Jjoyk is on a distinguished road
Quote:
Originally Posted by nima2472 View Post
hi there
i load fluent with visual 2010
my fluent is 18.2
and my windows is 10
but in loading process fluent give me error 193
how can i solve this problem?!?!
can anybody help??
thnx
I also faced a similar issue. For me, the problem was that I loaded fluent from 32 bit VS compiler instead of 64. The resulting libudf.dll file in the libudf folder was compiled as 32 bit which created this problem when loading udf. You have to use 64bit compiler of Visual Studio to open fluent. I used cross x86_x64 cross tool command prompt
you can also check the compiled platform of dll file using the command dumpbin /headers libudf.dll |find "machine" in the corresponding folder through developer Command Prompt for VS 2019.

https://stackoverflow.com/questions/...-as-x64-or-x86
Jjoyk is offline   Reply With Quote

Reply


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
About UDF compiling issues: 'nmake' Haoyin Shan Fluent UDF and Scheme Programming 15 November 4, 2019 19:05
compiling udf at window Nt(64BIT) noa FLUENT 3 July 30, 2014 00:01
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 01:43
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
On Compiling a UDF David Chabot FLUENT 5 May 20, 2005 10:13


All times are GMT -4. The time now is 15:45.