Skip to content

Commit 242cbd9

Browse files
committed
Added documentation
1 parent 03791a1 commit 242cbd9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pySDC/implementations/problem_classes/RayleighBenard3D.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)