CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Gradient of a variable calculation in CFX PRE (https://www.cfd-online.com/Forums/cfx/192824-gradient-variable-calculation-cfx-pre.html)

Luigi September 11, 2017 04:42

Gradient of a variable calculation in CFX PRE
 
I need to calculate the gradient of an additional variable and insert it in another equation as source term.
Is there a simple way to calculate the gradient in the CFX PRE, e.g. using CEL expressions?

Opaque September 14, 2017 15:10

For example you have a created an additional variable named MyAV, you can then access its spatial gradient components as MyAV.Gradient X, MyAV.Gradient Y, MyAV.Gradient Z as needed in your CEL expressions

Hope the above helps,

Luigi September 15, 2017 04:04

Thank you. I found that the CEL expression MyAv.Gradient_x works!


All times are GMT -4. The time now is 17:06.