|
[Sponsors] |
March 6, 2019, 02:49 |
About C_STRAIN_RATE_MAG(c,t) in UDF
|
#1 |
New Member
Yuan Baoqiang
Join Date: Nov 2016
Location: China
Posts: 3
Rep Power: 10 |
Hello,everyone.
I get the source code of "C_STRAIN_RATE_MAG(c,t)" from file named "mem.h" as follow.But i think for rp_axi,it should be %%%(rp_axi ?(2*SQR(C_V(c,t)/C_AVE_Y(c,t)%%%% instead of #if RP_2D%%%(rp_axi ?(SQR(C_V(c,t)/C_AVE_Y(c,t)%%% is it wrong in fluent udf? #define C_STRAIN_RATE_MAG(c,t)\ sqrt(ND_SUM(ND_DOT(C_DUDX(c,t), C_DUDY(c,t), C_DUDZ(c,t),\ (C_DUDX(c,t) + C_DUDX(c,t)),\ (C_DUDY(c,t) + C_DVDX(c,t)),\ (C_DUDZ(c,t) + C_DWDX(c,t))),\ ND_DOT(C_DVDX(c,t), C_DVDY(c,t), C_DVDZ(c,t),\ (C_DVDX(c,t) + C_DUDY(c,t)),\ (C_DVDY(c,t) + C_DVDY(c,t)),\ (C_DVDZ(c,t) + C_DWDY(c,t))),\ ND_DOT(C_DWDX(c,t), C_DWDY(c,t), C_DWDZ(c,t),\ (C_DWDX(c,t) + C_DUDZ(c,t)),\ (C_DWDY(c,t) + C_DVDZ(c,t)),\ (C_DWDZ(c,t) + C_DWDZ(c,t))))\ + (rp_axi ? \ (SQR(C_V(c,t)/C_AVE_Y(c,t)) \ + (sg_swirl ? \ (SQR(C_AVE_Y(c,t))*NV_MAG2(C_STORAGE_R_NV(c,t,SV_O MEGA_G))): \ 0.)): \ 0.) \ ) #else #define C_STRAIN_RATE_MAG(c,t)\ sqrt(ND_SUM(ND_DOT(C_DUDX(c,t), C_DUDY(c,t), C_DUDZ(c,t),\ (C_DUDX(c,t) + C_DUDX(c,t)),\ (C_DUDY(c,t) + C_DVDX(c,t)),\ (C_DUDZ(c,t) + C_DWDX(c,t))),\ ND_DOT(C_DVDX(c,t), C_DVDY(c,t), C_DVDZ(c,t),\ (C_DVDX(c,t) + C_DUDY(c,t)),\ (C_DVDY(c,t) + C_DVDY(c,t)),\ (C_DVDZ(c,t) + C_DWDY(c,t))),\ ND_DOT(C_DWDX(c,t), C_DWDY(c,t), C_DWDZ(c,t),\ (C_DWDX(c,t) + C_DUDZ(c,t)),\ (C_DWDY(c,t) + C_DVDZ(c,t)),\ (C_DWDZ(c,t) + C_DWDZ(c,t))))) #endif |
|
|
|
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 |