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

Calculate the derivative in CFX

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2017, 20:55
Default Calculate the derivative in CFX
  #1
Member
 
Yuva
Join Date: Oct 2015
Location: Korea Rep of
Posts: 33
Rep Power: 10
FAKHREDDINE is on a distinguished road
Dear CFD Community

I would like to obtain the derivative of the speed of sound with respect to density in CFX [ dc/drho ], is there any way to create this expression ?

Thanks in advance for your Help
FAKHREDDINE is offline   Reply With Quote

Old   March 8, 2017, 21:26
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Is it a single value or a fixed function (and probably therefore a fixed material property) or does it vary over the simulation field?
FAKHREDDINE likes this.
ghorrocks is offline   Reply With Quote

Old   March 8, 2017, 21:42
Default
  #3
Member
 
Yuva
Join Date: Oct 2015
Location: Korea Rep of
Posts: 33
Rep Power: 10
FAKHREDDINE is on a distinguished road
Thanks for your reply

it is not a single, it is a set of data between the inlet of the domain and the outlet (turbine) so it varies over the simulation field
FAKHREDDINE is offline   Reply With Quote

Old   March 8, 2017, 22:08
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Can you define a CFD-Post variable of dc/dx * 1/(drho/dx)? You can evaluate the d/dx terms using the CEL gradient functions.
ghorrocks is offline   Reply With Quote

Old   March 8, 2017, 23:22
Default
  #5
Member
 
Yuva
Join Date: Oct 2015
Location: Korea Rep of
Posts: 33
Rep Power: 10
FAKHREDDINE is on a distinguished road
I tried this option but I used the gradient expression :

Speed of Sound.Gradient / Density.Gradient

since I am working on 3D flow simulation

I am not sure if I am right or wrong because I want to get the derivative of the speed of sound with respect to the density not with respect to time dt or distance dx
FAKHREDDINE is offline   Reply With Quote

Old   March 9, 2017, 00:18
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You will have to define the direction to take the gradient in. You might have to define gradient use variables to access them, but just use the x direction gradients.

Quote:
I am not sure if I am right or wrong because I want to get the derivative of the speed of sound with respect to the density not with respect to time dt or distance dx
Have a look at the chain rule: https://en.wikipedia.org/wiki/Chain_rule
ghorrocks is offline   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
Differences between CFX and OpenFOAM regarding convergence and robustness! magjohan OpenFOAM Running, Solving & CFD 4 February 26, 2015 10:26
Pros and Cons for CFX, CFdesign, COMSOL Val Main CFD Forum 3 June 10, 2011 02:20
[ICEM] Node Number vs. Node_ID & ICEM vs. CFX Araz ANSYS Meshing & Geometry 1 April 25, 2011 11:03
using CFX to calculate NPSHR for pump sandy CFX 0 March 19, 2008 12:52
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 04:07


All times are GMT -4. The time now is 09:56.