Skip to content

Commit

Permalink
Add draft SimpleWaveScript.kranc
Browse files Browse the repository at this point in the history
(by Steve Brandt)
  • Loading branch information
ianhinder committed Jan 26, 2012
1 parent e514896 commit 4c155b1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Examples/SimpleWaveScript.kranc
@@ -0,0 +1,13 @@
begin thorn simplewavescript

begin calculation initial_sine_calc
phi = sin(2*PI*(x-t))
pi = -2*pi*cos(2*PI*(x-t))
end calculation

begin calculation calc_rhs
D_t phi = pi
D_t pi = Euc^ij*D_ij phi
end calculation

end thorn

0 comments on commit 4c155b1

Please sign in to comment.