Skip to content

Commit 0184a10

Browse files
committed
Corrected plots
1 parent d352080 commit 0184a10

File tree

7 files changed

+379
-484
lines changed

7 files changed

+379
-484
lines changed

drdmannturb/fluctuation_generation/fluctuation_field_generator.py

+9
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,15 @@ def _normalize_block(
339339
if not np.any(curr_block):
340340
raise ValueError("No fluctuation field has been generated, call the .generate() method first.")
341341

342+
if windprofiletype not in ["LOG", "PL"]:
343+
raise ValueError('windprofiletype must be either "LOG" or "PL"')
344+
345+
if any(param <= 0 for param in [zref, uref, z0]):
346+
raise ValueError("zref, uref, and z0 must all be positive")
347+
348+
if windprofiletype == "PL" and plexp is None:
349+
raise ValueError("Power law exponent (plexp) is required when using power law profile")
350+
342351
sd = np.sqrt(np.mean(curr_block**2))
343352
curr_block /= sd
344353

examples-unrendered/logic.md

-1
This file was deleted.

0 commit comments

Comments
 (0)