Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwoods2 committed Dec 4, 2024
1 parent fa08b99 commit 81eb5cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ New MDP file options (subject to change as we work with GROMACS developers):
```
IMD-group = <group> ; Use 'System' to send the entire system via IMD (inherited from IMDv2)
IMD-version = <2 | 3> ; Defaults to 2 for backwards compatibility
IMD-nst = <nst> ; Number of integration steps between simulation frames communicated via IMD, defaults to
IMD-nst = <nst> ; Number of integration steps between simulation frames communicated via IMD, defaults to 100
IMD-time = <yes | no> ; Whether to send time and step information via IMD, defaults to 'no'
IMD-box = <yes | no> ; Whether to send box dimension information via IMD, defaults to 'no'
IMD-coords = <yes | no> ; Whether to send atomic coordinate information via IMD, defaults to 'no'
Expand Down
13 changes: 11 additions & 2 deletions streaming-101/imd-mda/imd-mda.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,21 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 12,
"metadata": {
"slideshow": {
"slide_type": "fragment"
}
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The position of the first atom is: [43.99073 29.392868 30.756462]\r"
]
}
],
"source": [
"import imdclient\n",
"\n",
Expand All @@ -186,6 +194,7 @@
" while True:\n",
" try:\n",
" frame = client.get_imdframe()\n",
" print(f\"The position of the first atom is: {frame.positions[0]}\", end=\"\\r\")\n",
" except EOFError:\n",
" break"
]
Expand Down

0 comments on commit 81eb5cf

Please sign in to comment.