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

UDF for DPM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2020, 14:24
Default UDF for DPM
  #1
New Member
 
Sai Paruchuri
Join Date: Feb 2020
Posts: 4
Rep Power: 6
paru is on a distinguished road
I am trying to calculate lagrangian blood damage by using DPM in Fluent. So, to calculate the degree of blood damage on a particle, I'd need to integrate shear stress on the particle (^exponent) w.r.t (residence) time. When I use the UDF below, I am getting a value of 0. I even tried replacing the values of C_MU_L and C_R with the actual numbers since they are constant throughout the domain.

I am a beginner in Fluent UDF programming and sincerely appreciate any suggestions/help towards getting this UDF right.

#include "udf.h"


#define A *****
#define exp_t ****
#define exp_tau ***

DEFINE_DPM_SOURCE(calc_HIp, c, t, dS, eqn)
{
real tau = C_STRAIN_RATE_MAG(c,t)*(C_MU_L(c,t));
real source = pow(A,1.0/exp_t)*pow(tau,exp_tau/exp_t)*C_R(c,t);

dS[eqn] = 0.;

return source;
}

Thanks in advance
paru 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
udf for one dimensional linear motion based on force maccheese Fluent UDF and Scheme Programming 2 September 1, 2019 03:18
Save output of udf in another udf! JuanJoMex FLUENT 0 February 8, 2018 13:43
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 01:53
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 19:11.