aboutsummaryrefslogtreecommitdiff
path: root/Examples/SimpleWaveScript.kranc
blob: 35b938f3546abd8ee22e44ba1b2e0e149a956620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
begin thorn SimpleWaveScript

begin variables
    phi pi
end variables

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

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

end thorn