I am not sure where else to post this, so here goes.
I have a velocity profile ($v_{\phi}$) for a radial distance ($r$). From this velocity profile I am trying calculate the shear rate ($y$) which can be calculated by ( Eq 3 in Image): $$ y = \frac{\partial v_{\phi}}{ \partial r} - \frac{v_{\phi}}{r} = r \frac{\partial}{\partial r} \left( \frac{v_{\phi}}{ r}\right ) $$ Please find the image of the equation from the papers attached,
Screenshot of the equation for the paper for your kind consideration.
I have implemented the equation as such,
for i = 1: size(v_phi,1)
y (i) = ( r(i) ) * (( ( v_phi (i) / r(i) ) - ( v_phi (i+1) / r(i+1) ) ) / ( r(i+1) - r(i)) );
y1 (i) = ( ( ( v_phi(i) / r(i) ) - ( v_phi(i+1) / r(i+1) ) ) * ( v_phi (i) / r(i) ) );
end
However the y and y1 values calculated are very different. I am just wondering, whether I am doing something wrong in the implementation and looking for help if possible.
Many thanks.
Data >>>>
v_phi = [36.99 37.00 35.78 31.43 26.91 23.32 19.46 16.97 14.49 12.12 10.42 8.52 7.25 6.06 5.11 3.92 3.30 2.54 2.11 1.42 1.46 1.46 0.97 0.63 0.63 0.51 0.40 0.91 0.24 0.36 0.63 0.71 0.45 0.26 0.74 ];
r = [3.59 3.76 3.94 4.12 4.29 4.47 4.65 4.82 5.00 5.18 5.35 5.53 5.71 5.88 6.06 6.24 6.41 6.59 6.76 6.94 7.12 7.29 7.47 7.65 7.82 8.00 8.18 8.35 8.53 8.71 8.88 9.06 9.24 9.41 9.50 ];
\left(
and\right)
to have bigger brackets, for instance when surrounding a fraction. $\endgroup$