CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Parallel DPM-UDF problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2011, 12:58
Unhappy Parallel DPM-UDF problem
  #1
Member
 
Shawn Fotovati
Join Date: Jul 2009
Location: Dallas, TX
Posts: 42
Rep Power: 16
sfotovati is on a distinguished road
Hey all,

I wrote a UDF using DPM_SCALAR_UPDATE macro,

DEFINE_DPM_SCALAR_UPDATE(part,c,t,initialize,p)
{
.
.
.
C_CENTROID(pvct,c,t);
.
.
begin_c_loop(c0,tin)
{
c_face_loop(c0,tin,n)
{
xu[0]=0.,xu[1]=0.,Lcf=0.;
f=C_FACE(c0,tin,n);
tf=C_FACE_THREAD(c0,tin,n);
F_AREA(cface,f,tf);
Lcf=0.5*(NV_MAG(cface));
F_CENTROID(xu,f,tf);
r0=sqrt(pow((pvct[0]-xu[0]),2)+pow((pvct[1]-xu[1]),2));
if (r0<=Lcf)
{
C_UDMI(c,t,0)+=P_MASS(p);
}
}
}
end_c_loop(c0,tin);
.
.
.
}

Whenever I am running this UDF in parallel, the values for "cface" and "xu" become zero. If not parallel though, they get the correct values regarding to the cell faces. IF anyone can help me how to take care of it while running parallel, it is highly appreciated.

Thanks

Sean
sfotovati is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem loading UDF library in parallel cluster Veera Gutti FLUENT 8 July 26, 2016 07:24
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
A UDF Problem in Parallel Mode Jun FLUENT 1 October 26, 2011 12:49
problem loading UDF in parallel fluent Tim FLUENT 12 July 12, 2008 12:59
DPM - UDF for fluctuating bubble size Jaroslav Kotara FLUENT 1 April 19, 2006 09:02


All times are GMT -4. The time now is 05:16.