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

What's the applicable scope of G and RG Vector Macros

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2020, 08:28
Default What's the applicable scope of G and RG Vector Macros
  #1
Senior Member
 
Join Date: Feb 2020
Posts: 114
Rep Power: 6
lbj007 is on a distinguished road
In help manual: The gradients stored in variables with the _G suffix are non-limited values and if used to reconstruct values within the cell (at faces, for example), may potentially result in values that are higher (or lower) than values in the surrounding cells. Therefore, if your UDF needs to compute face values from cell gradients, you should use the reconstruction gradient (RG) values instead of non-limited gradient (G) values.
Can I explain it as " RG macros is more suitable than G macros",so what is the reason of defining G macros since RG is better? Or maybe G has some advantage I don't know. Maybe RG is only suitable when you use the second order discretization scheme? I wonder if someone can explain it
lbj007 is offline   Reply With Quote

Old   October 5, 2020, 02:40
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
RG is used to define gradient value on faces adjusted to cells
Gradient is calculated in the center of finite volume
lbj007 and Mary-31 like this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   October 5, 2020, 22:42
Default
  #3
Senior Member
 
Join Date: Feb 2020
Posts: 114
Rep Power: 6
lbj007 is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
RG is used to define gradient value on faces adjusted to cells
Gradient is calculated in the center of finite volume
thanks,now I get it
lbj007 is offline   Reply With Quote

Reply

Tags
gradient, reconstruction gradient


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



All times are GMT -4. The time now is 13:04.