aboutsummaryrefslogtreecommitdiff
path: root/Examples/SimpleWaveScriptCaKernel.kranc
blob: 333d92b920357256068c940293a2a28fe26d1670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
begin thorn SimpleWaveScriptCaKernel

use cakernel

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