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

Gradient of a variable calculation in CFX PRE

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2017, 05:42
Default Gradient of a variable calculation in CFX PRE
  #1
New Member
 
Luigi Gurreri
Join Date: Jul 2012
Posts: 18
Rep Power: 14
Luigi is on a distinguished road
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?
Luigi is offline   Reply With Quote

Old   September 14, 2017, 16:10
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,865
Rep Power: 33
Opaque will become famous soon enough
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,
Ashkan Kashani likes this.
Opaque is offline   Reply With Quote

Old   September 15, 2017, 05:04
Default
  #3
New Member
 
Luigi Gurreri
Join Date: Jul 2012
Posts: 18
Rep Power: 14
Luigi is on a distinguished road
Thank you. I found that the CEL expression MyAv.Gradient_x works!
Luigi is offline   Reply With Quote

Reply

Tags
cel expression, derivative, 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
overwrite a variable in CFX pre alirezame CFX 4 July 20, 2023 05:22
CEL expression in CFX pre Jane92 Main CFD Forum 1 June 3, 2016 03:48
emag beta feature: charge density charlotte CFX 4 March 22, 2011 10:14
Assign new variable in CFX Post Ben CFX 1 August 25, 2008 15:59
User Defined Variable in CFX PRE Hamidur Rahman CFX 2 September 21, 2007 15:18


All times are GMT -4. The time now is 07:41.