AMROC Main     Blockstructured Adaptive Mesh Refinement in object-oriented C++


Main Page   Class Hierarchy   Compound List   File List  

Makefile  combl.f  cuser.i  fdisc.f  init2.f  physbd2.f  rpn2eu.f  rpt2eu.f  chk2eu.f  Problem.h  amr_main.C 

applications/euler/2d/Pbc/src/init2.f


c
c
c     =====================================================
       subroutine ic(maxmx,maxmy,meqn,mbc,mx,my,x,y,dx,dy,q)
c     =====================================================
       implicit double precision (a-h,o-z)
c
       include  "cuser.i"
c
       dimension q(meqn,1-mbc:maxmx+mbc, 1-mbc:maxmy+mbc)
       dimension x(1-mbc:maxmx+mbc),y(1-mbc:maxmy+mbc)
c
c
c     # circle of high-density gas
c
      idisc = 2
      r0 = 0.2d0
      x0 = .3d0
      y0 = .7d0

      rhol = 5.d0
      rhor = 1.d0
      pl   = 5.d0
      pr   = 1.d0


       do 60 i = 1, mx
          do 60 j = 1, my
             call cellave(x(i)-dx/2.d0,y(j)-dy/2.d0,dx,dy,wl)
             q(1,i,j) = wl*rhol + (1.d0-wl)*rhor
             q(2,i,j) = 0.d0
             q(3,i,j) = 0.d0
             q(4,i,j) = wl*(pl/gamma1) + (1.d0-wl)*(pr/gamma1)
 60       continue
         
       return
       end


Quickstart     Users Guide     Programmers Reference     Installation      Examples     Download



AMROC Main      Home      Contact
last update: 06/01/04