[Commits] [svn:einsteintoolkit] Workshop_Spring_2012/example_wavetoy/ (Rev. 58)

roland.haas at physics.gatech.edu roland.haas at physics.gatech.edu
Wed Apr 4 15:45:32 CDT 2012


User: rhaas
Date: 2012/04/04 03:45 PM

Modified:
 /example_wavetoy/
  example_wavetoy.pdf, example_wavetoy.tex

Log:
 fix drawings to reflect what the code actually does wrt boundaries
 gray out very old timelevels
 highlight only initial data on current level

File Changes:

Directory: /example_wavetoy/
============================

File [modified]: example_wavetoy.pdf
Delta lines: +0 -0
===================================================================
(Binary files differ)

File [modified]: example_wavetoy.tex
Delta lines: +11 -9
===================================================================
--- example_wavetoy/example_wavetoy.tex	2012-04-04 18:43:17 UTC (rev 57)
+++ example_wavetoy/example_wavetoy.tex	2012-04-04 20:45:32 UTC (rev 58)
@@ -260,8 +260,8 @@
        % Step 7: Layers rotation
        \uncover<7->{
          \scope[very thick,color=green,xstep=0.6cm,ystep=1cm]
-          \draw[xshift=0cm,yshift=0cm]       (0cm,-1pt) grid (3.0cm,1pt);
-          \draw[xshift=2.45cm,yshift=0.05cm] (0cm,-1pt) grid (3.0cm,1pt);         
+          \draw[xshift=0cm,yshift=0cm,color=gray]       (0cm,-1pt) grid (3.0cm,1pt);
+          \draw[xshift=2.45cm,yshift=0.05cm,color=gray] (0cm,-1pt) grid (3.0cm,1pt);         
           \draw[xshift=0cm,yshift=0.4cm]     (0cm,-1pt) grid (3.0cm,1pt);
           \draw[xshift=2.45cm,yshift=0.45cm] (0cm,-1pt) grid (3.0cm,1pt);         
           \draw[xshift=0cm,yshift=0.8cm]     (0cm,-1pt) grid (3.0cm,1pt);
@@ -325,16 +325,16 @@
          \scope[very thick,color=green,xstep=0.6cm,ystep=1cm]
           \draw[xshift=0.6cm,yshift=1.2cm]       (0cm,-1pt) grid (2.4cm,1pt);
           \draw[xshift=2.45cm,yshift=1.25cm] (0cm,-1pt) grid (2.4cm,1pt);         
-          \draw[->,color=red] (0.0,0.8) -- (0.0,1.2);
-          \draw[->,color=red] (5.45,0.85) -- (5.45,1.25);
+          \draw[->,color=red] (-0.4,1.2) -- (0.0,1.2);
+          \draw[->,color=red] (5.85,1.25) -- (5.45,1.25);
          \endscope
        }%
 
        % Step 11: Output data
        \uncover<11->{
          \scope[very thick,color=green,xstep=0.6cm,ystep=1cm]
-          \draw[xshift=0cm,yshift=0.8cm]     (0cm,-1pt) grid (3.0cm,1pt);
-          \draw[xshift=2.45cm,yshift=0.85cm] (0cm,-1pt) grid (3.0cm,1pt);         
+          \draw[xshift=0cm,yshift=1.2cm]     (0cm,-1pt) grid (3.0cm,1pt);
+          \draw[xshift=2.45cm,yshift=1.25cm] (0cm,-1pt) grid (3.0cm,1pt);         
          \endscope
        }
 
@@ -346,6 +346,8 @@
           \draw[xshift=2.45cm,yshift=1.65cm,color=black] (0cm,-1pt) grid (3.0cm,1pt);         
           \draw[xshift=0cm,yshift=1.2cm]     (0cm,-1pt) grid (3.0cm,1pt);
           \draw[xshift=2.45cm,yshift=1.25cm] (0cm,-1pt) grid (3.0cm,1pt);         
+          \draw[xshift=0cm,yshift=0.4cm,color=gray]     (0cm,-1pt) grid (3.0cm,1pt);
+          \draw[xshift=2.45cm,yshift=0.45cm,color=gray] (0cm,-1pt) grid (3.0cm,1pt);         
          \endscope
          \scope[color=blue]
            \draw (-0.5,0.8) node[anchor=east] {\small phi\_p\_p};
@@ -596,15 +598,15 @@
         CCTK\_REAL Z = z[vindex];
         CCTK\_REAL R = sqrt(X*X + Y*Y + Z*Z);
 
-        phi[vindex] = amplitude*exp( - SQ( (R - radius) / sigma ) );
+        \textcolor{blue}{phi[vindex] = amplitude*exp( - SQ( (R - radius) / sigma ) );}
 
         if (R == 0.0) \{
           phi\_p[vindex] = amplitude*(1.0 - 2.0*dt*dt/sigma)*exp(-dt*dt/sigma);
         \} else \{
-          \textcolor{blue}{phi\_p[vindex] = amplitude/2.0*(R-dt)/R*
+          phi\_p[vindex] = amplitude/2.0*(R-dt)/R*
             exp( - SQ( (R - radius - dt)/ sigma ) )
             + amplitude/2.0*(R+dt)/R*
-            exp( - SQ( (R - radius + dt)/ sigma ) );}
+            exp( - SQ( (R - radius + dt)/ sigma ) );
         \textcolor{Green}{\}
       \}
     \}}



More information about the Commits mailing list