CFD Online Logo CFD Online URL
Home > Forums > FLUENT

What's the problem about this UDF?

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

LinkBack Thread Tools Display Modes
Old   May 29, 2007, 21:56
Default What's the problem about this UDF?
Posts: n/a
DEFINE_DPM_INJECTION_INIT(set_velocity,Inject) { Domain *domain; Thread *t; cell_t c; real xc[ND_ND]; Particle *pp;

loop(pp, Inject->p)//It said this line"structure reference not implemented"??

What's the problem? Any suggestion? Thanks

  Reply With Quote

Old   May 30, 2007, 00:54
Default Re: What's the problem about this UDF?
Markus Alzon
Posts: n/a
I made a loop like this:

loop(p, I->p_init)

then you din' use curly brackets (or you did, and did not post them).

In this loop i set some values, like this: P_VEL(p)[0] = 0.0;

Hope, it helps you.

Good luck!

  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 40 October 18, 2017 07:17
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 21:11.