File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
pySDC/implementations/problem_classes Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,21 @@ def compute_Nusselt_numbers(self, u):
355355 }
356356
357357 def get_frequency_spectrum (self , u ):
358+ """
359+ Compute the frequency spectrum of the velocities in x and y direction in the horizontal plane for every point in
360+ z. If the problem is well resolved, the coefficients will decay quickly with the wave number, and the reverse
361+ indicates that the resolution is too low.
362+
363+ The returned spectrum has three dimensions. The first is for component (i.e. u or v), the second is for every
364+ point in z and the third is the energy in every wave number.
365+
366+ Args:
367+ u: The solution you want to compute the spectrum of
368+
369+ Returns:
370+ RayleighBenard3D.xp.ndarray: wave numbers
371+ RayleighBenard3D.xp.ndarray: spectrum
372+ """
358373 xp = self .xp
359374 indices = slice (0 , 2 )
360375
You can’t perform that action at this time.
0 commit comments