|
[Sponsors] |
Help....varibbles are unset at somewhere in udf |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 24, 2010, 09:18 |
Help....varibbles are unset at somewhere in udf
|
#1 |
New Member
iman
Join Date: Oct 2009
Posts: 9
Rep Power: 16 |
#include "udf.h"
#define m 101 real X,Y; . . . static real timestep; DEFINE_GRID_MOTION(canopy,domain,dt,time,dtime) { Thread *tf; face_t f; Node *V; . . . timestep = dtime ; . . . Message ("current time = %f, time step %f, dt %f\n", time, dtime, timestep); /* line:77 */ . . . Message ("////time step = %i\n", timestep ); /* line:349 */ . . . } timestep is correct in first message but incorrect in second message. first message: current time = 0.000010, time step 0.000010, dt 0.000010 second message: ////time step = -2147483648 plz help... |
|
May 25, 2010, 09:56 |
|
#2 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
I would use instead of:
Code:
Message ("////time step = %i\n", timestep ); /* line:349 */ Code:
Message ("////time step = %f\n", timestep ); /* line:349 */ |
|
May 28, 2010, 11:36 |
thx
|
#3 |
New Member
iman
Join Date: Oct 2009
Posts: 9
Rep Power: 16 |
Thanks friend!!!
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |