Skip to content

Commit 751c35c

Browse files
committed
add docs
1 parent f9abb18 commit 751c35c

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

docs/src/systems/ODESystem.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ ODESystem
1313
- `get_ps(sys)` or `parameters(sys)`: The parameters of the ODE.
1414
- `get_iv(sys)`: The independent variable of the ODE.
1515
- `get_u0_p(sys, u0map, parammap)` Numeric arrays for the initial condition and parameters given `var => value` maps.
16-
- `continuous_events(sys)`: The set of continuous events in the ODE
17-
- `discrete_events(sys)`: The set of discrete events in the ODE
16+
- `continuous_events(sys)`: The set of continuous events in the ODE.
17+
- `discrete_events(sys)`: The set of discrete events in the ODE.
18+
- `alg_equations(sys)`: The algebraic equations (i.e. that does not contain a differential) that defines the ODE.
19+
- `get_alg_eqs(sys)`: The algebraic equations (i.e. that does not contain a differential) that defines the ODE. Only returns equations of the current-level system.
20+
- `diff_equations(sys)`: The differential equations (i.e. that contain a differential) that defines the ODE.
21+
- `get_diff_eqs(sys)`: The differential equations (i.e. that contain a differential) that defines the ODE. Only returns equations of the current-level system.
22+
- `has_alg_equations(sys)`: Returns `true` if the ODE contains any algebraic equations (i.e. that does not contain a differential).
23+
- `has_alg_eqs(sys)`: Returns `true` if the ODE contains any algebraic equations (i.e. that does not contain a differential). Only considers the current-level system.
24+
- `has_diff_equations(sys)`: Returns `true` if the ODE contains any differential equations (i.e. that does contain a differential).
25+
- `has_diff_eqs(sys)`: Returns `true` if the ODE contains any differential equations (i.e. that does contain a differential). Only considers the current-level system.
1826

1927
## Transformations
2028

docs/src/systems/SDESystem.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@ sde = SDESystem(ode, noiseeqs)
1919
- `get_unknowns(sys)` or `unknowns(sys)`: The set of unknowns in the SDE.
2020
- `get_ps(sys)` or `parameters(sys)`: The parameters of the SDE.
2121
- `get_iv(sys)`: The independent variable of the SDE.
22-
- `continuous_events(sys)`: The set of continuous events in the SDE
23-
- `discrete_events(sys)`: The set of discrete events in the SDE
22+
- `continuous_events(sys)`: The set of continuous events in the SDE.
23+
- `discrete_events(sys)`: The set of discrete events in the SDE.
24+
- `alg_equations(sys)`: The algebraic equations (i.e. that does not contain a differential) that defines the ODE.
25+
- `get_alg_eqs(sys)`: The algebraic equations (i.e. that does not contain a differential) that defines the ODE. Only returns equations of the current-level system.
26+
- `diff_equations(sys)`: The differential equations (i.e. that contain a differential) that defines the ODE.
27+
- `get_diff_eqs(sys)`: The differential equations (i.e. that contain a differential) that defines the ODE. Only returns equations of the current-level system.
28+
- `has_alg_equations(sys)`: Returns `true` if the ODE contains any algebraic equations (i.e. that does not contain a differential).
29+
- `has_alg_eqs(sys)`: Returns `true` if the ODE contains any algebraic equations (i.e. that does not contain a differential). Only considers the current-level system.
30+
- `has_diff_equations(sys)`: Returns `true` if the ODE contains any differential equations (i.e. that does contain a differential).
31+
- `has_diff_eqs(sys)`: Returns `true` if the ODE contains any differential equations (i.e. that does contain a differential). Only considers the current-level system.
2432

2533
## Transformations
2634

test/equation_type_accessors.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Fetch packages.
22
using ModelingToolkit
33
import ModelingToolkit: get_systems, namespace_equations
4+
import ModelingToolkit: is_alg_equation, is_diff_equation
45
import ModelingToolkit: t_nounits as t, D_nounits as D, wrap, get_eqs
56

67
# Creates equations.

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ end
6969
@safetestset "Generate Custom Function Test" include("generate_custom_function.jl")
7070
@safetestset "Initial Values Test" include("initial_values.jl")
7171
@safetestset "Discrete System" include("discrete_system.jl")
72-
@safetestset "Equation Type Accessors Test" include("equation_type_accessors.jl")
72+
@safetestset "Equation Type Accessors Test" include("equation_type_accessors.jl")
7373
end
7474
end
7575

0 commit comments

Comments
 (0)