Skip to content

Commit e439779

Browse files
Merge remote-tracking branch 'origin/main' into dcpm
2 parents 3827242 + 1af4a62 commit e439779

File tree

15 files changed

+638
-886
lines changed

15 files changed

+638
-886
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelingToolkitStandardLibrary"
22
uuid = "16a59e39-deab-5bd0-87e4-056b12336739"
33
authors = ["Chris Rackauckas and Julia Computing"]
4-
version = "1.2.1"
4+
version = "1.4.0"
55

66
[deps]
77
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
The ModelingToolkit Standard Library is standard library of components to model the world and beyond.
88

9+
![](https://user-images.githubusercontent.com/1814174/172000112-3579f5cf-c370-48c2-8047-558fbc46aeb6.png)
10+
911
## Installation
1012

1113
Assuming that you already have Julia correctly installed, it suffices to import
@@ -65,4 +67,4 @@ plot(sol, vars = [capacitor.v,resistor.i],
6567
savefig("plot.png")
6668
```
6769

68-
![](https://user-images.githubusercontent.com/1814174/164912983-c3f73628-0e19-4e42-b085-4f62ba6f23d1.png)
70+
![](https://user-images.githubusercontent.com/1814174/164912983-c3f73628-0e19-4e42-b085-4f62ba6f23d1.png)

docs/make.jl

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ using ModelingToolkitStandardLibrary.Magnetic.FluxTubes
77
using ModelingToolkitStandardLibrary.Electrical
88
using ModelingToolkitStandardLibrary.Thermal
99

10+
include("pages.jl")
11+
1012
makedocs(
1113
sitename="ModelingToolkitStandardLibrary.jl",
1214
authors="Julia Computing",
@@ -24,22 +26,7 @@ makedocs(
2426
format=Documenter.HTML(assets=["assets/favicon.ico"],
2527
canonical="https://mtkstdlib.sciml.ai/stable/"),
2628

27-
pages=[
28-
"ModelingToolkitStandardLibrary.jl: A Standard Library for ModelingToolkit" => "index.md",
29-
30-
"Tutorials" => [
31-
"RC Circuit" => "tutorials/rc_circuit.md",
32-
"Custom Components" => "tutorials/custom_component.md",
33-
],
34-
35-
"API" => [
36-
"Basic Blocks" => "API/blocks.md",
37-
"Electrical Components" => "API/electrical.md",
38-
"Magnetic Components" => "API/magnetic.md",
39-
"Mechanical Components" => "API/mechanical.md",
40-
"Thermal Components" => "API/thermal.md"
41-
],
42-
]
29+
pages=pages
4330
)
4431

4532
deploydocs(

docs/pages.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
pages = [
2+
"ModelingToolkitStandardLibrary.jl: A Standard Library for ModelingToolkit" => "index.md",
3+
4+
"Tutorials" => [
5+
"RC Circuit" => "tutorials/rc_circuit.md",
6+
"Custom Components" => "tutorials/custom_component.md",
7+
],
8+
9+
"API" => [
10+
"Basic Blocks" => "API/blocks.md",
11+
"Electrical Components" => "API/electrical.md",
12+
"Magnetic Components" => "API/magnetic.md",
13+
"Mechanical Components" => "API/mechanical.md",
14+
"Thermal Components" => "API/thermal.md"
15+
],
16+
]

src/Blocks/Blocks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export Abs, Sign, Sqrt, Sin, Cos, Tan, Asin, Acos, Atan, Atan2, Sinh, Cosh, Tanh
1616
export Log, Log10
1717
include("math.jl")
1818

19-
export Constant, Sine, Cosine, ContinuousClock, Ramp, Step, ExpSine
19+
export Constant, Sine, Cosine, ContinuousClock, Ramp, Step, ExpSine, Square, Triangular
2020
include("sources.jl")
2121

2222
export Limiter, DeadZone, SlewRateLimiter

0 commit comments

Comments
 (0)