|
[Sponsors] |
![]() |
![]() |
#21 | |
Member
Peter Aestas
Join Date: Dec 2013
Posts: 64
Rep Power: 12 ![]() |
Quote:
1111.jpg |
||
![]() |
![]() |
![]() |
![]() |
#22 |
New Member
Tanuja
Join Date: Aug 2014
Posts: 7
Rep Power: 12 ![]() |
Dear all;
I have set the environment variables as suggested by messi. my udf library gets built with absolutely no problem but when i try to load it, i get the following error ERROR 193 Please help me. |
|
![]() |
![]() |
![]() |
![]() |
#23 |
New Member
Tanuja
Join Date: Aug 2014
Posts: 7
Rep Power: 12 ![]() |
Dear all,
I have set the environment variables as suggested by messi. I have no problem building the udf library but when I click the "load" button, i get the following error ERROR 193. Please help me. |
|
![]() |
![]() |
![]() |
![]() |
#24 |
Member
ad
Join Date: Apr 2014
Posts: 75
Rep Power: 12 ![]() |
add "C:\Windows\System32" to your path variables
|
|
![]() |
![]() |
![]() |
![]() |
#25 |
New Member
Green
Join Date: Apr 2016
Posts: 27
Rep Power: 10 ![]() |
I had the same question with you. And after I set all these environment variables and restart my system it worked well. Thank you.
|
|
![]() |
![]() |
![]() |
![]() |
#26 |
New Member
zhang bing
Join Date: Feb 2012
Posts: 4
Rep Power: 14 ![]() |
This is common because the version of visual studio you have installed is not supported by Fluent. But you can solve it by modify the udf.bat file as follows:
1) Run Fluent Launcher, and get the path of udf.bat from Environment table, for example: Code:
D:\ANSYS Inc\v180\fluent\ntbin\win64\udf.bat 3) Add new lines for your visual studio version, for example vs2017(vc141): Code:
... echo trying to find MS C compiler, version 141.... set MSVC_DEFAULT=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build if exist "%MSVC_DEFAULT%\vcvarsall.bat" set MSVC=%MSVC_DEFAULT% if not "%MSVC%" == "" goto msvc_env141 ... :msvc_env141 set MSVC_VERSION=141 call "%MSVC%\vcvarsall.bat" x86_amd64 goto ms_c_end ... This modification will help Fluent to find where is the vcvarsall.bat. 4) Save file and run fluent. You do not need to modify any system environment variable. |
|
![]() |
![]() |
![]() |
![]() |
#27 |
New Member
Meisam
Join Date: Oct 2017
Posts: 4
Rep Power: 8 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#29 | |
New Member
Mehul Fadnavis
Join Date: Mar 2017
Posts: 2
Rep Power: 0 ![]() |
This really works!
I have spent so much time trying to find a way. Thanks a lot ![]() Quote:
|
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Windows Environment variables- to solve problems in compiling UDF in Fluent | Modest Cat | Fluent UDF and Scheme Programming | 39 | May 18, 2016 10:33 |
Error while compiling udf in fluent 13.0.0 | siddharth12 | FLUENT | 0 | December 3, 2013 16:46 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 09:28 |
Compiling UDFs under Windows XP | Hannah | FLUENT | 3 | February 13, 2005 08:16 |
Compiling and Running UDFs on an IBM Power3 | S. Hollman | FLUENT | 0 | January 6, 2005 11:23 |