Blockstructured Adaptive Mesh Refinement in object-oriented C++
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 pi = 4.d0*datan(1.d0) pi2 = 2.d0*pi disp = 0.0d0 c c # circle of concentration 1 against background concentration 0: idisc = 2 r0 = 0.2d0 x0 = .0d0 y0 = .4d0 rhol = 1.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 Contactlast update: 06/01/04