Replies: 2 comments 20 replies
-
Dear Yan, Thanks for opening this discussion! We'll try our best to guide you through the process. Unfortunately, there is no comprehensive example yet. However, we've been working with OPLS quite a bit (especially @ricalessandri is the expert here). Let's start: Creating a polymer melt with OPLS FF1 - generating an itp fileCreating an initial simulation setup with OPLS is fairly easy and involves two steps. First you need the itp file of the polymer and secondly you need initial system coordinates. If you want to do this for PEG for example you need the following command to make the itp file, which follows the same idea s for CG systems.
This command will generate an itp file for 100 monomers of PEO using the OPLS LigParGen force-field. The LigParGen only means that the charges and atom-type assignment were done using LigParGen. We'll come to that in a minute. Note that you have to use the 2 - building the initial meltTo generate a melt you need a topology file of the system. In the PEG case the non-bonded parameters are provided by the LigParGen server, so the following topology file will do. Note that we aim to generate 100 polymers of PEO.
Next you simply generate the melt at a particular density using the following command. This should not take very long, but depends a little bit on your python version and machine. For me it took 30s.
NOTE: @ricalessandri made an edit here given that, based on this recent PR, the required 3 - preparing to run a simulationPart of the structure generation is an energy minization. When you look at the start.gro file you will see that the PEG looks like the bonds are not correct and the structure is bad. However, polyply scales the residue coordinates and they first have to "unflod" in an energy minimization. So next you run an energy minization using the default OPLS settings. Make sure however to do the energy minimization with flexible bonds not constraints. After that you can start the melt simulation in NVT/NpT as you want. Creating parameters for a custom polymerIn order to create itp-files for a custom polymer, you need to define the bonded parameters, charges and atom-types for the repeat unit as well as how they change when they are linked together. All this information is stored in a .ff file. Luckily for you for OPLS @ricalessandri has created a small script which allows you to generate the .ff input files you need from an itp file of a tetramer for example. So typically we generate a tetramer using LigParGen server, then apply the script itp_to_ff.py, and finally you can generate the itp file as follows:
Watch out for tacticityPolyply does not define tacticity, instead the tacticity has to be defined via improper dihedral angles. You do this by adding the following entry to the ff-files. Let us suppose for PVA the main backbone atoms in the monomer are called
In this case you add the following two entries to any of the .ff files:
Next to generate a polymer with random tacticity you have to define the chirality of each monomer randomly. To do so call polyply gen_seq as shown below.
To generate iso-tactic PVA you use this command:
Note that the last part
That's it! If you have any question or assistance let me know. In case you want to submit your PVA/PEG to the polyply library and make it available to others, we're happy to assist. And ultimately if you like the package cite us and give us a star on GitHub. |
Beta Was this translation helpful? Give feedback.
-
Hi @ricalessandri and @fgrunewald, I am writing to seek your guidance on some questions regarding the use of the build_file.bld for constructing PEO and PVA in confined spaces. I have encountered specific inquiries, and I appreciate any assistance you can provide. Firstly, I construct PEO500.itp and PVA68.itp using the following commands:
and
Next, I would like to confine the polymer model within a narrow slit space: [-25.0305,-5.81625, 1.75]->[25.0305,-5.81625,3.25]. Therefore, I have written the following bld file:
And the system file:
After modeling with the following command:
I observed that the polymer is not completely confined within the designated space. Here is an image illustrating the issue I have spent a considerable amount of time trying to address this problem but haven't been successful. I would greatly appreciate your assistance in resolving this issue. Thank you for your time and support. |
Beta Was this translation helpful? Give feedback.
-
Dear all,
I am currently working on simulating a mixed melt of PEO and PVA using the OPLSAA force field. I have already completed all the tutorials provided by polyply_1.0. However, most of the examples in polyply_1.0 are currently focused on coarse-grained models. Therefore, I have a few questions regarding how to construct all-atom models using the OPLSAA force field.
Firstly, I would like to know the process of building all-atom models based on the OPLSAA force field in polyply_1.0. Is there a comprehensive example available that demonstrates the usage of OPLSAA in polyply_1.0?
Additionally, I would like to understand how to create a melt model from scratch using a customized OPLSAA force field file, e.g., PEO or PVA. Specifically, I am interested in the steps and procedures involved in this process.
Many thanks,
Yan
Beta Was this translation helpful? Give feedback.
All reactions