|
[Sponsors] |
November 3, 2015, 14:27 |
error while interpreting a udf
|
#1 |
New Member
atilla savas
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
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 |
|
November 6, 2015, 08:11 |
|
#2 |
Member
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11 |
I think nobody seems to know how to overcome UDF problems. I have also UDF problem with Fluent.
Best wishes |
|
November 6, 2015, 08:17 |
|
#3 |
New Member
atilla savas
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
The problem was solved by placing
face_t f; before omega=62.83 |
|
Tags |
ansys 14.5, fluent - udf, parse syntax |
|
|
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 |