osiris-utils 1.2.3__py3-none-any.whl → 1.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- docs/source/api/sim_diag.rst +1 -1
- osiris_utils/postprocessing/fft.py +9 -11
- {osiris_utils-1.2.3.dist-info → osiris_utils-1.2.4.dist-info}/METADATA +1 -1
- {osiris_utils-1.2.3.dist-info → osiris_utils-1.2.4.dist-info}/RECORD +8 -8
- {osiris_utils-1.2.3.dist-info → osiris_utils-1.2.4.dist-info}/WHEEL +0 -0
- {osiris_utils-1.2.3.dist-info → osiris_utils-1.2.4.dist-info}/entry_points.txt +0 -0
- {osiris_utils-1.2.3.dist-info → osiris_utils-1.2.4.dist-info}/licenses/LICENSE.txt +0 -0
- {osiris_utils-1.2.3.dist-info → osiris_utils-1.2.4.dist-info}/top_level.txt +0 -0
docs/source/api/sim_diag.rst
CHANGED
|
@@ -19,12 +19,10 @@ class FFT_Simulation(PostProcess):
|
|
|
19
19
|
|
|
20
20
|
Parameters
|
|
21
21
|
----------
|
|
22
|
-
|
|
23
22
|
simulation : Simulation
|
|
24
23
|
The simulation object.
|
|
25
|
-
|
|
26
|
-
The axis to compute the FFT.
|
|
27
|
-
|
|
24
|
+
fft_axis : int or list of int
|
|
25
|
+
The axis or axes to compute the FFT.
|
|
28
26
|
"""
|
|
29
27
|
|
|
30
28
|
def __init__(self, simulation: Simulation, fft_axis: int | list[int]) -> None:
|
|
@@ -84,13 +82,13 @@ class FFT_Diagnostic(Diagnostic):
|
|
|
84
82
|
Methods
|
|
85
83
|
-------
|
|
86
84
|
load_all() -> np.ndarray
|
|
87
|
-
Load all data and compute FFT (possibly including time axis). Returns power spectrum
|
|
88
|
-
_frame(index: int, data_slice: tuple
|
|
85
|
+
Load all data and compute FFT (possibly including time axis). Returns power spectrum \|FFT\|^2 stored in self._data.
|
|
86
|
+
_frame(index: int, data_slice: tuple \| None = None) -> np.ndarray
|
|
89
87
|
Per-timestep (lazy) FFT. Only allowed for spatial FFT. If fft_axis includes time (0), user must call load_all().
|
|
90
|
-
Returns power spectrum
|
|
88
|
+
Returns power spectrum \|FFT\|^2.
|
|
91
89
|
omega() -> np.ndarray
|
|
92
90
|
Get the angular frequency array for the FFT along the time dimension.
|
|
93
|
-
k(axis: int
|
|
91
|
+
k(axis: int \| None = None) -> np.ndarray \| dict[int, np.ndarray]
|
|
94
92
|
Get the wavenumber array for the FFT along spatial dimension(s).
|
|
95
93
|
"""
|
|
96
94
|
|
|
@@ -102,7 +100,7 @@ class FFT_Diagnostic(Diagnostic):
|
|
|
102
100
|
window: str | None = "hann", # "hann" or None
|
|
103
101
|
window_for_spatial: str | None = None, # default None if periodic; override if desired
|
|
104
102
|
detrend: str | None = "mean", # "mean" or None
|
|
105
|
-
normalize: str = "ortho", # "none"
|
|
103
|
+
normalize: str = "ortho", # "none" or "ortho" or "density"
|
|
106
104
|
assume_periodic: bool = False, # affects default windowing for spatial FFT)
|
|
107
105
|
) -> None:
|
|
108
106
|
if hasattr(diagnostic, "_species"):
|
|
@@ -161,7 +159,7 @@ class FFT_Diagnostic(Diagnostic):
|
|
|
161
159
|
def load_all(self) -> np.ndarray:
|
|
162
160
|
"""
|
|
163
161
|
Load all data and compute FFT (possibly including time axis).
|
|
164
|
-
Returns power spectrum
|
|
162
|
+
Returns power spectrum \|FFT\|^2 stored in self._data.
|
|
165
163
|
"""
|
|
166
164
|
if self._data is not None:
|
|
167
165
|
print("Using cached data.")
|
|
@@ -218,7 +216,7 @@ class FFT_Diagnostic(Diagnostic):
|
|
|
218
216
|
"""
|
|
219
217
|
Per-timestep (lazy) FFT. Only allowed for spatial FFT.
|
|
220
218
|
If fft_axis includes time (0), user must call load_all().
|
|
221
|
-
Returns power spectrum
|
|
219
|
+
Returns power spectrum \|FFT\|^2.
|
|
222
220
|
"""
|
|
223
221
|
axes_osiris = [self._fft_axis] if isinstance(self._fft_axis, int) else list(self._fft_axis)
|
|
224
222
|
|
|
@@ -9,7 +9,7 @@ docs/source/_static/custom.css,sha256=KJO7s8zlu2_16WICQB7U5NTfcJelwmHmA1Uj3WqfSL
|
|
|
9
9
|
docs/source/_static/quick_start_ez.png,sha256=_pxXBOTl30EMkCcbiehp-F0vk-nd8r9VF25Cz4tORPU,50829
|
|
10
10
|
docs/source/api/decks.rst,sha256=iTcMUiSSlb7rmqzwLG4T5bjShFiAWdSIsDBWQljkbwE,1147
|
|
11
11
|
docs/source/api/postprocess.rst,sha256=Tv0BPBRQhol844LB4_4mKaIdA3wvi1ZMAfC9E_pjWI4,11849
|
|
12
|
-
docs/source/api/sim_diag.rst,sha256=
|
|
12
|
+
docs/source/api/sim_diag.rst,sha256=AFmhZHVm08gu9XOvHjozcQvzmdE-c2Akp9d4PULLtoU,7594
|
|
13
13
|
docs/source/api/utilities.rst,sha256=DlJVDykwuoN7YEF6e75UbSG3fQiCNbcDGM89mNMOcUI,9599
|
|
14
14
|
docs/source/examples/example_Derivatives.md,sha256=p0tLobnmLyFKPkDSeFshKpzYi4rYVjBnn2oo_ekcB7g,2378
|
|
15
15
|
docs/source/examples/example_FFT.md,sha256=JbFNm0C8EVEhnY6vTiKFD2IKBVwFoCpv-35OcrzRl7M,6086
|
|
@@ -99,7 +99,7 @@ osiris_utils/decks/decks.py,sha256=pQ1xdl4VKRskHjTQMzfOtLFIBipM0XQCkg4-lfSSMfo,1
|
|
|
99
99
|
osiris_utils/decks/species.py,sha256=f8BY-Zb_LhHP5KFlkQNbzF3uQZl7vtDKXHXZvlKzps8,1106
|
|
100
100
|
osiris_utils/postprocessing/__init__.py,sha256=bN8YlzTXd1Kr8eYqyWtGv8WFF0N_9f5XlsN1uUIHyLc,1180
|
|
101
101
|
osiris_utils/postprocessing/derivative.py,sha256=yNf40zl7BemGstI1_SQ6t5YmNzoOvbBG1z9zXuVhEnk,22713
|
|
102
|
-
osiris_utils/postprocessing/fft.py,sha256=
|
|
102
|
+
osiris_utils/postprocessing/fft.py,sha256=hF8m-8wc8XPLB0GYI2FIkSm-aelfajb8CHKKTLy2Y1s,18731
|
|
103
103
|
osiris_utils/postprocessing/field_centering.py,sha256=dRkQOUMEsrfZjy0JTpRIclk7dRuLV55sooF9zzhxNxc,7745
|
|
104
104
|
osiris_utils/postprocessing/heatflux_correction.py,sha256=oBIJnyJT_FLMM9sCjL8d9TCh6EcJpa15rwd2a7GKuvE,8079
|
|
105
105
|
osiris_utils/postprocessing/mft.py,sha256=2BvbXTms53TUO3jYGvR_OqwEPjRcNk5yAbJe9Aqzg5w,7856
|
|
@@ -107,9 +107,9 @@ osiris_utils/postprocessing/postprocess.py,sha256=HWxkioPw3qJkialhYntkm5WG4o1xVf
|
|
|
107
107
|
osiris_utils/postprocessing/pressure_correction.py,sha256=_QxejZdLotazJl5wOFurpsVbbUDS1DFL7-MIQta0O3c,6042
|
|
108
108
|
osiris_utils/vis/__init__.py,sha256=Vr0o8wtRFtPOJdSK5cRIa_bDvbylAe2sHTk8c7qO_tM,51
|
|
109
109
|
osiris_utils/vis/plot3d.py,sha256=MYRlc_T6rY7WpwZdEAlorhOMu9FbVw2-iOqjXGE7rrc,4694
|
|
110
|
-
osiris_utils-1.2.
|
|
111
|
-
osiris_utils-1.2.
|
|
112
|
-
osiris_utils-1.2.
|
|
113
|
-
osiris_utils-1.2.
|
|
114
|
-
osiris_utils-1.2.
|
|
115
|
-
osiris_utils-1.2.
|
|
110
|
+
osiris_utils-1.2.4.dist-info/licenses/LICENSE.txt,sha256=z1lVzLA_QsfcnLffhfWMrFw5cR_nuwpvbOGCOFUN7iY,1066
|
|
111
|
+
osiris_utils-1.2.4.dist-info/METADATA,sha256=s6O7aRYdlPhbK5ZV3pA1fOkT1lX6FIETEv24Gbgtq20,5582
|
|
112
|
+
osiris_utils-1.2.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
113
|
+
osiris_utils-1.2.4.dist-info/entry_points.txt,sha256=s3WXJWsWF5AWEFhJ8rXscjGttQCOXvViOiNmX45AJjo,49
|
|
114
|
+
osiris_utils-1.2.4.dist-info/top_level.txt,sha256=tSs2XcOs-JtYsqVepo5WVSNcilf6ALHfKyYuPaVZLco,38
|
|
115
|
+
osiris_utils-1.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|