24小时热门版块排行榜    

查看: 2767  |  回复: 8
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

luowenxu

木虫 (小有名气)


[交流] 求助c_udsi_g和c_udsi_rg的区别

问题一:我在udf中使用了这样的语句
  C_UDMI(c,t,3)=-C_UDSI_DIFF(c,t,0)*C_UDSI_G(c,t,0)[0];
     我在后处理中察看了一下udm-3,发现得到的数值不符合实际情况,然后我就怀疑是不是我在使用自定义标量梯度的时候出了什么错误?
   希望大家多多指教!
PS:自定义标量的梯度计算的时候,我根据某好心人的指导,在solve/set/expert中keep temporary。还是没有得到正确结果。

问题二:后来我又在帮助里面看了重构梯度,不是很了解_RG后缀的意思。请问_G和_RG的区别在哪里?

[ Last edited by luowenxu on 2013-1-16 at 22:25 ]
回复此楼

» 收录本帖的淘帖专辑推荐

等离子体相关

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

» 抢金币啦!回帖就可以得到:

查看全部散金贴

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

znon

金虫 (小有名气)


引用回帖:
4楼: Originally posted by luowenxu at 2013-04-18 08:52:41
谢谢!
  _RG是如何限制值的范围的?谢谢您!...

我也不知道具体如何实现。
5楼2013-04-18 09:27:39
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 9 个回答

苦逼小电弧

铜虫 (小有名气)



luowenxu(金币+1): 谢谢参与
表示遇到同样的问题
2楼2013-04-16 09:39:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

znon

金虫 (小有名气)


★ ★ ★
luowenxu(金币+1): 谢谢参与
xiegangmai: 金币+2, 谢谢参与! 2013-04-17 23:57:08
以下已经说明了 用_G 由于没有限制,计算数值可能 比周围网格大很多,_RG 由于限制数值范围,会更符合实际。
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.
3楼2013-04-17 10:53:59
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

luowenxu

木虫 (小有名气)


引用回帖:
3楼: Originally posted by znon at 2013-04-17 10:53:59
以下已经说明了 用_G 由于没有限制,计算数值可能 比周围网格大很多,_RG 由于限制数值范围,会更符合实际。
The gradients stored in variables with the _G suffix are non-limited values and if used to recon ...

谢谢!
  _RG是如何限制值的范围的?谢谢您!
4楼2013-04-18 08:52:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见