CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

How to get the gradient of a scalar in CFX 11.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2007, 11:11
Default How to get the gradient of a scalar in CFX 11.0
  #1
sm
Guest
 
Posts: n/a
Can anybody let me know how to get a gradient of a scalar variable using CFX 11.0 without User Fortran

With thanx sm
  Reply With Quote

Old   May 23, 2007, 11:22
Default Re: How to get the gradient of a scalar in CFX 11.
  #2
opaque
Guest
 
Posts: n/a
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

  Reply With Quote

Old   May 24, 2007, 03:40
Default Re: How to get the gradient of a scalar in CFX 11.
  #3
sm
Guest
 
Posts: n/a
Thanx opaque. Is there a way to get a divergence of a vector in CFX?

sm
  Reply With Quote

Old   May 24, 2007, 10:58
Default Re: How to get the gradient of a scalar in CFX 11.
  #4
opaque
Guest
 
Posts: n/a
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..

  Reply With Quote

Old   May 29, 2007, 04:13
Default Re: How to get the gradient of a scalar in CFX 11.
  #5
sm
Guest
 
Posts: n/a
Thanx opaque. I need it for a source term.

sm
  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
How to calculate laplacian of a scalar in cfx? Jun CFX 21 March 2, 2018 10:08
Temperature gradient in CFX Chander CFX 5 January 7, 2015 04:00
Calculating Gradient of a Scalar ali hemmati Fluent UDF and Scheme Programming 2 August 4, 2011 05:05
Intel Fortran and CFX 11.0 Rogerio Fernandes Brito CFX 4 November 11, 2008 01:27
running CFX 11.0 on Fedora 7 : display problems Eric Joubarne CFX 1 October 3, 2007 17:51


All times are GMT -4. The time now is 12:28.