CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDM in DEFINE_DPM_BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2016, 04:28
Default UDM in DEFINE_DPM_BC
  #1
Senior Member
 
Sangwoo Kim
Join Date: Jul 2014
Location: Seoul, South Korea
Posts: 115
Rep Power: 12
swtbkim is on a distinguished road
Hi all!

I am writing UDF for particle-laden flow across a pipe.

This is my criterion:
When the particle impacts on the pipe surface, if sum of some forces acting on the particle is larger than some criterion force, then particle will be trapped on the surface. If not, then reflected

Here, I want to calculate mass flux of trapped particles and save it into UDM,
in order to show where the particles are trapped more by showing the contour of the UDM

So this is basically similar with the example of DEFIEN_DPM_EROSION in UDF manual.

This is my code.

Quote:
DEFINE_DPM_BC(bc,p,t,f,f_normal,dim)
{

//force calculation here//

if(F_net >= F_cr)
{
F_AREA(A,f,t);
area = NV_MAG(A);

c0 = F_C0(f,t);
t0 = THREAD_T0(t);
C_UDMI(c0,t0,0) = P_FLOW_RATE(p)/area;


return PATH_ABORT;
}
else
return PATH_ACTIVE;
}
Flow and other things converged well, but UDM kept increasing as iterating more.
This is weird because particle input is constant and DPM concentration at outlet also converged to a constant value.

I tried to use transient solver, and modify C_UDMI(c,t,0)=P_MASS(p)/CURRENT_TIME_STEP/AREA, but the result was similar, that is, C_UDMI kept increasing.


Why does this happen?
Do I need to reset UDM in this case?

Thank you.
__________________
Best regards
swtbkim 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
Segmentation violation louiza FLUENT 16 June 27, 2017 16:41
Saving array or matrix in UDM vucrusader Fluent UDF and Scheme Programming 1 January 31, 2016 23:06
Cleaning UDM CeesH Fluent UDF and Scheme Programming 8 August 7, 2014 08:17
Help! Delete the UDM codes in the UDF Messi Fluent UDF and Scheme Programming 2 January 28, 2014 10:01
Udm nasser FLUENT 0 April 7, 2013 10:19


All times are GMT -4. The time now is 17:41.