Enhancement: possibility of introducing (regio-)randomness #231
Replies: 5 comments
-
Thanks for raising the issue! Yes indeed this is very useful and polyply can already do it. You need to invoke the sequence generation program first and generate a .json sequence file that specifies the sequence of your polymer and encodes the randomness. Say you have two P3HT monomers called P3HT and P3HTR for the reverse monomer. P3HT->P3HT is the region-regular order and a mix of P3HT and P3HTR is regio random. Then you'd generate a sequence graph in the following way:
The 'from_string' generates a single block, which has the label A is just a label. The n_monomers the number of monomers, 1 is the number of branches i.e. it is a linear chain, and then there follows a list of syntax -probability,-probability etc. In this case you get a random chain where each monomer has 0.5 probability of being either P3HT or P3HTR. Then using '-seq' you specify the sequence of possible blocks. In this case there is only one block so only. The generated .json file contains the residue graph of the polymer and can be used with the itp generation tool as follows:
Note that of course you need to specify the links and blocks appropriately. |
Beta Was this translation helpful? Give feedback.
-
Pretty cool! To make sure I understood the blocks and links all right, I first tried a PEO-PE random block copolymer. So, I've done:
followed by:
However, to obtain the correct
right? |
Beta Was this translation helpful? Give feedback.
-
Hi yes that is right. The current M2 links are not complete except for the homopolymers and some selected links I used for testing PEGylated lipids and non-ionic surfactants. |
Beta Was this translation helpful? Give feedback.
-
@ricalessandri Is this issue taken care of? I think in principle we can do regio randomness and such. |
Beta Was this translation helpful? Give feedback.
-
Yes, it's taken care of indeed - so feel free to close it. We could perhaps have a reminder somewhere that we can add an example about this to the wiki/tutorials (or maybe no need to put a reminder as it'll be anyway part of the P3HT showcase tutorial). |
Beta Was this translation helpful? Give feedback.
-
Not really an issue but rather a potential enhancement: the idea is to have the possibility of introducing (regio-)randomness on the polymer sequence. For example, for P3HT, what we model usually is regioregular P3HT. However, "regiorandom" P3HT is also a thing - see https://www.semanticscholar.org/paper/Organic-thin-film-transistors.-Klauk/5301e5839c6d3eb3fc63dc79e28bb7b6fbb313f0/figure/5. Do you think this can be implemented easily? Of course, the two ways of attaching P3HT - i.e., 2 blocks - would be needed. But then the crucial point would be: could then
polyply
, if passed a flag-random
generate a random copolymer? In the case of P3HT that I have in mind it'd be regiorandom P3HT, however this can be thought about more generally in terms of random copolymers made of different chemical blocks.Beta Was this translation helpful? Give feedback.
All reactions