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

About C_STRAIN_RATE_MAG(c,t) in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2019, 02:49
Default 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
Yuan Bao is on a distinguished road
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
Yuan Bao 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:05.