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

Error in compiling udf in fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2018, 15:05
Default Error in compiling udf in fluent
  #1
New Member
 
vikash
Join Date: Jun 2016
Posts: 1
Rep Power: 0
harshvikash is on a distinguished road
When I am adding my udf file and building it, then this error comes up in fluent's command line:

(system "copy "C:\PROGRA~1\ANSYSI~1\v150\fluent"\fluent15.0.0\sr c\makefile_nt.udf "libudf\win64\3d\makefile" ")
1 file(s) copied.
(chdir "libudf")(chdir "win64\3d")# Generating ud_io1.h
new_udf_at_end.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_math.h(4 94): error C2059: syntax error: 'constant'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_math.h(4 94): error C2143: syntax error: missing ')' before '/'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_math.h(4 94): error C2143: syntax error: missing '{' before '/'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_math.h(4 94): error C2059: syntax error: '/'
C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_math.h(4 94): error C2059: syntax error: ')'

Done.

Next when I click on load this message comes up:

Error: The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).

please help me, how can I use my udf in fluent
harshvikash is offline   Reply With Quote

Old   April 11, 2018, 01:01
Default
  #2
New Member
 
Doruk Yelkenci
Join Date: Apr 2017
Posts: 20
Rep Power: 9
doruk is on a distinguished road
There are problems with your code. Double check the code for your parenthesizes
doruk is offline   Reply With Quote

Old   April 11, 2018, 11:00
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
No, this problem is not in your code, it is in math.h.
Your system is not set up properly. There are other threads in this forum that explain how to do this.
pakk is offline   Reply With Quote

Reply

Tags
fluent - udf


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
looking for a smart interface matlab fluent chary FLUENT 24 June 18, 2021 10:07
How to solve UDF compilation problems in Fluent. pakk Fluent UDF and Scheme Programming 16 September 10, 2018 03:48
The fluent stopped and errors with "Emergency: received SIGHUP signal" yuyuxuan FLUENT 0 December 3, 2013 23:56
Error while compiling udf in fluent 13.0.0 siddharth12 FLUENT 0 December 3, 2013 17:46
compiling my UDF Seyed Farid Hosseinizadeh FLUENT 22 February 14, 2006 11:19


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