.. _sphx_glr_examples_intermediate:
Intermediate Examples
=====================
These examples assume familiarity with the basic tier and introduce
the storage layer, performance monitoring, and more complex pipeline
patterns.
**01 — Multi-Stage Pipeline**: FusedStage composition, LoggingHook CSV output,
step-budget migration, fused hooks for global status monitoring.
**02 — Trajectory I/O**: Writing trajectories to Zarr, reading back with
DataLoader, round-trip validation.
**03 — NPT MD**: Pressure-controlled dynamics with the MTK barostat,
LJ stress computation, cell fluctuation monitoring.
**04 — Inflight Batching**: SizeAwareSampler, Mode 2 FusedStage run (batch=None),
system_id tracking, ConvergedSnapshotHook collecting results.
**05 — Safety and Monitoring**: NaNDetectorHook, MaxForceClampHook,
EnergyDriftMonitorHook, ProfilerHook — defensive MD patterns.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/intermediate/images/thumb/sphx_glr_01_multistage_pipeline_thumb.png
:alt:
:doc:`/examples/intermediate/01_multistage_pipeline`
.. raw:: html
Multi-Stage Dynamics Pipelines with FusedStage
.. raw:: html
.. only:: html
.. image:: /examples/intermediate/images/thumb/sphx_glr_02_trajectory_zarr_io_thumb.png
:alt:
:doc:`/examples/intermediate/02_trajectory_zarr_io`
.. raw:: html
Writing and Replaying Trajectories with Zarr
.. raw:: html
.. only:: html
.. image:: /examples/intermediate/images/thumb/sphx_glr_03_npt_variable_cell_thumb.png
:alt:
:doc:`/examples/intermediate/03_npt_variable_cell`
.. raw:: html
Pressure-Controlled (NPT) Molecular Dynamics
.. raw:: html
.. only:: html
.. image:: /examples/intermediate/images/thumb/sphx_glr_04_inflight_batching_thumb.png
:alt:
:doc:`/examples/intermediate/04_inflight_batching`
.. raw:: html
Processing Large Datasets with Inflight Batching
.. raw:: html
.. only:: html
.. image:: /examples/intermediate/images/thumb/sphx_glr_05_safety_and_monitoring_thumb.png
:alt:
:doc:`/examples/intermediate/05_safety_and_monitoring`
.. raw:: html
Defensive MD: Safety Hooks and Performance Monitoring
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/examples/intermediate/01_multistage_pipeline
/examples/intermediate/02_trajectory_zarr_io
/examples/intermediate/03_npt_variable_cell
/examples/intermediate/04_inflight_batching
/examples/intermediate/05_safety_and_monitoring