|
[Sponsors] |
May 18, 2019, 04:14 |
No response whatever from this udf
|
#1 |
Member
Saurabh Das
Join Date: Jul 2018
Posts: 43
Rep Power: 8 |
I was trying to include the following source term in udf:
This is the code snippet: Code:
DEFINE_SOURCE(perfusion,c,t,dS,eqn) { real physical_dt,temp_old,temp_now,T_derivative,source; physical_dt = RP_Get_Real("physical-time-step"); if (physical_dt > 0.1) { temp_old= C_T_M1(c,t); temp_now=C_T(c,t); T_derivative=(temp_now-temp_old)/physical_dt; } source = -tq*rho_b*wb*cb*T_derivative; dS[eqn]=0; return source; } Thanks.. |
|
May 19, 2019, 23:54 |
|
#2 | |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
most likely problem comes from line
temp_old= C_T_M1(c,t); from manual Quote:
best regards |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Save output of udf in another udf! | JuanJoMex | FLUENT | 0 | February 8, 2018 13:43 |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
parse error while interpreting udf | Kristin | Fluent UDF and Scheme Programming | 3 | March 15, 2012 07:43 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |