CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

Problem with UDF!

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

LinkBack Thread Tools Display Modes
Old   October 22, 2013, 04:52
Unhappy Problem with UDF!
New Member
neda rahimi
Join Date: May 2013
Posts: 13
Rep Power: 4
nikiii is on a distinguished road
What''s wrong with my UDF?
It compiled successfully and when i track particle it work but UDMI couldn't be updated.
Please help me.
thank you.

#include "udf.h"
#include "mem.h"
#define K 1.38e-23
#define e 1.6e-19
#define T 293
#define ci 240
#define E0 8.854e-12
#define pi 3.141593
#define KP 2.5
#define bi 0.00015

real Qs, E, Q, tow, towc, Qp, dQ_dt, dQ;

if (initialize)
/* this is the initialization call, set:
* p->user[0] contains the melting index, initialize to 0
* viscosity_0 contains the viscosity at the start of a time step*/
C_UDMI(c,t,3)= 0.;


E=sqrt(ND_SUM(pow(C_UDMI(c,t,0),2),pow(C_UDMI(c,t, 1),2)));
/* Update UDMI(c,t,2) for start of next step */
C_UDMI(c,t,2) = C_UDMI(c,t,3);
nikiii is offline   Reply With Quote


udf and programming

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 32 May 8, 2015 06:05
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 08:47.