This repository documents a computational study of acetaminophen, also known as paracetamol. It follows the reaction between 4-aminophenol and acetic anhydride and combines geometry optimization, vibrational analysis, frontier-orbital inspection, and thermodynamic post-processing.
The project is written to be readable by a broad audience while still preserving the structure of a real computational chemistry workflow.
- Focus: acetaminophen formation from simple organic reactants.
- Methods: xTB geometry optimization, ALPB solvation, vibrational analysis, HOMO/LUMO inspection, and thermodynamic calculations.
- Environments: gas phase and water.
- Outputs: optimized structures, vibrational spectra, orbital input files, and temperature-dependent thermodynamic tables.
Acetaminophen is one of the best-known pain relievers in modern medicine. This project shows how its formation can be studied computationally and how the surrounding environment changes the behavior of the molecules involved.
In practice, the repository helps answer questions such as:
- How does the reaction proceed from reactants to product?
- What changes when the same system is studied in water instead of in vacuum?
- Which molecular features help explain the reactivity of the starting materials?
- How can thermodynamic quantities be summarized across several temperatures?
- Optimized structures for the main species involved in the mechanism.
- Vibrational data that support infrared interpretation and thermodynamic corrections.
- Molecular orbital files for visualizing HOMO and LUMO behavior.
- A consolidated thermodynamic summary in
reaction_mechanism/resumen_termodinamico.csv. - A full written report in
Informe_completo.md.
The repository is organized by chemical species, solvent environment, and calculation type.
AcetaminophenSynthesis/
├── Informe_completo.md
├── README.md
├── thermo_scripts/
│ ├── new_thermo.py
│ └── script_thermo_xtb_complete_all.py
├── acetaminophen/
├── acetic_acid/
├── aminophenol/
├── acetic_anhydride/
├── intermediate_molecule/
└── reaction_mechanism/
Each molecule folder follows the same pattern:
[molecule]/
├── gas/
│ ├── opt/
│ ├── ir/
│ ├── mo/
│ └── thermo/
└── water/
├── opt/
├── ir/
├── mo/
└── thermo/
opt/stores geometry optimization results.ir/stores vibrational data and infrared-related outputs.mo/stores files used to inspect molecular orbitals.thermo/stores the inputs and outputs used for thermodynamic processing.
The project includes the main species involved in the mechanism:
- 4-aminophenol, the starting nucleophile.
- Acetic anhydride, the acylating agent.
- An intermediate species formed along the reaction path.
- Acetic acid, the byproduct.
- Acetaminophen, the final product.
- Molecular structures are optimized with xTB.
- The same systems are studied in gas phase and in water using the ALPB solvation model.
- Vibrational spectra are used to interpret the systems and support thermodynamic corrections.
- Molecular orbital files are generated for HOMO/LUMO inspection.
- A thermodynamic script combines vibrational contributions with SCF energies across temperatures.
Open Informe_completo.md for the full report in Spanish, or Informe_completo_en.md for the English version.
Open reaction_mechanism/resumen_termodinamico.csv to compare ZPE, enthalpy, entropy, and Gibbs free energy across molecules, solvents, and temperatures.
Open any [molecule]/water/opt/xtbopt.xyz file in Avogadro, VMD, or another molecular viewer to inspect optimized geometries.
Open any [molecule]/water/mo/molden.input file in a quantum chemistry visualization tool to inspect frontier orbitals.
Inspect [molecule]/water/ir/vibspectrum for the simulated infrared information.
The thermo_scripts/ folder contains the Python scripts used to process xTB outputs.
new_thermo.pyis the corrected and vectorized version used in the project pipeline.script_thermo_xtb_complete_all.pyis the earlier baseline version kept for reference.
python thermo_scripts/new_thermo.py \
--temps 298.1 353.1 373.1 \
--file path/to/vibspectrum \
--out path/to/xtb_output.outAdd --linear if the system is linear.
- The detailed report is written in Spanish, while this README gives an English overview for general readers.
Mariana Lopera Correa