Download fstral.eso

Back to the list

   1 : C FSTRAL    SOURCE    BECC      11/05/26    21:15:29     6981           
   2 :       SUBROUTINE FSTRAL(
   3 :      &     PC, GAM,
   4 :      &     P, RHO_L, P_L, U_L,
   5 :      &     U, RHO, D,
   6 :      &     LOGDEB, LOGAN)
   7 : *
   8 : *************************************************************************
   9 : *
  10 : * project           :  CAST3M, EUROPLEXUS...
  11 : *
  12 : * name              :  fstral
  13 : *
  14 : * description       :  euler equations for a mixture of stiffened gases
  15 : *                      flux in the non-reactive case.
  16 : *
  17 : *                      left rarefaction curve as function of p
  18 : *
  19 : * language          :  fortran 77
  20 : *
  21 : * author            :  a. beccantini den/dm2s/sfme/ltmf
  22 : *
  23 : *************************************************************************
  24 : *
  24 : * called by         :
  25 : *
  26 : *
  27 : *************************************************************************
  28 : *
  29 : ***** input
  30 : *
  31 : *     pc, gam         = properties of the gas
  32 : *
  33 : *     p               = pressure in the right side of the left
  34 : *                       rarefaction
  35 : *
  36 : *     rho_l, p_l, u_l
  37 : *                     = density, pressure, velocity on the left
  38 : *
  39 : *     logdeb          = debugging ?
  40 : *
  41 : ***** output
  42 : *
  43 : *     u               = velocity in the right side of the left
  44 : *                       rarefaction
  45 : *
  46 : *     d               = rarefaction speed
  47 : *
  48 : *     logan           = anomaly ?
  49 : *
  50 : *************************************************************************
  51 : *
  52 : *     26/11/2009      created
  53 : *     25/05/2011      evolution in CAST3M
  54 : *
  55 : *************************************************************************
  56 : *
  57 : * n.b.: all variables are declared
  58 : *
  59 : C      IMPLICIT NONE
  60 :       IMPLICIT INTEGER(I-N)
  61 :       REAL*8
  62 :      &     PC, GAM,
  63 :      &     P, RHO_L, P_L, U_L,
  64 :      &     U, RHO, D
  65 : *
  66 :       REAL*8 VAR
  67 : *
  68 : *     debugging ?
  69 : *
  70 :       LOGICAL LOGDEB, LOGAN
  71 : *
  72 : *     a left rarefaction in the x-frame is a right rarefaction in the
  73 : *     -x-frame !
  74 : *
  75 :       VAR = -1.0D0 * U_L
  75 :       CALL FSTRAR(PC, GAM, P, RHO_L, P_L, VAR,
  76 :      &     U, RHO, D, LOGDEB, LOGAN)
  77 :       U = -1.0D0 * U
  78 :       D = -1.0D0 * D
  79 : *
  80 :       IF (LOGAN) THEN
  81 :          WRITE(*,*) 'SUBROUTINE FSTRAL.F'
  82 :          WRITE(*,*) 'ANOMALY DETECTED.'
  83 :          GOTO 9999
  84 :       ENDIF
  85 : *
  86 :  9999 RETURN
  87 :       END
  88 :  

© Cast3M 2003 - All rights reserved.
Disclaimer