CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   derivative of scalar (

lig December 23, 2010 18:43

derivative of scalar
Hi, All,

Merry Christmas and Happy New Year!

Please help me to get the expression of derivative of scalar d\Phi /dx.



akOOma December 24, 2010 10:53

You mean in terms of numerical means? Ever heard of finite differences?

Like: f'(x)=(f(x+h)-f(x))/h

or central: f'(x)=(f(x+h)-f(x-h))/2h

lig December 25, 2010 16:06

Thank you akOOma. Seems there is no direct code for the derivative of scalar. I will use this basic method. Happy New Year!

akOOma December 26, 2010 05:02

If you kow the analytical form of the function you may give an exact derivative. Otherwise you have to use numerical approximations.

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