CFD Online Logo CFD Online URL
Home > Forums > FLUENT

udf problem

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 14, 2006, 10:48
Default udf problem
Ankit Tayal
Posts: n/a
I am running a simulation in which the heat flux from the wall to the fluid flowing inteh channel varies linearly with the x co ordiante (independant of the other co ordiantes) i wrote the udf for it but it gives this error every time i run it.

chip-exec: heat_flux: argument 1: incorrect type (31): int expectedchip-exec: heat_flux: argument 2: incorrect type (5): pointer expectedchip-exec: heat_flux: argument 3: incorrect type (-842150451): int expected Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: ()

my udf program is as folows

#include<udf.h> #DEFINE C1 39682.5 #DEFINE C2 2645502.646

DEFINE_PROFILE( heat_flux,thread,i) { real pos_vec[ND_ND]; real x; face_t f; begin_f_loop(f,thread) { F_CENTROID(pos_vec,f,thread); x=pos_vec[1]; F_PROFILE(f,thread,i)=C1 - C2*x; } end_f_loop(f,thread) }

please help me thanks in advance

  Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 39 June 29, 2017 19:04
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58

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