-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixed loading for version changes * ordering revamped to have fixed order * limit cycle unique classification * 2d result test added
- Loading branch information
Showing
10 changed files
with
71 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "HarmonicBalance" | ||
uuid = "e13b9ff6-59c3-11ec-14b1-f3d2cc6c135e" | ||
authors = ["Jan Kosata <[email protected]>", "Javier del Pino <[email protected]>"] | ||
version = "0.6.1" | ||
version = "0.6.2" | ||
|
||
[deps] | ||
BijectiveHilbert = "91e7fc40-53cd-4118-bd19-d7fcd1de2a54" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ using Symbolics | |
using DocStringExtensions | ||
|
||
include("LimitCycles/Hopf.jl") | ||
include("LimitCycles/analysis.jl") | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
|
||
import HarmonicBalance.classify_solutions | ||
|
||
function classify_unique!(res::Result, Δω; class_name="unique") | ||
|
||
# 1st degeneracy: arbitrary sign of Δω | ||
c1 = classify_solutions(res, string(Δω) * ">= 0") | ||
|
||
# 2nd degeneracy: ambiguity in the fixed phase, manifests as the sign of var | ||
var = HarmonicBalance._remove_brackets(get_Hopf_variables(res.problem.eom, Δω)[1]) | ||
c2 = classify_solutions(res, string(var) * ">= 0") | ||
|
||
res.classes[class_name] = map(.*, c1, c2) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.