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

error interpreted udfs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2018, 10:35
Default error interpreted udfs
  #1
New Member
 
Pedro Jesus Sanchez
Join Date: Aug 2018
Posts: 27
Rep Power: 7
p52sarup is on a distinguished road
I'm trying to interpret the next UDF, but it gives me an error.

************************************************* *******************
UDF para variar la presion en la entrada conforme pasa el tiempo
************************************************** ******************* /

#include "udf.h"

DEFINE_PROFILE(unsteady_pressure, thread, position)
{
face_t f;
real t = CURRENT_TIME;

begin_f_loop(f, thread)
{
F_PROFILE(f, thread, position)= 101325.0 + 50*t;
}
end_f_loop(f, thread)
}



Error:

cpp -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/main" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/addon-wrapper" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/io" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/species" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/pbns" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/numerics" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/sphysics" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/storage" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/mphase" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/bc" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/models" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/material" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/amg" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/util" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/mesh" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/udf" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/ht" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/dx" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/turbulence" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/parallel" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/etc" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/ue" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/dpm" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/src/dbns" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/cortex/src" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/client/src" -I"C:\PROGRA~1\ANSYSI~1\v171\fluent\fluent17.1.0/multiport/src" -I. -DUDFCONFIG_H="<udfconfig-host.h>" "C:/Users/p52sa/Desktop/prueba ANSYS/prueba1_files/dp0/FLU/Fluent/pressure_va-inlet.c"
Error: C:/Users/p52sa/Desktop/prueba ANSYS/prueba1_files/dp0/FLU/Fluent/pressure_va-inlet.c: line 1: parse error.


help me please

thank
p52sarup is offline   Reply With Quote

Old   August 23, 2018, 11:32
Default
  #2
New Member
 
Pedro Jesus Sanchez
Join Date: Aug 2018
Posts: 27
Rep Power: 7
p52sarup is on a distinguished road
The problem is :

************************************************* * ******************
UDF para variar la presion en la entrada conforme pasa el tiempo
******************** ****************************** ******************* /

the first line must be #include "udf.h"

sorry for the inconvenience
p52sarup 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
how to check UDFs code errors? gjm89 Fluent UDF and Scheme Programming 5 December 10, 2014 17:57
problem using property udfs in parallel mode EllenW Fluent UDF and Scheme Programming 5 July 10, 2009 04:31
problem using property udfs in parallel mode EllenW FLUENT 0 June 23, 2009 17:18
Unsteady and Flux UDFs for UDSs tom FLUENT 0 February 13, 2009 10:27
Experimental Repository for UDFs, Journal Files and Scheme Scripts Jonas Larsson FLUENT 0 March 5, 2000 15:36


All times are GMT -4. The time now is 10:51.