CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   derivative of scalar (https://www.cfd-online.com/Forums/main/83337-derivative-scalar.html)

lig December 23, 2010 17: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.

Thanks

lig

akOOma December 24, 2010 09: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 15: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 04: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 11:13.