Welcome to KG_PGNs, a comprehensive toolkit designed to build and simulate coarse-grained mechanical models of Polymer Grafted Nanoparticles (PGNs). This repository is based on the published work:
Moussavi, Arman, et al. "Characterizing the shear response of polymer-grafted nanoparticles." The Journal of Chemical Physics, 160.13 (2024).
The workflow includes generating initial configurations, setting up and running simulations, and analyzing results.
All necessary files originate from the DEPOT. Follow these steps to utilize the DEPOT:
-
Copy and Rename the Directory: Copy the DEPOT directory and rename it to match your system of interest. For example:
PGN_R1_rho05_N20
-
Configure PGN Parameters: Inside the new directory, open
create_PGNs.pyand enter the parameter space of interest in the section labeled "PGN Parameters".chain_length = 20 num_grafts = 60 # to match the grafted density NP_radius = 5 gd = '05'
Executing
create_PGNs.pywill build an initial configuration of 32 PGNs arranged in a face-centered cubic (FCC) lattice and write the data to a LAMMPS data file. Additionally, it will output a text file with the PGN IDs needed for the simulation input files. -
Setup Initial Configuration: In the new directory, update the
in_nvt.inpfile:- Change the
read_datafield to match your system. - Update the
group pgn idfields according to the system of interest.
- Change the
-
Modify Input Scripts: In the
input_scriptsdirectory, updatechange_mole_bond_swap.pywith the parameters of interest and execute the code to ensure the data file format is correct for usage. -
Update INP Files: Manually update each INP file within
input_scripts, using the PGN IDs from thecreate_PGNs.pyoutput text file to ensure correct nanoparticle identification throughout all simulations. -
Run Simulations: In the main renamed directory, open
KG_PGN.py, enter the correct simulation details at the beginning of the file, and execute the code to submit all jobs (simulations) specified inKG_PGN.py. For more details on the methods used, refer to AutoMD.py.simulation_details = { "temperature": 300, "pressure": 1.0, "duration": 1000000 }
Assuming all specifications and modifications are correctly implemented, simulation output files should be generated with ease.
Within the ANALYSIS directory, you will find various scripts to analyze the simulation results. While these scripts are designed for specific workflows, they can be modified or extended to suit your analysis needs. For specific questions, please contact the author.
Feel free to reach out for further clarification or assistance with the workflow and analysis.