diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-03-21 16:00:37 +0100 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-03-21 16:00:37 +0100 |
commit | acbdf7d52188f53c1175fe68bd43d8194e32797f (patch) | |
tree | 31ebc63e2205d5a6d876179b61fed58573d09658 /Examples | |
parent | 7a42b045fa2257a94c9d98c9ceec7567322698a4 (diff) |
Add SimpleWaveScriptCaKernel.kranc example
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/SimpleWaveScriptCaKernel.kranc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Examples/SimpleWaveScriptCaKernel.kranc b/Examples/SimpleWaveScriptCaKernel.kranc new file mode 100644 index 0000000..333d92b --- /dev/null +++ b/Examples/SimpleWaveScriptCaKernel.kranc @@ -0,0 +1,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 |