Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
oameye committed Nov 3, 2024
1 parent 4d14062 commit 7e4d5ee
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions docs/src/examples/parametric_via_three_wave_mixing.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ plot(result; y="v1")
varied = (ω => range(0.4, 0.6, 100), F => range(1e-6, 0.01, 50))
fixed = (α => 1.0, β => 2.0, ω0 => 1.0, γ => 0.01)
result = get_steady_states(
harmonic_eq2, varied, fixed; threading=true, method=:total_degree
)
method = TotalDegree()
result = get_steady_states(harmonic_eq2, method, varied, fixed)
plot_phase_diagram(result; class="stable")
````

Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/parametron.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ varied = ω => range(0.9, 1.1, 100)
result = get_steady_states(harmonic_eq, varied, fixed)
````

In `get_steady_states`, the default value for the keyword `method=:random_warmup` initiates the homotopy in a generalised version of the harmonic equations, where parameters become random complex numbers. A parameter homotopy then follows to each of the frequency values $\omega$ in sweep. This offers speed-up, but requires to be tested in each scenario againts the method `:total_degree`, which initializes the homotopy in a total degree system (maximum number of roots), but needs to track significantly more homotopy paths and there is slower. The `threading` keyword enables parallel tracking of homotopy paths, and it's set to `false` simply because we are using a single core computer for now.
In `get_steady_states`, the default method `WarmUp()` initiates the homotopy in a generalised version of the harmonic equations, where parameters become random complex numbers. A parameter homotopy then follows to each of the frequency values $\omega$ in sweep. This offers speed-up, but requires to be tested in each scenario againts the method `TotalDegree`, which initializes the homotopy in a total degree system (maximum number of roots), but needs to track significantly more homotopy paths and there is slower.

After solving the system, we can save the full output of the simulation and the model (e.g. symbolic expressions for the harmonic equations) into a file

Expand Down
5 changes: 2 additions & 3 deletions examples/parametric_via_three_wave_mixing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ plot(result; y="v1")
varied ==> range(0.4, 0.6, 100), F => range(1e-6, 0.01, 50))
fixed ==> 1.0, β => 2.0, ω0 => 1.0, γ => 0.01)

result = get_steady_states(
harmonic_eq2, varied, fixed; threading=true, method=:total_degree
)
method = TotalDegree()
result = get_steady_states(harmonic_eq2, method, varied, fixed)
plot_phase_diagram(result; class="stable")
2 changes: 1 addition & 1 deletion examples/parametron.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ varied = ω => range(0.9, 1.1, 100)

result = get_steady_states(harmonic_eq, varied, fixed)

# In `get_steady_states`, the default value for the keyword `method=:random_warmup` initiates the homotopy in a generalised version of the harmonic equations, where parameters become random complex numbers. A parameter homotopy then follows to each of the frequency values $\omega$ in sweep. This offers speed-up, but requires to be tested in each scenario againts the method `:total_degree`, which initializes the homotopy in a total degree system (maximum number of roots), but needs to track significantly more homotopy paths and there is slower. The `threading` keyword enables parallel tracking of homotopy paths, and it's set to `false` simply because we are using a single core computer for now.
# In `get_steady_states`, the default method `WarmUp()` initiates the homotopy in a generalised version of the harmonic equations, where parameters become random complex numbers. A parameter homotopy then follows to each of the frequency values $\omega$ in sweep. This offers speed-up, but requires to be tested in each scenario againts the method `TotalDegree`, which initializes the homotopy in a total degree system (maximum number of roots), but needs to track significantly more homotopy paths and there is slower.

# After solving the system, we can save the full output of the simulation and the model (e.g. symbolic expressions for the harmonic equations) into a file

Expand Down
2 changes: 1 addition & 1 deletion test/limit_cycle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ end
# varied = (ω => range(0.992, 0.995, 2))

# # results
# result = get_limit_cycles(harmonic_eq, varied, fixed, ω_lc; threading=true)
# result = get_limit_cycles(harmonic_eq, varied, fixed, ω_lc)
# end

0 comments on commit 7e4d5ee

Please sign in to comment.