timedomainresonace/timedomain.ipynb

58 lines
1.2 KiB
Plaintext
Raw Normal View History

{
"metadata": {
"name": "",
2015-02-22 10:36:23 +00:00
"signature": "sha256:6cbbbd8e5e8262619c7495c93758f9e0e660ffd345f9e5bb3915bf21352002f6"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
2015-02-22 10:36:23 +00:00
"from os import system\n",
"system('cmake . && make')\n",
"%run -i run.py"
],
"language": "python",
"metadata": {},
2015-02-22 09:19:27 +00:00
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [
2015-02-22 10:36:23 +00:00
"uarr=load('udata.npy')\n",
"\n",
"uleft=zeros(uarr.shape[0],dtype=float)\n",
"for i in range(uarr.shape[0]):\n",
" uleft[i]=uarr[i][0]\n",
"plot(uleft)"
],
"language": "python",
"metadata": {},
2015-02-22 09:19:27 +00:00
"outputs": []
},
{
"cell_type": "code",
"collapsed": false,
"input": [
2015-02-22 10:36:23 +00:00
"parr=load('pdata.npy')\n",
"\n",
"pend=zeros(parr.shape[0],dtype=float)\n",
"for i in range(parr.shape[0]):\n",
" pend[i]=parr[i][-1]\n",
"plot(pend)\n",
"show()"
],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}