diff --git a/Matlab/WaveVortexModel/@WVTransform/WVTransform.m b/Matlab/WaveVortexModel/@WVTransform/WVTransform.m index 483f3429..c4887607 100644 --- a/Matlab/WaveVortexModel/@WVTransform/WVTransform.m +++ b/Matlab/WaveVortexModel/@WVTransform/WVTransform.m @@ -1003,7 +1003,8 @@ function summarizeEnergyContent(self) initWithRandomFlow(self) removeEnergyFromAliasedModes(self,options) - + removeAll(self) + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Add and remove internal waves from the model %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/Matlab/WaveVortexModel/@WVTransform/removeAll.m b/Matlab/WaveVortexModel/@WVTransform/removeAll.m new file mode 100644 index 00000000..72925144 --- /dev/null +++ b/Matlab/WaveVortexModel/@WVTransform/removeAll.m @@ -0,0 +1,9 @@ +function removeAll(self) +% removes all energy from the model +% +% Simply sets Ap, Am, and A0 to zero. +% - Topic: Initial conditions — Waves +self.A0 = 0*self.A0; +self.Ap = 0*self.Ap; +self.Am = 0*self.Am; +end \ No newline at end of file