Page 390 - Computational Fluid Dynamics for Engineers
P. 390

Appendix  B                                                           383



         Chapter   10
         Inviscid-Flow   Equations    for  Compressible    Flow

         10.6  Solution  of  Full-Potential  Equation  (tsd.c)

         Generate  executable  tsd  on  unix  by  using  cc  -o  tsd  tsd.c  -lm
         Test  Cases  with  PC  executable  tsdPC.exe
         NX  =  101, NY  =  41, Minf  -  0.7,  Relax_factor  =  1.5
         1. K  =  2.5, Output:  tsdK2p50ut.txt  and  tsd2p50utRes.txt
         2.  K  =  2.1, Output: tsdK2pl0ut.txt  and  tsd2pl0utRes.txt
         3.  K  =  1.8,  Output: tsdKlp80ut.txt  and  tsdlp80utRes.txt
         4.  K  =  1.15,  Output: tsdKlpl5ut.txt  and  tsdlpl50utRes.txt

         10.10  Model  Problem  for  the  MacCormack   Method:
         Unsteady  Shock  Tube   (tube_mac.c)
         Generate  executable  tube_mac  on  unix  by  using
         cc  -o  tubejnac  tubejnac.c  -lm
         Test  Cases  with  PC  executable  tube_mac.exe
         1. CFL  =  0.5, Output:  tubeMac0p50ut.txt
         2.  CFL  =  0.9,  Output:  tubeMac0p90ut.txt
         3.  CFL  =  1.1, Output:  tubeMaclpl0ut.txt

         10.11  Model  Problem  for  the  MacCormack   Method:
         Quasi-ID  Nozzle  (nozzle_mac.c)
         Generate  executable  nozzle_mac  on  unix  by  using
         cc  -o  nozzle_mac  nozzle_mac.c  -lm
         Test  Cases  with  PC  executable  nozzleMacPC. exe
         1. CFL  =  0.5, Output:  nozzleMac0p50ut.txt  and  nozzleMac0p50ut_d.txt
         2.  CFL  =  1.0,  Output: nozzleMaclp00ut.txt  and  nozzleMaclpOOut_d.txt
         3.  CFL  =  1.1, Output:  nozzleMaclplOut.txt  and  nozzleMaclplOut_d.txt

         10.13  Model  Problem  for  the  Implicit  Method:
         Unsteady  Shock  Tube   (tube_implicit  .c)
         Generate  executable tube_implicit  on  unix  by  using
         cc  -o  tube_implicit  tube_implicit.  c  blocktri.c  -lm
         Test  Cases with PC  executable tubeImplicitPC.exe  and  explicit  artificial  vis-
         cosity  coefficient  s e  =  0.1
         1. CFL  =  0.5, Output:  tubelmplicit0p50ut.txt
         2.  CFL  =  0.9, Output:  tubelmplicit0p90ut.txt
         3.  CFL  =  2.0, Output:  tubelmplicit2p00ut.txt
         4.  CFL  =  5.0,  Output:  tubelmplicit5p00ut.txt
   385   386   387   388   389   390   391   392   393   394   395