Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add version of WaveCaKernel in script language (untested)
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
begin thorn WaveCaKernelScript | ||
|
||
use cakernel | ||
|
||
begin variables | ||
phi pi | ||
end variables | ||
|
||
begin calculation initial_gaussian_calc scheduled at initial | ||
phi = exp(-1*((t+x)/0.1)**2) | ||
pi = -2*(t+x)/0.1**2 * exp(-1*((t+x)/0.1)**2) | ||
end calculation | ||
|
||
begin calculation calc_rhs scheduled at MoL_CalcRHS | ||
D_t phi = pi | ||
D_t pi = Euc^ij*D_ij phi | ||
end calculation | ||
|
||
begin calculation calc_bound_rhs scheduled at MoL_RHSBoundaries | ||
D_t phi = 2*(t+x)/0.1**2 * exp(-1*((t+x)/0.1)**2) | ||
D_t pi = -2/(exp((t+x)**2/0.1**2) * 0.1**2) + (4*(t+x)**2)/(exp((t+x)**2/0.1**2) * 0.1**4) | ||
end calculation | ||
|
||
end thorn |