Compile UDF
Hi,
I have a problem during compiling my UDF file. I'm using ANSYS 18.1 and visual studio express 2012. I follow the step in youtube link = https://www.youtube.com/watch?v=OPfgkORSESQ&t=84s Hopefully someone could help me. Below is the error that appears in the Fluent. Thank you. ... Copied D:\E\Ph.D\Simulation e\fluent e\UDF test\UDF TEST_files\dp0\FFF-22\Fluent/D:\E\Ph.D\Simulation e\fluent e\UDF test\UDF TEST_files\dp0\FFF-22\Fluent\modified cross flow udf old.c to libudf\src Creating user_nt.udf file for 2d ... (system "copy "C:\PROGRA~1\ANSYSI~1\v181\fluent"\fluent18.1.0\sr c\udf\makefile_nt.udf "libudf\win64\2d\makefile" ") 1 file(s) copied. (chdir "libudf")(chdir "win64\2d")'nmake' is not recognized as an internal or external command, operable program or batch file. Done. Opening library "D:\E\Ph.D\Simulation e\fluent e\UDF test\UDF TEST_files\dp0\FFF-22\Fluent\D:\E\Ph.D\Simulation e\fluent e\UDF test\UDF TEST_files\dp0\FFF-22\Fluent\libudf"...RPC RCX_SC_SET_ERR_MSG failed: RPC: Can't encode arguments Error: The UDF library you are trying to load (D:\E\Ph.D\Simulation e\fluent e\UDF test\UDF TEST_files\dp0\FFF-22\Fluent\libudf) is not compiled for 2d on the current platform (win64). The system cannot find the file specified. D:\E\Ph.D\Simulation e\fluent e\UDF test\UDF TEST_files\dp0\FFF-22\Fluent\D:\E\Ph.D\Simulation e\fluent e\UDF test\UDF TEST_files\dp0\FFF-22\Fluent\libudf\win64\2d\libudf.dll Error: The UDF library you are trying to load (D:\E\Ph.D\Simulation e\fluent e\UDF test\UDF TEST_files\dp0\FFF-22\Fluent\libudf) is not compiled for 2d on the current platform (win64).\n\nThe system cannot find the file specified. \n\nD:\E\Ph.D\Simulation e\fluent e\UDF test\UDF TEST_files\dp0\FFF-22\Fluent\D:\E\Ph.D\Simulation e\fluent e\UDF test\UDF TEST_files\dp0\FFF-22\Fluent\libudf\win64\2d\libudf.dll Error Object: #f |
compiler is not connected to fluent, that why nmake doesnt work
run fluent from Visual studio command prompt you may read this for detailed information: https://www.cfd-online.com/Wiki/Flue...UDF.29_Related |
All times are GMT -4. The time now is 12:42. |