Skip to content

Commit 301c1aa

Browse files
authored
Add files via upload
1 parent 6a03820 commit 301c1aa

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

demos/NAMD/ionFlux/mda/demo.ipynb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@
3939
" dataLabel = \"ion current\",\n",
4040
" mode = 'append'\n",
4141
")\n",
42-
"# Have fixed axis for better visualization\n",
43-
"#plot[\"ax\"].set_xlim(0, 100)\n",
42+
"# fixed y-axis for visualization\n",
4443
"plot[\"ax\"].set_ylim(-25,25)\n",
4544
"\n",
4645
"u = mda.Universe(NAMD_TOPOL, \"imd://10.206.72.141:8888\", buffersize = 1024*1024*1024)\n",
@@ -61,8 +60,8 @@
6160
" # correct for PBC jumps\n",
6261
" deltas[deltas>zdist/2.] -= zdist\n",
6362
" deltas[deltas<-zdist/2.] += zdist\n",
64-
" cd = deltas*charges\n",
65-
" current = np.sum(cd)/zdist/dt*unitConv\n",
63+
" Qd = deltas*charges\n",
64+
" current = np.sum(Qd)/zdist/dt*unitConv\n",
6665
" ionRef = ionPos\n",
6766
" plot['update'](time, current)\n",
6867
" i = i + 1"
@@ -84,8 +83,7 @@
8483
" dataLabels = [\"cation current\", \"anion current\"],\n",
8584
" mode = 'append'\n",
8685
")\n",
87-
"# Have fixed axis for better visualization\n",
88-
"#plot[\"ax\"].set_xlim(0, 100)\n",
86+
"# fixed y-axis for visualization\n",
8987
"plot[\"ax\"].set_ylim(-25,25)\n",
9088
"\n",
9189
"u = mda.Universe(NAMD_TOPOL, \"imd://10.206.72.141:8888\", buffersize = 1024*1024*1024)\n",

0 commit comments

Comments
 (0)