Module Guide#
This guide summarizes the main public modules in MofBuilder based on the current codebase.
The analysis module is currently under development and is not yet part of the public interface.
Builder (mofbuilder.core)#
Primary entry points:
MetalOrganicFrameworkBuilderFramework
Typical workflow:
Create
MetalOrganicFrameworkBuilder(mof_family=...)Set required inputs such as
node_metaland linker sourceRun
build()to obtain aFrameworkobjectExport files with
Framework.write(...)
What it handles internally:
Topology/template lookup (
MofTopLibrary)Node/linker placement
Rotation and cell optimization (
NetOptimizer)Supercell and edge-graph generation (
SupercellBuilder,EdgeGraphBuilder)Termination/defect handling (
TerminationDefectGenerator)
Modelling and Simulation (mofbuilder.md)#
Primary entry points:
SolvationBuilderLinkerForceFieldGeneratorGromacsForcefieldMergerOpenmmSetup
Typical usage pattern:
Build framework with
MetalOrganicFrameworkBuilderCall
Framework.solvate(...)to create a solvated systemCall
Framework.md_prepare()to generate MD inputsRun
Framework.md_driver.run_pipeline(...)for EM/NVT/NPT stages
I/O (mofbuilder.io)#
Reader/writer classes provide explicit structure-file control:
Readers:
CifReader,PdbReader,GroReader,XyzReaderWriters:
CifWriter,PdbWriter,GroWriter,XyzWriter
These are useful when integrating MofBuilder into external workflows that already provide structure files and only need conversion or export.
Visualization (mofbuilder.visualization)#
Vieweris used byFramework.show(...)for quick inspection.
This is convenient for exploratory checks during build iterations before full simulation setup.