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 Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2017, 04:42
Default Gradient of a variable calculation in CFX PRE
  #1
New Member
 
Luigi Gurreri
Join Date: Jul 2012
Posts: 18
Rep Power: 13
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, 15:10
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,816
Rep Power: 32
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, 04:04
Default
  #3
New Member
 
Luigi Gurreri
Join Date: Jul 2012
Posts: 18
Rep Power: 13
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 04:22
CEL expression in CFX pre Jane92 Main CFD Forum 1 June 3, 2016 02:48
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
Assign new variable in CFX Post Ben CFX 1 August 25, 2008 14:59
User Defined Variable in CFX PRE Hamidur Rahman CFX 2 September 21, 2007 14:18


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