Skip to content

Commit 062a1e7

Browse files
author
Clovis Lambert
committed
kolmo_law: good S2 equation and raise
1 parent f4e900d commit 062a1e7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

fluidsim/base/output/kolmo_law.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def compute(self):
217217

218218
# Compute second-order structure function
219219
val = sum(fft_vi[i] * fft_vi[i].conj() for i in range(3))
220-
S2_k_r = 2 * E_k_mean - 2 * self.sim.oper.ifft(val)
220+
S2_k_r = 4 * E_k_mean - 2 * self.sim.oper.ifft(val)
221221

222222
# If buoyancy field exists, compute J_p
223223
if "b" in keys_state_phys:
@@ -264,6 +264,8 @@ def compute(self):
264264
Jk_r_array[0], Jk_r_array[1], Jk_r_array[2]
265265
)
266266

267+
raise
268+
267269
Jh_k, Jt_k, Jv_k = self.coord_conv.compute_cylindrical_components(
268270
Jk_r_array[0], Jk_r_array[1], Jk_r_array[2]
269271
)

0 commit comments

Comments
 (0)