• VTF
  • FSI
  • AMROC
  • SFC
  • Motion
  • STLIB
  • Main Page
  • Related Pages
    • combl.f
    • cuser.i
    • fdisc.f
    • init2.f
    • Makefile.am
    • physbd2.f
    • FluidProblem.h
    • ip2eurfl.f
    • rpn2euhll.f
    • rpt2eu.f
    • chk2eu.f
    • rec2eu.f
    • flx2eu.f
    • flgout2eu.f
    • amr_beam_main.C

    fsi/beam-amroc/VibratingBeam/src/init2.f

    c
    c     =====================================================
          subroutine ic(maxmx,maxmy,meqn,mbc,mx,my,x,y,dx,dy,q)
    c     =====================================================
    c
    c     Copyright (C) 2003-2007 California Institute of Technology
    c     Ralf Deiterding, ralf@cacr.caltech.edu
    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     # incident shock at angle (alf,beta) to axis
    c     # shock starts at location x=disp at wall
          !write(6,*) mx, my
          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)
                rho =      (1.d0-wl)*rhoamb+ wl*rhoshk
                u =        (1.d0-wl)*uamb  + wl*ushk
                p =        (1.d0-wl)*pamb  + wl*pshk
                q(1,i,j) = rho
                q(2,i,j) = rho * u
                q(3,i,j) = 0.d0
                q(4,i,j) = p/gamma1 + .5d0*rho*u*u
     60   continue
    c         
          return
          end
    c