Skip to content

Commit

Permalink
discard oregonator transient
Browse files Browse the repository at this point in the history
  • Loading branch information
znicolaou committed Jun 2, 2023
1 parent 6ddfaa5 commit 5f224ab
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 86 deletions.

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions examples/17_parameterized_pattern_formation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,11 +1020,13 @@ def generate_oregonator_trajectories():
Nt = X.shape[2] // 5 // 10 * 10
X0 = np.mean(X[:, :, -Nt:], axis=(0, 1, 2))
Z0 = np.mean(Z[:, :, -Nt:], axis=(0, 1, 2))
nt = X.shape[2] // 10 * 10
nt = X[:, :, Nt:].shape[2] // 10 * 10
A = np.mean(
(
((X - X0) / X0 + 1j * (Z - Z0) / Z0)
* np.exp(-1j * 2 * np.pi / 10 * np.arange(X.shape[2]))
((X[:, :, Nt:] - X0) / X0 + 1j * (Z[:, :, Nt:] - Z0) / Z0)
* np.exp(
-1j * 2 * np.pi / 10 * np.arange(X[:, :, Nt:].shape[2])
)
)[:, :, :nt].reshape(n, n, nt // 10, 10),
axis=3,
)
Expand Down

0 comments on commit 5f224ab

Please sign in to comment.