aboutsummaryrefslogtreecommitdiff
path: root/Examples/SimpleWaveScript.kranc
blob: 417004840d4dbdfd61f59856669d374daee1623a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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