simulation-and-hpc
Skill0 starsChanged 3 days agoMITView on GitHub
Run simulations at scale: molecular dynamics setup, trajectory analysis, machine-learned force fields, distributed and GPU execution, and the parallel pattern each workload needs. Use when a simulation must go faster or bigger.
In this repository55 other files it gives its agents.
- advanced-optimizationSkill
- bayesian-inferenceSkill
- bayesian-pinnSkill
- bayesian-ude-workflowSkill
- catalyst-reactionsSkill
- continuum-mechanics-and-rheologySkill
- control-theorySkill
- creating-julia-appSkill
- debugging-toolkitSkill
- differential-equationsSkill
- differentiationSkill
- equation-discoverySkill
- experiment-trackingSkill
- fem-feaSkill
- julia-graph-neural-networksSkill
- julia-languageSkill
- julia-ml-and-dlSkill
- julia-model-deploymentSkill
- julia-paper-implementationSkill
- julia-pro-helpSkill
- julia-pro-modeSkill
- julia-reinforcement-learningSkill
- modeling-toolkitSkill
- neural-pdeSkill
- nonlinear-dynamicsSkill
- numerical-methods-implementationSkill
- package-development-workflowSkill
- performance-tuningSkill
- physical-learning-systemsSkill
- playbook-debugSkill
- playbook-model-validateSkill
- playbook-package-releaseSkill
- playbook-paper-implementSkill
- playbook-perfSkill
- playbook-test-specSkill
- principle-both-sidesSkill
- principle-breakingSkill
- principle-file-is-truthSkill
- principle-gateSkill
- principle-limitsSkill
- principle-loud-failureSkill
- principle-one-stepSkill
- principle-proof-listSkill
- principle-rebuttalSkill
- principle-runtime-surfaceSkill
- principle-three-boundsSkill
- principle-three-clocksSkill
- scientific-visualizationSkill
- sciml-and-diffeqSkill
- setup-julia-proSkill
- signal-processingSkill
- statistical-physicsSkill
- symbolic-mathSkill
- web-development-juliaSkill
- zarr-cloud-arraysSkill
The file
Files
Simulation and HPC
Scaling a simulation is two problems: making the physics setup correct, and making the decomposition match the algorithm. Doing the second first produces fast wrong answers.
| Task | Page |
| MD setup, force fields, ensembles, trajectory analysis, enhanced sampling | advanced-simulations |
Decomposition by algorithm
| Workload | Pattern | What breaks |
| MD with short-range forces | domain decomposition + halo exchange | load imbalance once density varies |
| long-range electrostatics | particle mesh / FFT | the FFT is the scaling limit, not the particles |
| ensemble of independent runs | embarrassingly parallel, one process per run | file system contention, not CPU |
| parameter sweep | job array with a queue | per-job startup cost dominates at small sizes |
| dense linear algebra | threaded BLAS, one rank per socket | oversubscription: threads × ranks > cores |
| PDE on a mesh | MPI halo + local assembly | partition quality decides everything |
Setup discipline
- Force field and cutoffs recorded with the result. A trajectory with an unrecorded thermostat or cutoff is not reproducible.
- Equilibration demonstrated, not assumed. Plot the observables you will report; a flat potential energy is not equilibrium.
- Timestep justified. The fastest vibration in the system sets it; a 2 fs step with constrained hydrogens, less without.
- Statistical error estimated. Block averaging or independent replicas; a single run has no error bar and no basis for comparison.
Before scaling out
Measure one rank first. If a single-process run is memory-bound or I/O-bound, more ranks make it worse. Then scale to 2 and 4 and record the efficiency; a curve that drops below 50% at 4 ranks has a decomposition problem, not a cluster problem.
Done when
The decomposition matches the algorithm (particles by domain, linear algebra by the solver backend), one rank was measured before scaling, parallel efficiency at 2 and 4 ranks is recorded, equilibration is demonstrated on the observables that will be reported, and the statistical error comes from block averaging or independent replicas.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

