| 1 | C> \file CMTDATA include file for CMT variables and common blocks
|
|---|
| 2 | C> \var U(lxyz,5,lelt) contains nodal values of the five conserved unknowns at
|
|---|
| 3 | C> each of lx1*ly1*lz1 grid points for all elements
|
|---|
| 4 | real u(lx1,ly1,lz1,toteq,lelt)
|
|---|
| 5 | common /solnconsvar/ u
|
|---|
| 6 |
|
|---|
| 7 | logical iffltr, outflsub
|
|---|
| 8 | $ , ifcntfilt, ifrestart
|
|---|
| 9 | common /input10/ iffltr, outflsub
|
|---|
| 10 | $ , ifcntfilt, ifrestart
|
|---|
| 11 |
|
|---|
| 12 | real phig(lx1,ly1,lz1,lelt)
|
|---|
| 13 | ! real ja(lx1*ly1*lz1,ldim*ldim,lelv)
|
|---|
| 14 | ! I really want to set lxd=1 and declare a new rx and call it ja
|
|---|
| 15 | common /otherpvar/ phig!,ja
|
|---|
| 16 |
|
|---|
| 17 | real res1(lx1,ly1,lz1,lelt,toteq)
|
|---|
| 18 | $ , res2(lx1,ly1,lz1,lelt,toteq)
|
|---|
| 19 | $ , res3(lx1,ly1,lz1,toteq,lelt)
|
|---|
| 20 | common /cmtres/ res1, res2, res3
|
|---|
| 21 |
|
|---|
| 22 | real gradu(lx1*ly1*lz1,toteq,3)
|
|---|
| 23 | common /cmtgradu/ gradu
|
|---|
| 24 |
|
|---|
| 25 | real convh (lxd*lyd*lzd,3)
|
|---|
| 26 | $ , diffh (lx1*ly1*lz1,3) ! dealias someday?
|
|---|
| 27 | $ , totalh(lxd*lyd*lzd,3)
|
|---|
| 28 | common /convectdata/ convh, diffh, totalh
|
|---|
| 29 |
|
|---|
| 30 | real usrf(lx1,ly1,lz1,5)
|
|---|
| 31 | common /forcedata/ usrf
|
|---|
| 32 |
|
|---|
| 33 | real c_sub_e,c_max,meshh(lelt),maxdiff,gridh(lx1*ly1*lz1,lelt),
|
|---|
| 34 | $ nu_s,epsebdg(lelt),maxres(lelt),se0(lelt)
|
|---|
| 35 | common /planned_Additions/ c_sub_e,c_max,meshh,maxdiff,
|
|---|
| 36 | $ gridh,nu_s,epsebdg,maxres,se0
|
|---|
| 37 |
|
|---|
| 38 | c We assume we will be working with one gas. Therefore Rgas need not be
|
|---|
| 39 | c full filed. To begin with we assume calorically perfect gas.
|
|---|
| 40 | c In near future we relax the constraint to thermally perfect gas.
|
|---|
| 41 | c------------------------------------------------- -------------------
|
|---|
| 42 | c NOTE --- CVG need not be stored on full field... removed in future.
|
|---|
| 43 | c THis because, Temp will be stored fullfield and we expect Cv to
|
|---|
| 44 | c have explicit temp dependence. At the begining of the time step
|
|---|
| 45 | c a scratch space will be use to iteratively compute Cv and T from
|
|---|
| 46 | c internal energy.
|
|---|
| 47 | c---------------------------------------------------------------------
|
|---|
| 48 | real csound(lx1,ly1,lz1,lelt)
|
|---|
| 49 | common /cmtgasprop/ csound
|
|---|
| 50 |
|
|---|
| 51 | real cpgref,cvgref,cvjref,gmaref,rgasref,molmass,
|
|---|
| 52 | $ MAref,MBref,CAref,CBref, ! NTN for mixed model
|
|---|
| 53 | $ rhoidref,rho0ref,EN_IDref,EN_Oref,
|
|---|
| 54 | $ MWref,CWref,MCref,CCref,
|
|---|
| 55 | $ AAref,
|
|---|
| 56 | $ BBref,R1ref,R2ref,OMref,
|
|---|
| 57 | $ AA,BB,OM,CC,CW,se0const
|
|---|
| 58 |
|
|---|
| 59 | common /cmtgasref/cpgref,cvgref,cvjref,gmaref,rgasref,molmass,
|
|---|
| 60 | $ MAref,MBref,CAref,CBref, ! NTN for mixed model
|
|---|
| 61 | $ rhoidref,rho0ref,EN_IDref,EN_Oref,
|
|---|
| 62 | $ MWref,CWref,MCref,CCref,
|
|---|
| 63 | $ AAref,
|
|---|
| 64 | $ BBref,R1ref,R2ref,OMref,
|
|---|
| 65 | $ AA,BB,OM,CC,CW,se0const
|
|---|
| 66 |
|
|---|
| 67 | integer stage,nstage,iostep2
|
|---|
| 68 | common /tstepstage/ stage,nstage,iostep2
|
|---|
| 69 |
|
|---|
| 70 | real tcoef(3,3),time_cmt
|
|---|
| 71 | common /timestepcoef/ tcoef,time_cmt
|
|---|
| 72 |
|
|---|
| 73 | real rho,phi,pres,cv,e_internal
|
|---|
| 74 | $ ,t0in,p0in,asnd,rgas,cp,mu,lambda,molarmass
|
|---|
| 75 | common /nekuscmt/ rho,phi,pres,cv,e_internal
|
|---|
| 76 | $ ,t0in,p0in,asnd,rgas,cp,mu,lambda,molarmass
|
|---|
| 77 | ! let kond=udiff
|
|---|
| 78 |
|
|---|
| 79 | ! index for gas density in vtrans, Q+-
|
|---|
| 80 | integer irho
|
|---|
| 81 | parameter (irho=1) ! better always be 1
|
|---|
| 82 | ! other VTRANS indices
|
|---|
| 83 | integer icp, icv
|
|---|
| 84 | parameter (icp =2) ! rho*cp
|
|---|
| 85 | parameter (icv =3) ! rho*cv
|
|---|
| 86 | ! indices in VDIFF
|
|---|
| 87 | integer imu, iknd, ilam, inus
|
|---|
| 88 | parameter (imu =1) ! viscosity
|
|---|
| 89 | parameter (iknd=2) ! thermal conductivity
|
|---|
| 90 | parameter (ilam=3) ! lambda, 2nd viscosity
|
|---|
| 91 | parameter (inus=4) ! nu_s, mass diffusion (EVM)
|
|---|
| 92 | ! indices for fields in U
|
|---|
| 93 | integer irg, irpu, irpv, irpw, iret
|
|---|
| 94 | parameter (irg =1) ! phi_g*rho_g
|
|---|
| 95 | parameter (irpu=2) ! phi_g*rho_g*u
|
|---|
| 96 | parameter (irpv=3) ! phi_g*rho_g*v
|
|---|
| 97 | parameter (irpw=4) ! phi_g*rho_g*w
|
|---|
| 98 | parameter (iret=toteq) ! phi_g*rho_g*E
|
|---|
| 99 | ! indices for fields in Q-+
|
|---|
| 100 | integer iux, iuy, iuz, ipr, ithm, isnd, iph, icvf, icpf, imuf,
|
|---|
| 101 | $ ikndf, ilamf, iu1, iu2, iu3, iu4, iu5, nqq
|
|---|
| 102 | parameter (iux =2) ! u
|
|---|
| 103 | parameter (iuy =3) ! v
|
|---|
| 104 | parameter (iuz =4) ! w
|
|---|
| 105 | parameter (ipr =5) ! P
|
|---|
| 106 | parameter (ithm=6) ! T
|
|---|
| 107 | parameter (isnd=7) ! a
|
|---|
| 108 | parameter (iph =8) ! phi_g
|
|---|
| 109 | parameter (icvf=9) ! rho*cv
|
|---|
| 110 | parameter (icpf=10) ! rho*cp
|
|---|
| 111 | parameter (imuf=11) ! mu
|
|---|
| 112 | parameter (ikndf=12) ! K
|
|---|
| 113 | parameter (ilamf=13) ! lambda
|
|---|
| 114 | parameter (iu1=14) ! U1
|
|---|
| 115 | parameter (iu2=15) ! U2
|
|---|
| 116 | parameter (iu3=16) ! U3
|
|---|
| 117 | parameter (iu4=17) ! U4
|
|---|
| 118 | parameter (iu5=18) ! U5
|
|---|
| 119 | parameter (nqq=18)
|
|---|
| 120 |
|
|---|
| 121 | logical time4av
|
|---|
| 122 | common /cmtflags/ time4av
|
|---|