chem-sorption-gcmc
Skill174 starsChanged 6 months agoMITView on GitHub
Calculates gas adsorption isotherms via BVT/GCMC Monte Carlo simulations in a porous framework using MLIP.
In this repository133 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atomisticskills.mdcCursor rule
- .cursor/rules/use-agent-skills.mdcCursor rule
- chem-bond-dissociationSkill
- chem-conformer-searchSkill
- chem-db-mofSkill
- chem-db-qmofSkill
- chem-db-spectraSkill
- chem-dft-orca-advanced-calculationSkill
- chem-dft-orca-optimizationSkill
- chem-dft-orca-singlepointSkill
- chem-docking-voidSkill
- chem-hazard-toxicitySkill
- chem-irc-verificationSkill
- chem-msms-predictSkill
- chem-neb-barrierSkill
- chem-nmr-analysisSkill
- chem-nmr-predictSkill
- chem-react-otSkill
- chem-similarity-searchSkill
- chem-solution-mdSkill
- chem-sorption-relaxSkill
- chem-sorption-widomSkill
- chem-spectrum-matcherSkill
- chem-thermochemistrySkill
- chem-ts-optimizationSkill
- chem-vibrationSkill
- drug-admet-predictionSkill
- drug-binding-site-definitionSkill
- drug-bioactivity-assaySkill
- drug-complex-system-builderSkill
- drug-db-chemblSkill
- drug-db-pdbSkill
- drug-db-pubchemSkill
- drug-docking-analysisSkill
- drug-docking-vinaSkill
- drug-ligand-prepSkill
- drug-mmpbsa-gbsaSkill
- drug-molecular-fingerprintsSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-ligand-mdSkill
- drug-protein-prepSkill
- drug-redocking-rmsdSkill
- drug-retrosynthesisSkill
- drug-trajectory-analysisSkill
- general-arxiv-searchSkill
- general-biorxiv-searchSkill
- general-chemical-literatureSkill
- general-chemical-pricingSkill
- general-deep-researchSkill
- general-fair-data-reviewSkill
- general-patent-searchSkill
- general-peer-reviewSkill
- general-plot-digitizerSkill
- general-presentationSkill
- general-property-unitsSkill
- general-publisher-access-guardSkill
- general-query-literature-databaseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Perform Single-Component GCMC (Optional): If you are investigating a single gas species, use run_gcmc.py.
- Very specific: line 36
Perform Multi-Component GCMC (Optional): If you are simulating a gas mixture (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
chem-sorption-gcmc
Goal
To predict the macroscopic adsorption uptake of a gas (or gas mixture) in a porous material at a specific temperature and pressure. The skill relies on Grand Canonical Monte Carlo (GCMC) simulations where the host-guest and guest-guest interactions are calculated using a Machine Learning Interatomic Potential (MLIP: MACE, FairChem, MatGL).
Prerequisites
- Input: A relaxed framework structure in CIF (or XYZ) format. The structure should ideally be processed by chem-sorption-relax to ensure proper supercell dimensions.
- Conda environment: Depends on the MLIP used (e.g.,
fairchem-agent,mace-agent,matgl-agent).
Instructions
- Perform Single-Component GCMC (Optional): If you are investigating a single gas species, use
run_gcmc.py.
# Env: fairchem-agent (or other MLIP-specific env)
python .agents/skills/chem-sorption-gcmc/scripts/run_gcmc.py \
--cif path/to/relaxed_supercell.cif \
--calculator fairchem \
--model-name uma-s-1p1 \
--task-name omol \
--steps 50000 \
--temperature-K 298 \
--pressure-bar 1.0 \
--adsorbate CO2 \
--output-dir ./results/single_gcmc- Perform Multi-Component GCMC (Optional): If you are simulating a gas mixture (e.g. flue gas separation 15% CO2 / 85% N2), use
run_gcmc_multi.py.
# Env: fairchem-agent
python .agents/skills/chem-sorption-gcmc/scripts/run_gcmc_multi.py \
--cif path/to/relaxed_supercell.cif \
--calculator fairchem \
--model-name uma-s-1p1 \
--task-name omol \
--steps 50000 \
--temperature-K 298 \
--gases CO2 N2 \
--y 0.15 0.85 \
--p-total-bar 1.0 \
--output-dir ./results/multi_gcmcKey Parameters
--cif: Path to the relaxed host framework.--calculator: The backend MLIP (fairchem,mace,matgl).--model-name: Name or path to the MLIP weights (e.g.,uma-s-1p1.pt,MACE-MH-1).--task-name: Optional, required by some models (omolfor UMA and MACE-MH).--steps: Number of Monte Carlo steps (minimum 50,000 recommended for equilibration).--temperature-K: Sim temperature.--pressure-bar(Single): Gas pressure in bar.--p-total-bar(Multi): Total mixture pressure in bar.--gases/--y(Multi): Species list and corresponding mole fractions in the vapor phase.
Examples
Example 1: Generating an Isotherm Point (CO2, 0.1 bar, 298K) with UMA:
# Env: fairchem-agent
python .agents/skills/chem-sorption-gcmc/scripts/run_gcmc.py \
--cif ./data/MOF-5_supercell.cif \
--calculator fairchem \
--model-name uma-s-1p1 \
--task-name omol \
--steps 50000 \
--temperature-K 298 \
--pressure-bar 0.1 \
--adsorbate CO2 \
--output-dir ./out/0.1_barConstraints
- Simulation Time: GCMC with MLIPs can be computationally intensive. Use GPUs when available (
--device cuda). - Equilibration: You MUST check the generated
nmols.pngandenergy.pnginside theoutput-dirto visually confirm that the number of molecules and energy have plateaued (equilibrated). If the trend is still rising/falling at the end of the simulation, you must re-run with more--steps(or restart the trajectory). - Restarting: You can pass
--restart-traj ./out/mc.trajto continue a previous run.
Author: Artur Lyssenko Contact: GitHub @arturlyssenko12
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.

