Skip to content

Commit b36ef70

Browse files
rename to ModelingToolkit
1 parent 0543563 commit b36ef70

12 files changed

+42
-42
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ git:
3030

3131
## uncomment the following lines to override the default test script
3232
#script:
33-
# - julia -e 'Pkg.clone(pwd()); Pkg.build("SciCompDSL"); Pkg.test("SciCompDSL"; coverage=true)'
33+
# - julia -e 'Pkg.clone(pwd()); Pkg.build("ModelingToolkit"); Pkg.test("ModelingToolkit"; coverage=true)'
3434
after_success:
3535
# push coverage results to Coveralls
36-
- julia -e 'cd(Pkg.dir("SciCompDSL")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
36+
- julia -e 'cd(Pkg.dir("ModelingToolkit")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
3737
# push coverage results to Codecov
38-
- julia -e 'cd(Pkg.dir("SciCompDSL")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
38+
- julia -e 'cd(Pkg.dir("ModelingToolkit")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The SciCompDSL.jl package is licensed under the MIT "Expat" License:
1+
The ModelingToolkit.jl package is licensed under the MIT "Expat" License:
22

33
> Copyright (c) 2018: Christopher Rackauckas.
44
>

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# SciCompDSL.jl
1+
# ModelingToolkit.jl
22

3-
[![Build Status](https://travis-ci.org/JuliaDiffEq/SciCompDSL.jl.svg?branch=master)](https://travis-ci.org/JuliaDiffEq/SciCompDSL.jl)
4-
[![Coverage Status](https://coveralls.io/repos/JuliaDiffEq/SciCompDSL.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/JuliaDiffEq/SciCompDSL.jl?branch=master)
5-
[![codecov.io](http://codecov.io/github/JuliaDiffEq/SciCompDSL.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaDiffEq/SciCompDSL.jl?branch=master)
3+
[![Build Status](https://travis-ci.org/JuliaDiffEq/ModelingToolkit.jl.svg?branch=master)](https://travis-ci.org/JuliaDiffEq/ModelingToolkit.jl)
4+
[![Coverage Status](https://coveralls.io/repos/JuliaDiffEq/ModelingToolkit.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/JuliaDiffEq/ModelingToolkit.jl?branch=master)
5+
[![codecov.io](http://codecov.io/github/JuliaDiffEq/ModelingToolkit.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaDiffEq/ModelingToolkit.jl?branch=master)
66

7-
SciCompDSL.jl is an intermediate representation (IR) of computational graphs
7+
ModelingToolkit.jl is an intermediate representation (IR) of computational graphs
88
for scientific computing problems. Its purpose is to be a common target for
99
modeling DSLs in order to allow for a common platform for model inspection and
1010
transformation. It uses a tagged variable IR in order to allow specification of
@@ -25,7 +25,7 @@ system, we need to differentiate between our dependent variables, independent
2525
variables, and parameters. Therefore we label them as follows:
2626

2727
```julia
28-
using SciCompDSL
28+
using ModelingToolkit
2929

3030
# Define some variables
3131
@IVar t
@@ -57,7 +57,7 @@ This can then generate the function. For example, we can see the
5757
generated code via:
5858

5959
```julia
60-
SciCompDSL.generate_ode_function(de)
60+
ModelingToolkit.generate_ode_function(de)
6161

6262
## Which returns:
6363
:((du, u, p, t)->begin
@@ -100,14 +100,14 @@ eqs = [0 ~ σ*(y-x),
100100
0 ~ x*-z)-y,
101101
0 ~ x*y - β*z]
102102
ns = NonlinearSystem(eqs)
103-
nlsys_func = SciCompDSL.generate_nlsys_function(ns)
103+
nlsys_func = ModelingToolkit.generate_nlsys_function(ns)
104104
```
105105

106106
which generates:
107107

108108
```julia
109-
(du, u, p)->begin # C:\Users\Chris\.julia\v0.6\SciCompDSL\src\systems.jl, line 51:
110-
begin # C:\Users\Chris\.julia\v0.6\SciCompDSL\src\utils.jl, line 2:
109+
(du, u, p)->begin # C:\Users\Chris\.julia\v0.6\ModelingToolkit\src\systems.jl, line 51:
110+
begin # C:\Users\Chris\.julia\v0.6\ModelingToolkit\src\utils.jl, line 2:
111111
y = u[1]
112112
x = u[2]
113113
z = u[3]
@@ -131,7 +131,7 @@ f2 = (du,u) -> f(du,u,(10.0,26.0,2.33))
131131

132132
## Core Principles
133133

134-
The core idea behind SciCompDSL.jl is that mathematical equations require
134+
The core idea behind ModelingToolkit.jl is that mathematical equations require
135135
context, and thus any symbolic manipulations and full model specifications
136136
requires the ability to handle such context. When writing DSLs, this fact
137137
comes to light very quickly. Every DSL seems to lower to some intermediate
@@ -255,7 +255,7 @@ to better scale to larger systems. You can define derivatives for your own
255255
function via the dispatch:
256256

257257
```julia
258-
SciCompDSL.Derivative(::typeof(my_function),args,::Type{Val{i}})
258+
ModelingToolkit.Derivative(::typeof(my_function),args,::Type{Val{i}})
259259
```
260260

261261
where `i` means that it's the derivative of the `i`th argument. `args` is the
@@ -265,7 +265,7 @@ You should return an `Operation` for the derivative of your function.
265265
For example, `sin(t)`'s derivative (by `t`) is given by the following:
266266

267267
```julia
268-
SciCompDSL.Derivative(::typeof(sin),args,::Type{Val{1}}) = cos(args[1])
268+
ModelingToolkit.Derivative(::typeof(sin),args,::Type{Val{1}}) = cos(args[1])
269269
```
270270

271271
### Macro-free Usage
@@ -306,14 +306,14 @@ eqs = [a ~ y-x,
306306
0 ~ x*-z)-y,
307307
0 ~ x*y - β*z]
308308
ns = NonlinearSystem(eqs,[x,y,z],[σ,ρ,β])
309-
nlsys_func = SciCompDSL.generate_nlsys_function(ns)
309+
nlsys_func = ModelingToolkit.generate_nlsys_function(ns)
310310
```
311311

312312
expands to:
313313

314314
```julia
315-
:((du, u, p)->begin # C:\Users\Chris\.julia\v0.6\SciCompDSL\src\systems.jl, line 85:
316-
begin # C:\Users\Chris\.julia\v0.6\SciCompDSL\src\utils.jl, line 2:
315+
:((du, u, p)->begin # C:\Users\Chris\.julia\v0.6\ModelingToolkit\src\systems.jl, line 85:
316+
begin # C:\Users\Chris\.julia\v0.6\ModelingToolkit\src\utils.jl, line 2:
317317
x = u[1]
318318
y = u[2]
319319
z = u[3]

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ build_script:
4141
# Need to convert from shallow to complete for Pkg.clone to work
4242
- IF EXIST .git\shallow (git fetch --unshallow)
4343
- C:\projects\julia\bin\julia -e "versioninfo();
44-
Pkg.clone(pwd(), \"SciCompDSL\"); Pkg.build(\"SciCompDSL\")"
44+
Pkg.clone(pwd(), \"ModelingToolkit\"); Pkg.build(\"ModelingToolkit\")"
4545

4646
test_script:
47-
- C:\projects\julia\bin\julia -e "Pkg.test(\"SciCompDSL\")"
47+
- C:\projects\julia\bin\julia -e "Pkg.test(\"ModelingToolkit\")"

src/SciCompDSL.jl renamed to src/ModelingToolkit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module SciCompDSL
1+
module ModelingToolkit
22

33
using DiffEqBase
44
import MacroTools: splitdef, combinedef

test/ambiguity.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using SciCompDSL
1+
using ModelingToolkit
22
using Base.Test
33

44
@IVar t

test/basic_variables_and_operations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using SciCompDSL
1+
using ModelingToolkit
22
using Base.Test
33

44
@IVar t

test/derivatives.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using SciCompDSL
1+
using ModelingToolkit
22
using Base.Test
33

44
# Derivatives
@@ -30,7 +30,7 @@ eqs = [0 ~ σ*(y-x),
3030
0 ~ x*-z)-y,
3131
0 ~ x*y - β*z]
3232
sys = NonlinearSystem(eqs,[x,y,z],[σ,ρ,β])
33-
jac = SciCompDSL.calculate_jacobian(sys)
33+
jac = ModelingToolkit.calculate_jacobian(sys)
3434
@test jac[1,1] == σ*-1
3535
@test jac[1,2] == σ
3636
@test jac[1,3] == 0

test/internal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using SciCompDSL
1+
using ModelingToolkit
22
using Base.Test
33

44
# `Expr`, `Number` -> `Operation`

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using SciCompDSL, Base.Test
1+
using ModelingToolkit, Base.Test
22

33
@testset "Parsing Test" begin include("variable_parsing.jl") end
44
@testset "Basic Variables and Operations" begin include("basic_variables_and_operations.jl") end

0 commit comments

Comments
 (0)