$$\newcommand{\D}{\displaystyle} \renewcommand{\eqref}[1]{Eq.~(\ref{#1})}$$

## 2.6.4 Example: Sphere in free fall

Figure 8: Falling sphere due to gravity.

Figure 8 illustrates a falling sphere in a gravitational field with a diameter $$d$$ and mass $$m$$ that falls vertically in a fluid. Use of Newton's 2nd law in the $$z$$-direction gives $$$$\tag{2.56} m\frac{dv}{dt} = mg-m_fg-\frac{1}{2}m_f\frac{dv}{dt}-\frac{1}{2}\rho_fv\left|v\right|A_kC_D,$$$$ where the different terms are interpreted as follows: $$m=\rho_k V$$, where $$\rho_k$$ is the density of the sphere and $$V$$ is the sphere volume. The mass of the displaced fluid is given by $$m_f=\rho_f V$$, where $$\rho_f$$ is the density of the fluid, whereas buoyancy and the drag coefficient are expressed by $$m_f \, g$$ and $$C_D$$, respectively. The projected area of the sphere is given by $$A_k = \frac{\pi}{4}d^2$$ and $$\frac{1}{2}m_f$$ is the hydro-dynamical mass (added mass). The expression for the hydro-dynamical mass is derived in White [2], page 539-540. To write Equation (2.56) on a more convenient form we introduce the following abbreviations: $$$$\rho=\frac{\rho_f}{\rho_k},\ A=1+\frac{\rho}{2}, \ B=(1-\rho)g,\ C=\frac{3\rho}{4d}. \tag{2.57}$$$$ in addition to the drag coefficient $$C_D$$ which is a function of the Reynolds number $$\displaystyle R_e = \frac{vd}{\nu}$$, where $$\nu$$ is the kinematical viscosity. Equation (2.56) may then be written as $$$$\tag{2.58} \frac{dv}{dt}=\frac{1}{A}(B-C\cdot v\left|v\right|C_d).$$$$ In air we may often neglect the buoyancy term and the hydro-dynamical mass, whereas this is not the case for a liquid. Introducing $$v=\frac{dz}{dt}$$ in Equation (2.58), we get a 2nd order ODE as follows $$$$\tag{2.59} \frac{d^2z}{dt^2}=\frac{1}{A}\left(B-C\cdot \frac{dz}{dt}\bigg|\frac{dz}{dt}\bigg|C_d\right)$$$$ For Equation (2.59) two initial conditions must be specified, e.g. $$v=v_0$$ and $$z=z_0$$ for $$t=0$$.

Figure 9 illustrates $$C_D$$ as a function of $$Re$$. The values in the plot are not as accurate as the number of digits in the program might indicate. For example is the location and the size of the "valley" in the diagram strongly dependent of the degree of turbulence in the free stream and the roughness of the sphere. As the drag coefficient $$C_D$$ is a function of the Reynolds number, it is also a function of the solution $$v$$ (i.e. the velocity) of the ODE in Equation (2.58). We will use the function $$C_D(Re)$$ as an example of how functions may be implemented in Python.

Figure 9: Drag coefficient $$C_D$$ as function of the Reynold's number $$R_e$$.