This repository contains a MPI parallelized direct numerical simualtion flow solver for
aeroacoustic analysis of axisymmetric nozzles jets. The compressible Navier-Stokes
equations are solved using fourth-order Runge-Kutta for the temporal discretization,
fourth-order finite difference discretization for the spatial derivatives with summation-by-parts (SBP)
operators, and the simulataneous approximation term (SAT) approach to implement the boundary conditions.
The governing equations in cylindrical polar coordinates for the compressible Navier-Stokes equations are
∂t∂ρ+(Vr∂r∂ρ+rVθ∂θ∂ρ+Vz∂z∂ρ)+ρ(∂r∂Vr+rVr+r1∂θ∂Vθ+∂z∂Vz)=0
ρ∂t∂Vr+ρ(Vr∂r∂Vr+rVθ∂θ∂Vr−rVθ2+Vz∂z∂Vr)+γ1(ρ∂r∂T+T∂r∂ρ)=Sr
ρ∂t∂Vθ+ρ(Vr∂r∂Vθ+rVθ∂θ∂Vθ+rVrVθ+Vz∂z∂Vθ)+γ1(rρ∂θ∂T+rT∂θ∂ρ)=Sθ
ρ∂t∂Vz+ρ(Vr∂r∂Vz+rVθ∂θ∂Vz+Vz∂z∂Vz)+γ1(ρ∂z∂T+T∂z∂ρ)=Sz
ρ∂t∂T+ρ(Vr∂r∂T+rVθ∂θ∂T+Vz∂z∂T)+(γ−1)ρT(∂r∂Vr+rVr+r1∂θ∂Vθ+∂z∂Vz)=ST
where Sr, Sθ, Sz and ST include all viscous and heat transfer effects, and are given by
Sr=Re1[μ((2+μλ)∂r2∂2Vr+(2+μλ)r1∂r∂Vr+(1+μλ)r1∂r∂θ∂2Vr+(1+μλ)∂z∂r∂2Vz+r21∂θ2∂Vr2−(3+μλ)r21∂θ∂Vθ+∂z2∂2Vr
−(2+μλ)r2Vr)+∂r∂μ((2+μλ)∂r∂Vr+μλrVr+μλr1∂θ∂Vθ+μλ∂z∂Vz)+∂θ∂μ(r1∂r∂Vθ+r21∂θ∂Vr−r2Vθ)+∂z∂μ(∂z∂Vr+∂r∂Vz)]
Sθ=Re1[μ(∂r2∂2Vθ+(1+μλ)r1∂θ∂r∂2Vθ+(2+μλ)r21∂θ2∂2Vθ+(3+μλ)r21∂θ∂Vr+(1+μλ)r1∂θ∂z∂2Vz+∂z2∂2Vθ+r1∂r∂Vθ−r2Vθ)+
∂r∂μ(∂r∂Vθ+r1∂θ∂Vr−rVθ)
+∂θ∂μ((2+μλ)r21∂θ∂Vθ+μ(2μ+λ)r2Vr+μλr1∂r∂Vr+μλr1∂z∂Vz)+∂z∂μ(∂z∂Vθ+r1∂θ∂Vz)]
Sz=Re1[μ(∂r2∂2Vz+r21∂θ2∂2+(2+μλ)∂z2∂2Vz+(1+μλ)∂r∂z∂2Vr+r1∂r∂Vz+(1+μλ)r1∂z∂Vr+(1+μλ)r1∂θ∂z∂2Vθ)
+∂r∂μ(∂r∂Vz+∂z∂Vr)+∂θ∂μ(r21∂θ∂Vz+r1∂z∂Vθ)+∂z∂μ((2+μλ)∂z∂Vz+μλ∂r∂Vr+μλrVr+μλr1∂θ∂Vθ)]
ST=RePrγ[κ(∂r2∂2T+r1∂r∂T+r21∂θ2∂2T+∂z2∂2T)+∂r∂κ∂r∂T+r21∂θ∂κ∂θ∂T+∂z∂κ∂z∂T]
+Reγ(γ−1)μ[∂r∂Vr((2μ+λ)∂r∂Vr+λrVr+λr1∂θ∂Vθ+λ∂z∂Vz)
+(∂θ∂Vr+∂r∂Vθ−rVθ)(∂r∂Vθ+r1∂θ∂Vr−rVr)
+(r1∂θ∂Vθ+rVr)((2μ+λ)r1∂θ∂Vθ+(2μ+λ)rVr+λ∂r∂Vr+λ∂z∂Vz)
+(∂z∂Vθ+r1∂θ∂Vz)(∂z∂Vθ+r1∂θ∂Vz)
+∂z∂Vz((2μ+λ)∂z∂Vz+λ∂r∂Vr+λrVr+λr1∂θ∂Vθ)+(∂z∂Vr+∂r∂Vz)(∂r∂Vz+∂z∂Vr)]
A standard power law describes the temperature dependence of the fluid viscosity, μ, and thermal conductivity, κ as μ=κ=T2/3. The bulk viscosity is μB=λ+2/3μ=0.6μ, where λ is the second coefficient of viscosity and the Prandtl number Pr=μCp/κ=0.72, where Cp is the specific heat at constant pressure. For this nondimensionalization, the equation of state is p=ρT.
The following are the instructions for compiling on the Stampede2 supercomputer at Texas Advanced Supercomputing Center (TACC).
The gcc compilers in /opt/apps/gcc9_1/mvapich2/2.3.7/bin have to be used.
The intel compilers have some issue in the plot3d file reading. The compile script
run_compile.sh uses the gcc compilers.
git clone https://github.com/nataraj2/AxisymmetricJet.git
cd AxisymmetricJet
sh run_compile.sh
idev -p development -N 2 -n 128 -m 150
ibrun -n <nprocs> ./run_AxiJet
Make sure nprocs is the product of the integers in dims in ModuleVariables.f90.
noutput in ModuleVariables.f90 is the frequency of writing the output solution files.
The I/O format used for the files is PLOT3D, which is a standard format for curvilinear, structured meshes and can be read into standard visualization
packages such as VisIt, ParaView and Tecplot.