Skip to content

Commit

Permalink
Merge branch 'master' into 3dStream
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmarshall committed Aug 9, 2019
2 parents dd97d6b + cf1963c commit 9c9f276
Show file tree
Hide file tree
Showing 2 changed files with 383 additions and 20 deletions.
96 changes: 96 additions & 0 deletions TestNotebooks/MiscTests/MuMoTtest_1dstream.ipynb
@@ -0,0 +1,96 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import mumot\n",
"\n",
"mumot.about()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"model1 = mumot.parseModel(r\"\"\"\n",
"U -> A : g_1\n",
"A -> U : a_1\n",
"A + U -> A + A : r_1\n",
"\"\"\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"model1.showODEs()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"model2 = model1.substitute('U = N - A')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"modelStreamPlot = model2.stream('A', showFixedPoints = True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 9c9f276

Please sign in to comment.