|
[Sponsors] |
October 8, 2019, 16:26 |
Dumb Ansys Fluent can't compile UDF
|
#1 |
Member
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11 |
Hello everyone,
I try to compile a UDF for a 2D case. Unfortunately I encounter a warning which says Error at host: Error code: 193 Error at Node 0: Error code: 193 My Fluent is Version 19.4.0 for ANSYS 2019 R2. As far as I know I have to run Ansys via Cross Tools Command Prompt. Thus I installed Visual Studio Community 2019 and Desktop Development for C++. I run x64_x86 Cross Tools Command Prompt for 2019 as admin. Then I type C:\Program Files\ANSYS Inc\ANSYS Student\v194\Framework\bin\Win64>RunWB2.exe This is the Fluent terminal output after building UDF: > Copied C:\Users osh\Desktop\linearmotion\linear.c to libudf\src ************************************************** ************************* ** WARNING: Automatically switched to run in parallel -t1 mode. ** ** Detected non-parallelized UDF usage, enabling parallel usage. ** ** If you encounter any issues, please re-run with -t0 flag. ** ************************************************** **************************Creating user_nt.udf file for 2ddp_host ... (system "copy "C:\PROGRA~1\ANSYSI~1\ANSYSS~1\v194\fluent"\fluent 19.4.0\src\udf\makefile_nt.udf "libudf\win64\2ddp_host\makefile" ") 1 file(s) copied. (chdir "libudf")(chdir "win64\2ddp_host")# Generating ud_io1.h linear.c # Generating udf_names.c because of makefile linear.obj udf_names.c # Linking libudf.dll because of makefile user_nt.udf udf_names.obj linear.obj Microsoft (R) Incremental Linker Version 14.23.28105.4 Copyright (C) Microsoft Corporation. All rights reserved. Creating library libudf.lib and object libudf.exp ************************************************** ************************** ** WARNING: Automatically switched to run in parallel -t1 mode. ** ** Detected non-parallelized UDF usage, enabling parallel usage. ** ** If you encounter any issues, please re-run with -t0 flag. ** ***Creating user_nt.udf file for 2ddp_node ... (system "copy "C:\PROGRA~1\ANSYSI~1\ANSYSS~1\v194\fluent"\fluent 19.4.0\src\udf\makefile_nt.udf "libudf\win64\2ddp_node\makefile" ") 1 file(s) copied. (chdir "libudf")(chdir "win64\2ddp_node")# Generating ud_io1.h linear.c # Generating udf_names.c because of makefile linear.obj udf_names.c # Linking libudf.dll because of makefile user_nt.udf udf_names.obj linear.obj Microsoft (R) Incremental Linker Version 14.23.28105.4 Copyright (C) Microsoft Corporation. All rights reserved. Creating library libudf.lib and object libudf.exp Done. And finally this is what I get after I push the Load button: DESKTOP-Q4P9KJI: Opening library "C:\Users\tosh\Desktop\linearmotion\motion_files\d p0\FLU\Fluent\libudf"... Error at host: Error code: 193 Error at Node 0: Error code: 193 ===============Message from the Cortex Process================================ Compute processes interrupted. Processing can be resumed. ================================================== ============================ Error: Error code: 193\n Error Object: #f I tried to add environmental variables according to https://sites.psu.edu/zfzhang/notes/...f-environment/. I added these lines to the Path in User Variables: C:\Program Files\ANSYS Inc\ANSYS Student\v194\fluent C:\Program Files\ANSYS Inc\ANSYS Student\v194\fluent\ntbin\win64\fluent.exe Also these for User Variables INCLUDE C:\Program Files\Microsoft SDKs\Windows\v7.1\Include C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\in clude LIB C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\li b\x64 Do you have any idea? Regards, |
|
October 9, 2019, 08:55 |
|
#2 |
Member
Join Date: Mar 2016
Posts: 73
Rep Power: 10 |
I also had problems with Visual Studio 2019. I tried Visual Studio 2015 Express and it worked.
|
|
Tags |
udf |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF velocity inlet. Different values (compile - Fluent) | asking | FLUENT | 0 | July 13, 2018 18:02 |
UDF Defining in ANSYS FLUENT 16.2 in Win 10 | Sadegh.A | Fluent UDF and Scheme Programming | 11 | February 15, 2017 15:45 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
Fluent 6.3.26 on Linux does not compile an UDF | Entwistle | Fluent UDF and Scheme Programming | 1 | March 4, 2014 15:49 |
The fluent stopped and errors with "Emergency: received SIGHUP signal" | yuyuxuan | FLUENT | 0 | December 3, 2013 23:56 |