Skip to content

Commit d0b5e6d

Browse files
documented SPOD
1 parent f537d07 commit d0b5e6d

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Diff for: pyLOM/SPOD/wrapper.pyx

+8-10
Original file line numberDiff line numberDiff line change
@@ -430,20 +430,18 @@ def _drun(double[:,:] X, double[:] t, int nDFT, int nolap, int remove_mean):
430430
@cython.nonecheck(False)
431431
@cython.cdivision(True) # turn off zero division check
432432
def run(real[:,:] X, real[:] t, int nDFT=0, int nolap=0, int remove_mean=True):
433-
'''
433+
r'''
434434
Run SPOD analysis of a matrix X.
435435
436-
Inputs:
437-
- X[ndims*nmesh,nt]: data matrix
438-
- dt: timestep between adjacent snapshots
439-
- npwin: number of points in each window (0 will set default value: ~10% nt)
440-
- nolap: number of overlap points between windows (0 will set default value: 50% nwin)
441-
- remove_mean: whether or not to remove the mean flow
436+
Args:
437+
X (np.ndarray): data matrix.
438+
t (np.ndarray): times at which the snapshots of X were collected
439+
nDFT (int, optional): number of points in each window (0 will set default value: ~10% nt)
440+
nolap (int, optional): number of overlap points between windows (0 will set default value: 50% nwin)
441+
remove_mean (bool, optional): whether or not to remove the mean flow (default, ``True``)
442442
443443
Returns:
444-
- L: modal energy spectra.
445-
- P: SPOD modes, whose spatial dimensions are identical to those of X.
446-
- f: frequency vector.
444+
[(np.ndarray), (np.ndarray), (np.ndarray)]: where the first array is L, the modal energy spectra, the second array is P, SPOD modes, whose spatial dimensions are identical to those of X and finally f is the frequency vectors
447445
'''
448446
if real is double:
449447
return _drun(X,t,nDFT,nolap,remove_mean)

0 commit comments

Comments
 (0)