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

Compile UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2020, 00:04
Default Compile UDF
  #1
New Member
 
Join Date: Nov 2020
Posts: 5
Rep Power: 6
n.mai is on a distinguished road
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
n.mai is offline   Reply With Quote

Old   December 9, 2020, 03:38
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ 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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
Compile c99 standard UDF in Cluster darsonli Fluent UDF and Scheme Programming 0 July 7, 2015 03:58
looking for instructions on how to compile an udf in windows OS Srinivasa Rao Fluent UDF and Scheme Programming 2 May 22, 2015 11:00
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 08:26
Fluent doesnÂīt compile UDF on Windows HSeldon FLUENT 4 February 15, 2007 00:01


All times are GMT -4. The time now is 21:20.