forked from djuber/SciSmalltalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
337 additions
and
7 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
29 changes: 29 additions & 0 deletions
29
ConfigurationOfSciSmalltalk.package/ConfigurationOfSciSmalltalk.class/methodProperties.json
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,29 @@ | ||
{ | ||
"class" : { | ||
"DevelopmentSupport" : "DanielUber 5/20/2012 14:47:13.668", | ||
"baseConfigurationClassIfAbsent:" : "DanielUber 5/20/2012 14:47:13.668", | ||
"createNewDevelopmentVersion" : "DanielUber 6/6/2012 11:39", | ||
"ensureMetacello" : "DanielUber 5/20/2012 14:47:13.668", | ||
"ensureMetacelloBaseConfiguration" : "DanielUber 5/20/2012 14:47:13.668", | ||
"isMetacelloConfig" : "DanielUber 5/20/2012 14:47:13.668", | ||
"load" : "DanielUber 5/20/2012 14:47:13.668", | ||
"loadBleedingEdge" : "DanielUber 5/20/2012 14:47:13.668", | ||
"loadDevelopment" : "DanielUber 5/20/2012 14:47:13.668", | ||
"project" : "DanielUber 5/20/2012 14:47:13.668", | ||
"releaseDevelopmentVersion:" : "DanielUber 6/6/2012 11:39", | ||
"saveConfiguration:" : "DanielUber 6/6/2012 11:39", | ||
"saveModifiedPackagesAndConfiguration:" : "DanielUber 6/6/2012 11:40", | ||
"updateToLatestPackageVersions:" : "DanielUber 6/6/2012 11:40", | ||
"validate" : "DanielUber 5/20/2012 14:47:13.668" }, | ||
"instance" : { | ||
"baseline100:" : "DanielUber 5/20/2012 14:47:13.668", | ||
"baseline102:" : "DanielUber 6/6/2012 10:59", | ||
"bleedingEdge:" : "DanielUber 6/6/2012 10:46", | ||
"development:" : "DanielUber 6/6/2012 12:00", | ||
"project" : "DanielUber 5/20/2012 14:47:13.668", | ||
"stable:" : "DanielUber 6/6/2012 11:49", | ||
"version100:" : "DanielUber 5/20/2012 14:47:13.668", | ||
"version101:" : "DanielUber 5/20/2012 14:47:13.668", | ||
"version102:" : "DanielUber 6/6/2012 10:40", | ||
"version103:" : "DanielUber 6/6/2012 11:49", | ||
"version203:" : "DanielUber 7/20/2012 13:04" } } |
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
Empty file.
6 changes: 6 additions & 0 deletions
6
Math-ODE.package/ButcherTableauStepper.class/class/eulerStepper.st
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,6 @@ | ||
instance creation | ||
eulerStepper | ||
| a b | | ||
a := DhbMatrix rows: #((0)). | ||
b := #(1). | ||
^ self stageWeights: b stageCoefficients: a. |
6 changes: 6 additions & 0 deletions
6
Math-ODE.package/ButcherTableauStepper.class/class/kuttaThreeEighthsStepper.st
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,6 @@ | ||
instance creation | ||
kuttaThreeEighthsStepper | ||
| a b | | ||
a := DhbMatrix rows: #((0 0 0 0) ((1 / 3) 0 0 0) ((-1 / 3 ) 1 0 0) (0 1 -1 1)). | ||
b := #((1 / 8) (3 / 8) (3 / 8) (1 / 8)). | ||
^ self stageWeights: b stageCoefficients: a. |
6 changes: 6 additions & 0 deletions
6
Math-ODE.package/ButcherTableauStepper.class/class/rungeKuttaStepper.st
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,6 @@ | ||
instance creation | ||
rungeKuttaStepper | ||
| a b | | ||
a := DhbMatrix rows: #((0 0 0 0) (0.5 0 0 0) (0 0.5 0 0) (0 0 1 0)). | ||
b := #((1 / 6) (1 / 3) (1 / 3) (1 / 6)). | ||
^ self stageWeights: b stageCoefficients: a. |
6 changes: 6 additions & 0 deletions
6
Math-ODE.package/ButcherTableauStepper.class/class/rungeStepper.st
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,6 @@ | ||
instance creation | ||
rungeStepper | ||
| a b | | ||
a := DhbMatrix rows: #((0 0) (0.5 0)). | ||
b := #(0 1). | ||
^ self stageWeights: b stageCoefficients: a. |
14 changes: 14 additions & 0 deletions
14
Math-ODE.package/ButcherTableauStepper.class/class/stageWeights.stageCoefficients..st
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,14 @@ | ||
instance creation | ||
stageWeights: anArray stageCoefficients: aMatrix | ||
| c | | ||
"stageWeights is the array b, stageCoefficients is the lower triangular matrix A" | ||
self assert: [anArray sum = 1]. | ||
"we can calculate the stage increments from the coefficient matrix" | ||
c := Array new: anArray size. | ||
(1 to: c size) do: [:i | | ||
c at: i put: ((aMatrix rowAt: i) sum)]. | ||
|
||
^ self new stageIncrements: c; | ||
stageCoefficients: aMatrix; | ||
stageWeights: anArray; | ||
yourself. |
20 changes: 20 additions & 0 deletions
20
Math-ODE.package/ButcherTableauStepper.class/instance/doStep.stepSize..st
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,20 @@ | ||
as yet unclassified | ||
doStep: aStateTime stepSize: dt | ||
"not complete" | ||
| stages stageCount stateDifference| | ||
self isInitialized. | ||
stageCount := stageIncrements size. | ||
stages := Array new: stageCount. | ||
(1 to: stageCount) do: | ||
[:i | | sum | | ||
sum ifNil: [sum := 0]. | ||
(1 to: i - 1) do: | ||
[:j | sum := sum + ((stages at: j ) * stageCoefficients at: i at: j)]. | ||
stages at: i put: | ||
(system | ||
x: aStateTime state + (dt * sum) | ||
t: aStateTime time + (dt * stageIncrements at: i) )]. | ||
stateDifference := (dt * ((1 to: stageCount) do: [:i | | sum | | ||
sum ifNil: [sum := 0]. | ||
sum := sum + (( stageWeights at: i) * (stages at: i)) ])). | ||
^ aStateTime state + stateDifference. |
3 changes: 3 additions & 0 deletions
3
Math-ODE.package/ButcherTableauStepper.class/instance/doStep.time.stepSize..st
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,3 @@ | ||
as yet unclassified | ||
doStep: aState time: aTime stepSize: dt | ||
^ self doStep: (StateTime state: aState time: aTime) stepSize: dt. |
7 changes: 7 additions & 0 deletions
7
Math-ODE.package/ButcherTableauStepper.class/instance/isInitialized.st
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,7 @@ | ||
as yet unclassified | ||
isInitialized | ||
self assert: [stageCoefficients notNil]. | ||
self assert: [stageIncrements notNil]. | ||
self assert: [stageWeights notNil]. | ||
self assert: [system notNil]. | ||
^ self |
3 changes: 3 additions & 0 deletions
3
Math-ODE.package/ButcherTableauStepper.class/instance/stageCoefficients..st
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,3 @@ | ||
accessing | ||
stageCoefficients: aMatrix | ||
stageCoefficients := aMatrix |
3 changes: 3 additions & 0 deletions
3
Math-ODE.package/ButcherTableauStepper.class/instance/stageCoefficients.st
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,3 @@ | ||
accessing | ||
stageCoefficients | ||
^ stageCoefficients |
4 changes: 4 additions & 0 deletions
4
Math-ODE.package/ButcherTableauStepper.class/instance/stageIncrements..st
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,4 @@ | ||
accessing | ||
stageIncrements: anArray | ||
stageIncrements := anArray | ||
|
3 changes: 3 additions & 0 deletions
3
Math-ODE.package/ButcherTableauStepper.class/instance/stageIncrements.st
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,3 @@ | ||
accessing | ||
stageIncrements | ||
^ stageIncrements |
3 changes: 3 additions & 0 deletions
3
Math-ODE.package/ButcherTableauStepper.class/instance/stageWeights..st
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,3 @@ | ||
accessing | ||
stageWeights: anArray | ||
stageWeights := anArray |
3 changes: 3 additions & 0 deletions
3
Math-ODE.package/ButcherTableauStepper.class/instance/stageWeights.st
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,3 @@ | ||
accessing | ||
stageWeights | ||
^ stageWeights |
17 changes: 17 additions & 0 deletions
17
Math-ODE.package/ButcherTableauStepper.class/methodProperties.json
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,17 @@ | ||
{ | ||
"class" : { | ||
"eulerStepper" : "DanielUber 7/18/2012 09:20", | ||
"kuttaThreeEighthsStepper" : "DanielUber 7/18/2012 09:23", | ||
"rungeKuttaStepper" : "DanielUber 7/18/2012 09:22", | ||
"rungeStepper" : "DanielUber 7/18/2012 09:20", | ||
"stageWeights:stageCoefficients:" : "DanielUber 7/18/2012 08:58" }, | ||
"instance" : { | ||
"doStep:stepSize:" : "DanielUber 7/18/2012 09:08", | ||
"doStep:time:stepSize:" : "DanielUber 7/18/2012 09:16", | ||
"isInitialized" : "DanielUber 7/18/2012 09:07", | ||
"stageCoefficients" : "DanielUber 7/18/2012 08:42", | ||
"stageCoefficients:" : "DanielUber 7/18/2012 08:42", | ||
"stageIncrements" : "DanielUber 7/18/2012 08:42", | ||
"stageIncrements:" : "DanielUber 7/18/2012 08:42", | ||
"stageWeights" : "DanielUber 7/18/2012 08:42", | ||
"stageWeights:" : "DanielUber 7/18/2012 08:42" } } |
18 changes: 18 additions & 0 deletions
18
Math-ODE.package/ButcherTableauStepper.class/properties.json
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,18 @@ | ||
{ | ||
"category" : "Math-ODE", | ||
"classinstvars" : [ | ||
], | ||
"classtraitcomposition" : "{}", | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"stageIncrements", | ||
"stageCoefficients", | ||
"stageWeights" ], | ||
"name" : "ButcherTableauStepper", | ||
"pools" : [ | ||
], | ||
"super" : "Stepper", | ||
"traitcomposition" : "{}", | ||
"type" : "normal" } |
5 changes: 5 additions & 0 deletions
5
Math-ODE.package/ControlledRungeKuttaStepper.class/methodProperties.json
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,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
} } |
5 changes: 5 additions & 0 deletions
5
Math-ODE.package/ControlledStepper.class/methodProperties.json
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,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
} } |
5 changes: 5 additions & 0 deletions
5
Math-ODE.package/DenseOutputStepper.class/methodProperties.json
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,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
} } |
5 changes: 5 additions & 0 deletions
5
Math-ODE.package/ExplicitAnnouncer.class/methodProperties.json
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,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
} } |
7 changes: 7 additions & 0 deletions
7
Math-ODE.package/ExplicitSolverAnnouncement.class/methodProperties.json
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,7 @@ | ||
{ | ||
"class" : { | ||
"x:t:" : "DanielUber 6/8/2012 08:14" }, | ||
"instance" : { | ||
"t" : "DanielUber 6/8/2012 08:14", | ||
"x" : "DanielUber 6/8/2012 08:14", | ||
"x:t:" : "DanielUber 6/8/2012 08:13" } } |
13 changes: 13 additions & 0 deletions
13
Math-ODE.package/ExplicitSolverSubscriber.class/methodProperties.json
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,13 @@ | ||
{ | ||
"class" : { | ||
"forAnnouncer:" : "DanielUber 6/8/2012 11:26", | ||
"forSolver:" : "DanielUber 6/8/2012 11:26" }, | ||
"instance" : { | ||
"announcers" : "DanielUber 6/8/2012 11:25", | ||
"block" : "DanielUber 6/8/2012 11:25", | ||
"block:" : "DanielUber 6/8/2012 11:25", | ||
"forAnnouncer:" : "DanielUber 6/8/2012 11:25", | ||
"initialize" : "DanielUber 6/8/2012 11:25", | ||
"release" : "DanielUber 6/8/2012 11:25", | ||
"unsubscribe" : "DanielUber 6/8/2012 11:25", | ||
"unsubscribe:" : "DanielUber 6/8/2012 11:25" } } |
Oops, something went wrong.