Skip to content

Recipe File Reference

FBTK’s Builder can load YAML-formatted recipe files that describe the composition of your system.

Global settings for the entire system.

KeyTypeDescription
densityfloatTarget density in g/cm³.
cell_shapelist[3][Optional] Explicit box dimensions [Lx, Ly, Lz] in Å.

A list of molecules or polymers that make up the system.

KeyTypeDescription
namestringIdentifier for the component.
roleenumEither molecule or polymer.
inputnestedInput source configuration. Contains the following sub-fields:
countint[Role: molecule only] Number of molecules to place.
KeyTypeDescription
smilesstringSMILES string. Can include * as connection points.
filestringPath to a structural file (.mol / .mol2).

Required when role: polymer is specified.

KeyTypeDescription
degreeintDegree of polymerization (DP).
n_chainsintNumber of polymer chains to generate.
head_indexint[Optional] Heavy atom index (0-indexed) for the polymerization start site.
tail_indexint[Optional] Heavy atom index (0-indexed) for the polymerization end site.

system:
density: 0.9
components:
- name: "PS"
role: "polymer"
input:
smiles: "*C(C*)c1ccccc1"
polymer_params:
degree: 10
n_chains: 50
- name: "Toluene"
role: "molecule"
count: 100
input:
file: "toluene.mol"