|
[Sponsors] |
September 23, 2020, 14:24 |
UDF for DPM
|
#1 |
New Member
Sai Paruchuri
Join Date: Feb 2020
Posts: 4
Rep Power: 6 |
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 |
|
|
|
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 |