Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
07d7e2b1
Commit
07d7e2b1
authored
8 years ago
by
Sam Yates
Browse files
Options
Downloads
Patches
Plain Diff
Use correct routine in numeric_rallpack1.jl x0.3
parent
8dbdde31
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
validation/ref/numeric/numeric_rallpack1.jl
+7
-2
7 additions, 2 deletions
validation/ref/numeric/numeric_rallpack1.jl
with
7 additions
and
2 deletions
validation/ref/numeric/numeric_rallpack1.jl
+
7
−
2
View file @
07d7e2b1
...
...
@@ -6,8 +6,12 @@ using JSON
using
SIUnits
.
ShortUnits
using
PassiveCable
# This should run the same effective model
# as rallpack1, but with differing
# electrical parameters (see below).
function
run_cable
(
x_prop
,
ts
)
#
p
hysical properties
#
P
hysical properties
:
# f is a fudge factor. rM needs to be the same
# the same as in nestmc, where we cannot yet set
...
...
@@ -40,6 +44,7 @@ end
function
run_rallpack1
(
x_prop
,
ts
)
return
[
rallpack1
(
0.001
*
x_prop
,
t
/
s
)
*
V
for
t
in
ts
]
end
# Generate traces at x=0, x=0.3L, x=L
ts
=
collect
(
0
s
:
0.025
ms
:
250
ms
)
...
...
@@ -51,7 +56,7 @@ trace = Dict(
:
data
=>
Dict
(
:
time
=>
map
(
t
->
t
/
ms
,
ts
),
symbol
(
"cable.x0.0"
)
=>
map
(
v
->
v
/
mV
,
run_cable
(
0
,
ts
)),
symbol
(
"cable.x0.3"
)
=>
map
(
v
->
v
/
mV
,
run_
rallpack1
(
0.3
,
ts
)),
symbol
(
"cable.x0.3"
)
=>
map
(
v
->
v
/
mV
,
run_
cable
(
0.3
,
ts
)),
symbol
(
"cable.x1.0"
)
=>
map
(
v
->
v
/
mV
,
run_cable
(
1.0
,
ts
))
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment