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

Cannot interpret UDF! parse error!?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2019, 05:47
Question Cannot interpret UDF! parse error!?
  #1
Roh
Senior Member
 
Join Date: Sep 2017
Posts: 130
Rep Power: 9
Roh is on a distinguished road
Guys,
Just tried to interpret my UDF But don't know why I get this error:


Quote:
cpp -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/main" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/addon-wrapper" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/io" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/species" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/pbns" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/numerics" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/sphysics" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/storage" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/mphase" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/bc" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/models" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/material" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/amg" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/util" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/mesh" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/udf" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/ht" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/dx" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/turbulence" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/parallel" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/etc" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/ue" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/dpm" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/src/dbns" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/tgrid/src" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/PRIME/tgrid/src" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/cortex/src" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/client/src" -I"C:\PROGRA~1\ANSYSI~1\v192\fluent\fluent19.2.0/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "F:/RD/RDUDF.c" Error: F:/RD/RDUDF.c: line 1: parse error.


What's the problem?
Roh is offline   Reply With Quote

Old   January 7, 2019, 00:09
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
put
Code:
#include "udf.h"
as the first line.

put here your UDF if you want to get help

best regards
AlexanderZ is offline   Reply With Quote

Old   January 8, 2019, 11:33
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
"Parse error" means that Fluent can not parse (understand) the code that you give to Fluent. So the problem is in your code. If you want help, share the code, we can not guess what your code is.


(Although AlexanderZ probably guessed correctly, there could still be other problems with your code.)
pakk 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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
long error when using make-install SU2_AD. tomp1993 SU2 Installation 3 March 17, 2018 07:25
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23


All times are GMT -4. The time now is 16:02.