Skip to content

Commit 200fdc4

Browse files
authored
Merge pull request #9 from ModiaSim/NLESolver
Add nonlinear equation system solver
2 parents c702461 + 4d2e96a commit 200fdc4

File tree

7 files changed

+1321
-7
lines changed

7 files changed

+1321
-7
lines changed

Project.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ version = "0.11.0"
66
[deps]
77
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
88
DiffRules = "b552c78f-8df3-52c6-915a-8e097449b14b"
9+
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
10+
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
11+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
912
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
1013
MonteCarloMeasurements = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
1114
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
15+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1216
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
17+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1318
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
1419

1520
[compat]

docs/make.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ makedocs(
66
authors = "Hilding Elmqvist (Mogram) and Martin Otter (DLR-SR)",
77
format = Documenter.HTML(prettyurls = false),
88
pages = [
9-
"Home" => "index.md",
10-
"Tutorial" => "Tutorial.md",
11-
"Data Structures" => "DataStructures.md",
12-
"Equation Sorting" => "EquationSorting.md",
13-
"Equation Reduction" => "EquationReduction.md",
9+
"Home" => "index.md",
10+
"Tutorial" => "Tutorial.md",
11+
"Data Structures" => "DataStructures.md",
12+
"Equation Sorting" => "EquationSorting.md",
13+
"Equation Reduction" => "EquationReduction.md",
1414
"Transformation to ODE System" => "TransformationToODEs.md",
15+
"Nonlinear Equations" => "NonlinearEquations.md",
1516
]
1617
)

docs/src/NonlinearEquations.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Nonlinear Equations
2+
3+
This section provides functions to **solve nonlinear equations systems**.
4+
5+
6+
## Main Functions
7+
8+
```@meta
9+
CurrentModule = ModiaBase.NonlinearEquations
10+
```
11+
12+
```@docs
13+
solveNonlinearEquations!
14+
```

src/ModiaBase.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Main module of ModiaBase.
33
4-
* Developers: Hilding Elmqvist, Mogram AB, Martin Otter, DLR
4+
* Developers: Hilding Elmqvist, Mogram AB, Martin Otter, DLR
55
* First version: December 2020
66
* License: MIT (expat)
77
@@ -36,4 +36,7 @@ using .Simplify
3636
include("Symbolic.jl")
3737
using .Symbolic
3838

39+
include("NonlinearEquations.jl")
40+
using .NonlinearEquations
41+
3942
end

0 commit comments

Comments
 (0)