CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

error while interpreting a udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2015, 14:27
Default error while interpreting a udf
  #1
New Member
 
atilla savas
Join Date: Oct 2015
Posts: 5
Rep Power: 11
atello28 is on a distinguished road
I wanted to interpret the udf below, which would give heat flux on a surface of a domain, but I encountered the errors at the end of the this note. The heat flux is getting greater when the radius gets bigger.

#include "udf.h"

DEFINE_PROFILE(heat_flux,thread,i)

{

real x[ND_ND];

real radius;

real omega;

real tau;

omega=62.83;

tau=20e6;

face_t f;

begin_f_loop(f,thread)

{

F_CENTROID (x,f,thread);

radius=sqrt(x[0]*x[0]+x[1]*x[1]);

F_PROFILE(f,thread,i) = radius*omega*tau

}

end_f_loop(f,thread);

}




line 19: parse error

line 21: f: undeclared variable
atello28 is offline   Reply With Quote

Old   November 6, 2015, 08:11
Default
  #2
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11
ordinary is on a distinguished road
I think nobody seems to know how to overcome UDF problems. I have also UDF problem with Fluent.

Best wishes
ordinary is offline   Reply With Quote

Old   November 6, 2015, 08:17
Default
  #3
New Member
 
atilla savas
Join Date: Oct 2015
Posts: 5
Rep Power: 11
atello28 is on a distinguished road
The problem was solved by placing

face_t f;

before omega=62.83
atello28 is offline   Reply With Quote

Reply

Tags
ansys 14.5, fluent - udf, parse syntax


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
Error during interpreting UDF for VoF vekh Fluent UDF and Scheme Programming 9 March 12, 2018 02:57
parse error while interpreting udf chem engineer Fluent UDF and Scheme Programming 10 September 18, 2015 10:06
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 07:43
Problem with interpreting UDF Boris Kloser Fluent UDF and Scheme Programming 1 December 30, 2009 00:48
parse error with interpreting UDF ivanbuz Fluent UDF and Scheme Programming 2 August 13, 2009 19:29


All times are GMT -4. The time now is 23:30.