-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Carefully checking aliased horizontal modes
All looks good.
- Loading branch information
1 parent
9ffd0d1
commit b66692a
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
Matlab/WaveVortexModel/UnitTests/MiscTests/FFTCoefficientTable.m
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,13 @@ | ||
wvg = WVGeometryDoublyPeriodic([2*pi 2*pi], [16 16]); | ||
|
||
|
||
function Aklz = wvToDFT(wvg,Azkl) | ||
Aklz = nan(wvg.Nx*wvg.Ny,1); | ||
for iK=1:wvg.Nkl_wv | ||
Aklz(wvg.dftPrimaryIndices(iK)) = Azkl(iK); | ||
end | ||
Aklz = reshape(Aklz,[wvg.Nx wvg.Ny]); | ||
end | ||
|
||
k_dft = wvToDFT(wvg,wvg.k_wv); | ||
l_dft = wvToDFT(wvg,wvg.l_wv); |
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