CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   How to get the gradient of a scalar in CFX 11.0 (https://www.cfd-online.com/Forums/cfx/24025-how-get-gradient-scalar-cfx-11-0-a.html)

sm May 23, 2007 10:11

How to get the gradient of a scalar in CFX 11.0
 
Can anybody let me know how to get a gradient of a scalar variable using CFX 11.0 without User Fortran

With thanx sm

opaque May 23, 2007 10:22

Re: How to get the gradient of a scalar in CFX 11.
 
Dear sm,

You can refer to it, by using the same naming convention you see in CFX-Post..

Examples:

Value = Temperature.Gradient X

Source = Pressure.Gradient Y

Additional Variable = MyOtherAV.Gradient Z

Notice that you always access the gradient components explicitly not the gradient vector..

Hope this helps,

Opaque


sm May 24, 2007 02:40

Re: How to get the gradient of a scalar in CFX 11.
 
Thanx opaque. Is there a way to get a divergence of a vector in CFX?

sm

opaque May 24, 2007 09:58

Re: How to get the gradient of a scalar in CFX 11.
 
Dear SM,

No.. But, what do you want to do with the divergence of vector? Is it a source term in another equation? That determines how you evaluate the term.

You can always (not recommended for source terms) get the gradient and apply the summation of the components:

d/dx + d/dy + d/dz (Phi)..

Opaque..


sm May 29, 2007 03:13

Re: How to get the gradient of a scalar in CFX 11.
 
Thanx opaque. I need it for a source term.

sm


All times are GMT -4. The time now is 22:39.