I'm trying to simulate a 2D axisymmetric model of steady-state compressible viscous flow using Mathematica, but I get some errors. There is a chance that I'm making some mistakes with the governing equations and/or the boundary conditions, as suggested in some posts (e.g. here).
Geometry:
The geometry is an axisymmetric tubular step about the x axis forming an annular orifice in 3D.
Assumptions:
- Axisymmetric about the x axis
- conduction and radiation are negligable
- Newtonian fluid with constant viscosity $\eta$
- Ideal gas (air)
- Steady-state
Writing the conservation equations in cylindrical form for the axisymmetric problem:
Conservation of mass:
$$ \frac{\partial}{\partial x}\left( \rho v_x \right)+\frac{1}{r}\frac{\partial }{\partial r}\left(r \rho v_r\right)=0 \tag{1}$$
Conservation of linear momentum in axial direction:
$$\frac{\partial}{\partial x}\left( \rho v_x^2+\mathring{R} \rho T \right)+\frac{1}{r}\frac{\partial}{\partial r}\left( r \left( \rho v_r v_x + \eta \frac{\partial v_x}{\partial r} \right)\right) \tag{2}$$
Conservation of linear momentum in radial direction:
$$ \frac{\partial}{\partial x}\left( \rho v_x v_r+\eta \frac{\partial v_r}{\partial x} \right)+ \frac{1}{r}\frac{\partial}{\partial r}\left( r \left( \rho v_r ^2 +\mathring{R} \rho T \right) \right)=0 \tag{3}$$
And energy balance (conservation of heat) more info here:
$$\rho c_v\left( v_x \frac{\partial T}{\partial x} + v_r \frac{\partial T}{\partial r} \right)+ \mathring{R} \rho T \left( \frac{1}{r}\frac{\partial}{\partial r} \left( r v_r \right)+ \frac{\partial v_x}{\partial x} \right)+ \eta \left( 2 \left( \frac{\partial v_x}{\partial x} \right)^2+ 2 \left( \frac{\partial v_r}{\partial r} \right)^2+ \left( \frac{\partial v_r}{\partial x}+ \frac{\partial v_x}{\partial r} \right)^2 \\ -\frac{2}{3}\left( \frac{1}{r} \frac{\partial}{\partial r}\left( r v_r \right) + \frac{\partial v_x}{\partial x} \right)^2 \right)=0 \tag{4}$$
The boundary conditions as I presume are:
- (1) Inlet: uniform pressure $P=P_1$
- (2) Outlet: uniform pressure $P=P_0$
- (3) Axis of symmetry $v_r=0$ and $\frac{\partial *}{\partial r}=0$ for all variables $v_r$, $v_x$, $T$ and $\rho$
- (4) no slip walls $v_*=0$
I would appreciate if you could help me know if I'm writing the equations correctly or I'm making any apparent mistakes? Are the boundary conditions enough/correct?