Skip to content

Commit fefa8d5

Browse files
committed
Update some settings to get outputs
1 parent a7f7135 commit fefa8d5

File tree

1 file changed

+29
-15
lines changed

1 file changed

+29
-15
lines changed

openmm_md/plain_md.ipynb

+29-15
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"id": "7266db2c-37e5-419a-9015-929ea1635d98",
1414
"metadata": {},
1515
"source": [
16-
"In this notebook we run an MD simulation of benzene bound to T4-lysozyme L99A.",
17-
"![image](assets/t4lyso.png)"
16+
"In this notebook we run an MD simulation of benzene bound to T4-lysozyme L99A.![image](assets/t4lyso.png)"
1817
]
1918
},
2019
{
@@ -147,7 +146,8 @@
147146
"settings = PlainMDProtocol.default_settings()\n",
148147
"settings.simulation_settings.equilibration_length_nvt = 0.01 * unit.nanosecond # setting the nvt equilibration length to 10 ps\n",
149148
"settings.simulation_settings.equilibration_length = 0.01 * unit.nanosecond # setting the npt equilibration length to 10 ps\n",
150-
"settings.simulation_settings.production_length = 0.01 * unit.nanosecond # setting the npt production length to 10 ps\n",
149+
"settings.simulation_settings.production_length = 0.02 * unit.nanosecond # setting the npt production length to 20 ps\n",
150+
"settings.output_settings.checkpoint_interval = 0.02 * unit.nanosecond # setting the checkpoint interval to 20 ps\n",
151151
"settings.engine_settings.compute_platform = 'CPU' # running the simulation on the cpu"
152152
]
153153
},
@@ -161,7 +161,7 @@
161161
"name": "stdout",
162162
"output_type": "stream",
163163
"text": [
164-
"{'engine_settings': {'compute_platform': 'CPU'},\n",
164+
"{'engine_settings': {'compute_platform': 'CPU', 'gpu_device_index': None},\n",
165165
" 'forcefield_settings': {'constraints': 'hbonds',\n",
166166
" 'forcefields': ['amber/ff14SB.xml',\n",
167167
" 'amber/tip3p_standard.xml',\n",
@@ -171,15 +171,15 @@
171171
" 'nonbonded_cutoff': <Quantity(1.0, 'nanometer')>,\n",
172172
" 'nonbonded_method': 'PME',\n",
173173
" 'rigid_water': True,\n",
174-
" 'small_molecule_forcefield': 'openff-2.0.0'},\n",
175-
" 'integrator_settings': {'barostat_frequency': <Quantity(25, 'timestep')>,\n",
174+
" 'small_molecule_forcefield': 'openff-2.1.1'},\n",
175+
" 'integrator_settings': {'barostat_frequency': <Quantity(25.0, 'timestep')>,\n",
176176
" 'constraint_tolerance': 1e-06,\n",
177177
" 'langevin_collision_rate': <Quantity(1.0, '1 / picosecond')>,\n",
178178
" 'n_restart_attempts': 20,\n",
179179
" 'reassign_velocities': False,\n",
180180
" 'remove_com': False,\n",
181-
" 'timestep': <Quantity(4, 'femtosecond')>},\n",
182-
" 'output_settings': {'checkpoint_interval': <Quantity(1, 'picosecond')>,\n",
181+
" 'timestep': <Quantity(4.0, 'femtosecond')>},\n",
182+
" 'output_settings': {'checkpoint_interval': <Quantity(20.0, 'picosecond')>,\n",
183183
" 'checkpoint_storage_filename': 'checkpoint.chk',\n",
184184
" 'equil_npt_structure': 'equil_npt.pdb',\n",
185185
" 'equil_nvt_structure': 'equil_nvt.pdb',\n",
@@ -189,7 +189,7 @@
189189
" 'output_indices': 'not water',\n",
190190
" 'preminimized_structure': 'system.pdb',\n",
191191
" 'production_trajectory_filename': 'simulation.xtc',\n",
192-
" 'trajectory_write_interval': <Quantity(20, 'picosecond')>},\n",
192+
" 'trajectory_write_interval': <Quantity(20.0, 'picosecond')>},\n",
193193
" 'partial_charge_settings': {'nagl_model': None,\n",
194194
" 'number_of_conformers': None,\n",
195195
" 'off_toolkit_backend': 'ambertools',\n",
@@ -198,8 +198,12 @@
198198
" 'simulation_settings': {'equilibration_length': <Quantity(0.01, 'nanosecond')>,\n",
199199
" 'equilibration_length_nvt': <Quantity(0.01, 'nanosecond')>,\n",
200200
" 'minimization_steps': 5000,\n",
201-
" 'production_length': <Quantity(0.01, 'nanosecond')>},\n",
202-
" 'solvation_settings': {'solvent_model': 'tip3p',\n",
201+
" 'production_length': <Quantity(0.02, 'nanosecond')>},\n",
202+
" 'solvation_settings': {'box_shape': 'cube',\n",
203+
" 'box_size': None,\n",
204+
" 'box_vectors': None,\n",
205+
" 'number_of_solvent_molecules': None,\n",
206+
" 'solvent_model': 'tip3p',\n",
203207
" 'solvent_padding': <Quantity(1.2, 'nanometer')>},\n",
204208
" 'thermo_settings': {'ph': None,\n",
205209
" 'pressure': <Quantity(0.986923267, 'standard_atmosphere')>,\n",
@@ -286,7 +290,7 @@
286290
},
287291
{
288292
"cell_type": "code",
289-
"execution_count": 7,
293+
"execution_count": 6,
290294
"id": "7689c7ba-39a2-49ea-b82b-e3b198354c5b",
291295
"metadata": {},
292296
"outputs": [],
@@ -325,7 +329,7 @@
325329
},
326330
{
327331
"cell_type": "code",
328-
"execution_count": null,
332+
"execution_count": 7,
329333
"id": "544d037d-3a53-4390-91b8-3104c00694f0",
330334
"metadata": {
331335
"editable": true,
@@ -334,7 +338,17 @@
334338
},
335339
"tags": []
336340
},
337-
"outputs": [],
341+
"outputs": [
342+
{
343+
"name": "stderr",
344+
"output_type": "stream",
345+
"text": [
346+
"/Users/hannahbaumann/miniforge3/envs/openfe_dev/lib/python3.12/site-packages/openfe/protocols/openmm_utils/omm_compute.py:76: UserWarning: Non-CUDA platform selected: CPU, this may significantly impact simulation performance\n",
347+
" warnings.warn(wmsg)\n",
348+
"WARNING:root:Non-CUDA platform selected: CPU, this may significantly impact simulation performance\n"
349+
]
350+
}
351+
],
338352
"source": [
339353
"import gufe\n",
340354
"import pathlib\n",
@@ -407,7 +421,7 @@
407421
"name": "python",
408422
"nbconvert_exporter": "python",
409423
"pygments_lexer": "ipython3",
410-
"version": "3.10.13"
424+
"version": "3.12.8"
411425
},
412426
"widgets": {
413427
"application/vnd.jupyter.widget-state+json": {

0 commit comments

Comments
 (0)