CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

please check DEFINE_ADJUST code

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

LinkBack Thread Tools Display Modes
Old   November 14, 2012, 17:37
Default please check DEFINE_ADJUST code
New Member
Join Date: Oct 2012
Posts: 14
Rep Power: 7
89566008 is on a distinguished road
please check follow UDF code
I'm trying to calculate the V_cell (Eulerian particulate velocity) . I must summation the
variables around all particle injected to the control volume.
there are 368 particles injected to the C.V
and I want to storage the V_cell to the UDM5 .
What should I do? please help

DEFINE_ADJUST(v_cell_adjust, domain)
real sigma2=0, sigma3=0, v_cell;
Tracked_Particle *tp;
cell_t c = RP_CELL(&(tp->cCell));
Thread *t = RP_THREAD(&(tp->cCell));
Particle *p;
domain = Get_Domain(1);
sigma3 += P_MASS(p)*P_VEL(p)[0]*0.65;


thank you
89566008 is offline   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
The FOAM Documentation Project - SHUT-DOWN holger_marschall OpenFOAM 242 March 7, 2013 13:30
Small 3-D code Zdravko Stojanovic Main CFD Forum 2 July 19, 2010 10:11
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56
own Code vs. commercial code Bernhard Mueck Main CFD Forum 10 February 16, 2000 11:07

All times are GMT -4. The time now is 04:33.