1 Introduction

Phase separation, self-assembly and aggregation of macromolecules under a variety of conditions driven by non-covalent interactions is ubiquitous in nature [1,2,3,4,5]. Among different macromolecules, desired and undesired aspects of the phase separation, the self-assembly and the aggregation of biological polymers such as proteins and peptides, has strongly attracted the scientists attention in the recent years [6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]. Surface engineering, scaffolding for tissue repair and fabrication of conducting nanowires are some potential applications of the macromolecular self-assemblies [36,37,38,39,40,41,42,43,44]. Aggregation of macromolecules, especially in biology, is not always desirable. For example, aberrant aggregation of proteins and peptides can lead to a number of diseases such as Alzheimer’s disease, Parkinson’s disease and type II diabetes [45,46,47,48,49,50,51]. Liquid-liquid phase separation of proteins containing disordered regions has been shown that is crucially important for the cell in order to form liquid-like and dissolvable membraneless organelles [15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35]. Nevertheless, it has also been observed that liquid droplets of protein condensates are prone of aberrant aggregation, solidification and maturation into fibrilar protein assemblies [15, 18,19,20,21,22,23, 28]. Surface modification is another important issue in which short polymeric chains of amino acids (polypeptides) has been widely used to improve the compatibility of given materials with other materials or environments. For example, the evidence that an ionic-complementary peptide, EAK16-II, is capable of assembling on hydrophilic mica as well as hydrophobic highly ordered pyrolytic graphite (HOPG) surfaces with different nano-patterns [52] has been presented.

In a solution of macromolecules, parameters such as inter- and intra-molecular interactions, properties of the solvent and architecture of the molecules can affect the system behavior. The presence of other objects such as an interacting surface can also affect the aggregation behavior of the macromolecules considerably [53]. The interaction of peptides and proteins with various surfaces and formation of nanostructures has been investigated [54,55,56,57,58,59]. These nanostructures can be useful in devices such as biosensors and information storage units [60, 61].

Most of the amazing behaviors of polymeric macromolecules are due to their polymeric nature and do not depend on their details in atomic level. Accordingly, one can study the behavior of such macromolecules using simple coarse-grained models and generalize the results to a wide category of biological and synthetic polymers. In a dilute solution of polymeric macromolecules, dimerization is very early and an important stage of the aggregation process. On the other hand, study of a two-polymer system in detail is quite feasible using simulation methods. Accordingly, a systematic and detailed study of the dimerization process can be helpful in description of the aggregation behavior of many-polymer systems. Decreasing the number of accessible configurations of two polymers undergoing dimerization leads to an effective reduction of their entropy which is equivalent to the polymers unwillingness to aggregate. The amount of the entropy decrease in the course of aggregation depends on the polymers structural properties such as their flexibility. On the other hand, dimerization of two polymers that attract each other, lowers the system internal energy and the total change of the system free energy determines the probability of dimerization. The study of the entropic unwillingness and generally the probability of dimerization can help to understand the behavior of polymers in a dilute solution and in the nucleation step of the aggregation.

Flexibility of a polymeric macromolecule (which can be quantified by the value of its persistence length [62]), depends on chemical bonds along its backbone as well as the spacial structure and architecture of the molecule (such as presence or absence as well as the size of side chains). For example, in the case of peptides and proteins, the amount of the chain flexibility depends directly on the amino acid sequence of the macromolecule. In this case, presence of amino acids such as glycine increases the chain flexibility, however, amino acids like proline cause the chain to be less flexible [63].

In this paper, we study the effect of the polymer chains flexibility on their aggregation behavior using Langevin dynamics (LD) simulations. The model polymers in our study are considered to be homopolymers for simplicity. This assumption enables us to concentrate solely on the role of polymer flexibility. However, real biological polymers are mostly heteropolymers and variety of interactions between different monomers have crucial role on their rich phase behavior. Some effects of heterogeneity on the phase separation of disordered proteins have recently been studied [64]. It is worth to mention amount of the flexibility of proteins (or polypeptides) depends on the hierarchy of their folding which originates from the amino acid sequence. Disordered parts of proteins are more flexible than the folded parts. Regarding the dimensionless nature of quantities in LD simulations, the obtained results in our study can shed light on the effect of flexibility on the aggregation of polymeric macromolecules in a range of length scales. To study the impact of biopolymers flexibility on their aggregation behavior, we first measure the probability of dimerization in a system containing two polymers that weakly attract each other and study dependence of the probability on the polymers persistence length. We find that keeping the strength of attraction between the polymers fixed, the dimerization probability is a non-monotonic function of the polymers persistence length. For a given value of the attraction strength, semiflexible polymers show lower dimerization probability relative to flexible and rigid polymers of the same contour length. Then, we study the effect of the polymers persistence length on their aggregation behavior by simulation of a many-polymer system. We obtain the threshold temperature for the formation of stable aggregates in these simulations and it is found that the threshold temperature has also a nonmonotonic dependence on the polymers flexibility. The results of the two sets of simulations are in good agreement.

The rest of the paper is organized as follows. We introduce the model and the details of our simulations in Sect. 2. The results and discussions are presented in Sect. 3. The paper is concluded in Sect. 4.

2 The model and the simulation method

We use coarse-grained, bead-spring model polymers in our Langevin dynamics (LD) simulations. Each polymer in our simulations consists of \(N=16\) monomers. Non-bonded interactions between the monomers of a polymer with the monomors of the other polymers (inter-polymer interactions) are modelled by Lennard–Jones potential;

$$\begin{aligned} U_{\textrm{LJ}}(r)=\left\{ \begin{array}{ll} 4\varepsilon _0[(\frac{\sigma }{r})^{12}-(\frac{\sigma }{r})^6] &{} r\le 3.5\sigma ,\\ \\ 0 &{} r>3.5\sigma , \end{array} \right. \end{aligned}$$
(1)

where \(\sigma \) is the monomer diameter and the LD length scale and \(\varepsilon _0\) is the Lennard–Jones energy scale. The interactions between the monomers of a polymer (intra-polymer interactions) are also modeled by Lennard–Jones repulsive potential (hard-core repulsion):

$$\begin{aligned} U_{\mathrm{LJ-rep}}(r)=\left\{ \begin{array}{ll} 4\varepsilon _{0}\left[ (\frac{\sigma }{r})^{12}-(\frac{\sigma }{r})^6+\frac{1}{4}\right] &{} r\le 2^{1/6}\sigma ,\\ \\ 0 &{} r>2^{1/6}\sigma , \end{array} \right. \nonumber \\ \end{aligned}$$
(2)

Consecutive monomers of each polymer are connected by a harmonic potential, \(U_{\textrm{h}}=1/2k_{\textrm{h}}(r-R)^2\), with spring constant and equilibrium distance between connected monomers of \(k_{\textrm{h}}=90 k_{\textrm{B}}T\) and \(R=1.1\sigma \), respectively. Bending rigidity of each polymer chain is modelled by a bond angle potential between two successive bonds connecting three successive monomers, defined as

$$\begin{aligned} U_{\textrm{bend}}={k_{\textrm{bend}}}(1-\cos (\theta -\theta _0)), \end{aligned}$$
(3)

where \(k_{\textrm{bend}}\) is the bending constant, \(\theta \) is the angle and \(\theta _0\) is the equilibrium angle between two successive bonds. The equilibrium angle in our simulations is zero and the bending constant is \(l_{\textrm{p}}k_{\textrm{B}}T\), in which \(l_{\textrm{p}}\) is the persistence length of the polymer chain.

Simulations are carried out with the MD simulation package ESPResSo (version 4) [65] (dimerization simulations) and with LAMMPS [66] (aggregation of many polymers). All simulations are performed in \(60\sigma \times 60\sigma \times 60\sigma \) cubic box and periodic boundary conditions in three dimensions are applied.

The time step of the simulations is \(\tau =0.01\tau _0\), where \(\tau _0=\sqrt{m\sigma ^2/\varepsilon _0}\) is the MD time scale, and m is the monomer mass. The simulations are carried out in the NVT ensemble using the Langevin thermostat. The dimerization simulations are performed at fixed temperature \(T=1.0\varepsilon _0/k_{\textrm{B}}\) and the polymers aggregation simulations are performed at different temperatures (all temperatures are in units of \(\varepsilon _0/k_{\textrm{B}}\)). The Langevin equation, \(m\ddot{\vec {r}}=-\xi _{\textrm{b}}\dot{\vec {r}}+\vec {F}_{\textrm{ext}}+\vec {\eta }(t)\), is integrated for finding the positions of the monomers at each time step. In this equation, \(\xi _{\textrm{b}}\) is the friction coefficient and \(\vec {F}_{\textrm{ext}}\) is the external force exerted from the other particles. \(\vec \eta (t)\) is also a random force, which obeys the fluctuation-dissipation theorem. The reduced friction coefficient in our simulations is 1.

2.1 Dimerization of two polymer chains

We use ’dimerization’ term to separate the aggregation in the level of a two-polymer system from that in the level of a many-polymer system in our study. One should note regarding the coarse-grained nature of our simulations that no specific binding between the polymers is defined and dimerization can not have further meaning than aggregation here.In the beginning of the simulation study of the dimerization process, we construct two polymers in the extended conformation and parallel to each other in the simulation box, with the initial separation of \(d_{\textrm{ini}}\), such that the center of mass of the polymers is in the middle of the simulation box. Then, we let the polymers to equilibrate for \(10^6\) time steps. After that, the main simulation is performed for \(N_{\textrm{t}}=6\times 10^8\) time steps. In each time step, if the LJ energy between the two polymers is lower than \((N/2)k_{\textrm{B}}T\) (in which almost half of the monomers of a polymer are in contact with the other polymer), they are assumed to be aggregated. The probability of aggregation is the ratio of the number of time steps in which two polymers are aggregated (\(n_{\textrm{agg}}\)) to the total number of the simulation time steps (\(N_{\textrm{t}}\)):

$$\begin{aligned} P_{\textrm{agg}}=\frac{n_{\textrm{agg}}}{N_{\textrm{t}}}. \end{aligned}$$
(4)

Also, every \(6\times 10^5\) time steps a configuration of the system is saved for analyzing the average of LJ interaction energy of the two polymers over time.

2.2 Aggregation of many polymers

To study the aggregation of many polymers, we perform simulations with \(N_p=313\) polymers. In the beginning of each simulation, we distribute \(N_p\) polymers in the simulation box randomly in a way that there is no overlap between them. Then, we run the system in NVT ensemble for \(5\times 10^6\) time steps and study the aggregation behavior of the polymers. Simulations are performed at different temperatures, ranged from 1.5 to 3.5, to study temperature-dependence of the aggregation process for polymers of different persistence lengths. By performing simulations at different temperatures, the threshold temperature for aggregation below which a stable aggregate forms and above that a dilute solution of the polymers coexists with the aggregate can is found.

3 Results and discussion

3.1 Dimerization

Fig. 1
figure 1

Dimerization probability versus the ratio of polymers persistence length to their contour length. Sample snapshots of the polymers (shown in blue and green) are also illustrated for flexible (\(l_{\textrm{p}}=0\)) (a), semiflexible (\(l_{\textrm{p}}/L=0.44\)) (b) and rod-like (\(l_{\textrm{p}}/L=5.63\)) (c) polymers. Dimerization probability is a non-monotonic function of the polymers persistence length. The solid line connecting the data points is only a guide for eye. Error bars on the data points are at most as large as the symbol size

Fig. 2
figure 2

Dimensionless LJ interaction energy of the two polymers undergoing dimerization versus time in simulations of flexible (\(l_{\textrm{p}}=0\)) (a), semiflexible (\(l_{\textrm{p}}/L=0.44\)) (b) and rod-like (\(l_{\textrm{p}}/L=5.63\)) (c) polymers. Time average of the interaction energies are shown on the figure panels

Two similar polymers with the initial separation of \(d_{ini}=4\sigma \) in three dimensional bulk are simulated (the polymers are initially parallel to each other). With such a small value of \(d_{ini}\), we eliminate the diffusion step of the aggregation process which is not of our interest in this study. Omission of the diffusion stage can also be archived by doing the simulation in a smaller simulation box keeping periodic boundary conditions. We found no difference in our results using both methods. Figure 1 shows the dependence of the dimerization probability on the ratio of polymers persistence length to their contour length (\(l_{\textrm{p}}/L\)). As it can be seen, the dimerization probability versus \(l_{\textrm{p}}/L\) is a non-monotonic function. It decreases from \(l_{\textrm{p}}=0\) to \(l_{\textrm{p}}/L=0.44\), and then increases. The flexible and the rod-like polymers have larger dimerization probability compared with the semiflexible ones. Sample snapshots of the dimers of flexible (\(l_{\textrm{p}}=0\)), semiflexible (\(l_{\textrm{p}}/L=0.44\)) and rod-like (\(l_{\textrm{p}}/L=5.63\)) polymers are also shown in Fig. 1. The monomers of the flexible polymers attract each other and an aggregate composed of the monomers of the two polymers forms. The polymers become more extended by increasing the persistence length and finally, at large persistence lengths, the two polymers dimerize as two rods (see the snapshot of \(l_{\textrm{p}}/L=5.63\) in Fig. 1). Also, the error bars of the obtained data in these figures, which are resulted from averaging over 10 runs of the simulation, are at most as large as the symbol size.

Both the entropic effects which have a deterrent effect against the dimerization and the effect of attraction potential should be considered to explain the dimerization behavior of the two polymers. The entropy of a polymer chain is related to the number of its possible configurations. If \(\Omega \) is the number of configurations of a monomer relative to the previous monomer along the polymer chain, and N is the number of monomers of the polymer, the entropy of the polymer (S) can be written as

$$\begin{aligned} S=Nk_{rm B}\ln \Omega \end{aligned}$$
(5)

The number of possible configurations of each monomer relative to the previous one decreases (and hence the entropy of the polymer chain decreases) by increasing the polymer bending rigidity. The free energy of the system of two polymers can be written as

$$\begin{aligned} F=U-TS, \end{aligned}$$
(6)

in which, U is the attraction energy between the polymers. Since we are interested in the dimerization probability of the polymers, we focus on inter-polymer LJ energy (shown by \(U_{\textrm{LJ}}\)) and its average over time (shown by \(U_{\textrm{mean}}\)).

Figure 2 shows the time evolution of \(\frac{U_{\textrm{LJ}}}{(N/2)\varepsilon _0}\) for flexible (\(l_{\textrm{p}}=0\)), semiflexible (\(l_{\textrm{p}}/L=0.44\)) and rod-like (\(l_{\textrm{p}}/L=5.63\)) polymers. Time average of the interaction energy, \(U_{\textrm{mean}}\), is also calculated and shown in the inset of the figures. Anytime \(\frac{U_{\textrm{LJ}}}{(N/2)\varepsilon _0}\) is less than \(-1\), one can roughly say at least half of the monomers of a polymer are in contact with the other polymer. Also, the longer time the polymers are aggregated, the lower the amount of \(U_{\textrm{mean}}\). Two flexible polymers can undergo dimerization process without significant loss of their conformational entropy. One should note that a dimer formed by two flexible polymers is itself a flexible object of entropy as high as a flexible polymer. The energy of the system also decreases (to \(U_{\textrm{mean}}=-0.66 (N/2)\varepsilon _0\)) as the two flexible chains form a dimer (see Fig. 2 for \(l_{\textrm{p}}=0\)). Hence, the dimerization can take place and the probability of dimerization has a noticeable value (\(\simeq 0.3\), see Fig. 1 for \(l_{\textrm{p}}=0\)).

By increasing the persistence length, the dimerization probability decreases and reaches a minimum value for semiflexible polymers of \(l_{\textrm{p}}/L=0.44\). In this case, the two polymers are not able to aggregate and decrease the LJ energy to the extent that the flexible polymers do. As presented in Fig. 2, \(U_{\textrm{mean}}=-0.09 (N/2)\varepsilon _0\) is obtained for \(l_{\textrm{p}}/L=0.44\) which is considerably larger than \(U_{\textrm{mean}}=-0.66 (N/2)\varepsilon _0\) for \(l_{\textrm{p}}=0\). For two semiflexible polymers, the entropy of two single chains are still significant and they have to lose their entropy substantially in the course of dimerization (\(\Delta S <0\)). In this case, one should note that an aggregate of two semiflexible polymers is an object of lower flexibility and hence of lower entropy. As a result, the aggregation process becomes difficult for semiflexible polymers and the value of dimerization probability is smaller relative to the case of flexible polymers.

By further increasing the polymers persistence length, we study the dimerization process of two rod-like polymers to measure the dimerization probability. The thermal energy is not able to bend rod-like polymers and to activate their internal degrees of freedom. Such polymer have small entropy and their aggregation does not decrease the entropy of the system considerably (\(\Delta S\simeq 0\)). On the other hand, the aggregation leads to larger decrease of LJ energy (\(U_{\textrm{mean}}=-1.56 (N/2)\varepsilon _0\)) relative to the flexible and semiflexible polymers (see Fig. 2). Thus, the aggregation becomes easier and the dimerization probability increases.

Fig. 3
figure 3

Comparison of the dimerization probability of flexible and rod-like polymers at attraction strength \(\varepsilon / \varepsilon _0=1\) between the monomers with that of semiflexible polymers at different values of \(\varepsilon / \varepsilon _0\) (a). Comparison of the dimerization probability of semiflexible polymers at \(\varepsilon / \varepsilon _0=1\) with those of flexible and rod-like polymers at different values of \(\varepsilon /\varepsilon _0\) (b) (see the text)

As mentioned above, the entropy loss of two semiflexible polymers in the course of dimerization is noticeable, while in the case of two flexible or rod-like polymers, there is no much difference in entropy of the two polymers when they are dissolved or aggregated as a dimer. Therefore, semiflexible polymers have a less dimerization probability compared to flexible and rod-like polymers. The increase in free energy due to the decrease in entropy can be compensated by strengthening the attraction between the two semiflexible polymers. In this way, the dimerization probability of the two polymers increases.

As it can be seen in Fig. 1, for two values of the polymer flexibility (\(l_{\textrm{p}}/L=0.06\) and 2.5) dimerization probabilities are the same (approximately 0.25) and noticeably larger than that for semiflexible polymers of \(l_{\textrm{p}}/L=0.44\). A question that arises here is about the value of attraction strength (\(\varepsilon /\varepsilon _0\)) between two semiflexible polymers of \(l_{\textrm{p}}/L=0.44\) needed to overcome their excess unwillingness for dimerization. To this end, dimerization probability of two semiflexible polymers at different values of the attraction strength, \(\varepsilon /\varepsilon _0\), is shown in Fig. 3a. The values of dimerization probability for couples of polymers with \(l_{\textrm{p}}/L=0.06\) and 2.5 at \(\varepsilon /\varepsilon _0=1\) are also shown in this figure for comparison. Dashed lines are guides for eye and shows the value of \(\varepsilon /\varepsilon _0\) for which dimerization probability for couples of polymers with three different values of flexibilities is the same. The fact that the probabilities are the same at \(\varepsilon /\varepsilon _0=1.2\) shows that 20 percent stronger attraction between the polymers is needed to overcome semiflexible polymers more unwillingness for dimerization relative to flexible and stiff polymers. The other way above mentioned question can be asked is how much the attraction strength for couples of flexible and stiff polymers should be decreased to obtain equal dimerization probabilities for couples of polymers with three above mentioned flexibilities. To this end, aggregation probabilities are shown for couples of flexible and stiff polymers versus \(\varepsilon /\varepsilon _0\) in 3b and compared with that of semiflexible polymer at \(\varepsilon /\varepsilon _0=1\). As it can be seen, by decreasing the attraction strength of flexible and stiff polymers to \(\varepsilon /\varepsilon _0=0.84\) the dimerization probabilities for couples of polymers with three different values of flexibility become the same.

Fig. 4
figure 4

Dimerization probability versus the ratio of polymers persistence length to their contour length for two polymers free in space, by considering the intramolecular attraction force between monomers of a polymer

To investigate the effect of intramolecular attractions on the dimerization probability, we perform simulations in which the repulsive Lennard–Jones interaction between the monomers of each polymer in Eq. 2 has been replaced by the Lennard–Jones interaction of Eq. 1. In this way, there is an attractive interaction between all monomers in the system. The dependence of dimerization probability on the persistence length is investigated in this condition and the results are shown in Fig. 4. This figure shows that the intramolecular attractions affect the dependence of dimerization probability on the polymers flexibility only for polymers with \(l_{\textrm{p}}/L \le 0.125\) relative to the case without intramolecular attractions shown in Fig. 1. As it is shown in the inset of Fig. 4, the dimerization probability increases slightly as the persistence length increases from 0 to 0.125L. To describe this behavior one should note that a fully flexible polymer in a poor solvent collapses and forms a dense globule made of monomers. As two such collapsed polymers meat each other in the solution, only a few monomers on their surface can interact with each other (imagine two spheres touching each other). Such a weak interaction between the two globular polymers is not strong enough against thermal fluctuations to keep the polymers together. By a slight increasing of the persistence length from zero to \(l_{\textrm{p}}/L= 0.125\), dense globular conformation of the polymers opens and a higher number of their monomers can interact with each other. Hence, inter-polymer interaction becomes stronger in competition with thermal fluctuations and the dimerization probability increases up to \(l_{\textrm{p}}/L= 0.125\). By further increasing the persistence length, the effect of intramolecular attractions becomes negligible, and the dimerization probability shows almost the same behavior as the case wihtout intramolecular attractions shown in Fig. 1.

One should note the above mentioned result is in the case of a two-polymer system. In a solution of many polymers, depending on the order of magnitudes of the time scales associated with internal relaxation of single polymers on one hand and the diffusion of polymers to find each other in the aggregation process on the other hand, different scenarios such as entangled or disentangled aggregations may occur [67].

It is worth to mention that we rechecked the probability of dimerization at different values of the polymers persistence length by changing dimerization criteria from inter-polymer LJ energy to the neighborhood matrix for the monomers from the two polymers and obtained the same results. We also checked by changing the amount of LJ energy between the polymers below which they are considered as aggregated (\((N/2)k_BT\) in our study) and found that the results are mostly the same.

Fig. 5
figure 5

Threshold temperature for aggregation of polymers versus the ratio of polymers persistence length to their contour length

3.2 Aggregation in many-polymer system

As described in Sect. 2, simulations at different temperatures are performed for \(5\times 10^6\) time steps to find the threshold temperature for aggregation (\(T^*\)) and its dependence on the persistence length of the polymers. It should be noted that \(5\times 10^6\) time steps is enough for the systems to reach equilibrium and take its stable state in all of the simulations. At temperatures below \(T^*\) aggregate of the polymers forms and at temperatures slightly above \(T^*\) a dilute solution of polymers and an aggregate coexist in the system. Indeed, \(T^*\) for each system is the lowest temperature at which some polymer chains tend to leave the aggregate.

The resulting threshold temperatures for polymers of different persistence lengths, ranged from \(l_p/L=0\) (flexible polymer) to \(l_p/L=5.63\) (rod-like polymer), are shown in Fig. 5. Error bars of the obtained data in this figure are of the order of 0.1 which are not shown in the figure for clarity. As this figure shows, the polymer chains flexibility affects the aggregation threshold in many-polymer level very similar to the dimerization process as discussed above. It is found that the threshold temperature for aggregation of semiflexible polymers with \(l_p/L=0.44\) is lower than those of flexible and rod-like polymers. It means that, if we have three clusters of flexible, semiflexible and rod-like polymers at low temperature, as the temperature increases, the aggregate of semiflexible polymers starts to dissolve earlier compared to flexible and rod-like polymers.

Some snapshots of the final aggregations of the polymers in the simulation box for flexible (\(l_{\textrm{p}}=0\)), semiflexible (\(l_{\textrm{p}}/L=0.44\)) and rod-like (\(l_{\textrm{p}}/L=5.63\)) polymers are shown in Fig. 6, at temperatures \(T=2.0\) (below the threshold temperature for flexible polymers), \(T=2.2\) (above the mentioned threshold) and \(T^*=2.1\) (the threshold temperature for flexible polymers). As it is shown in this figure, at the given temperature, \(T=2.0\), all of the flexible and rod-like polymers are aggregated in a single bundle (see Fig. 6(a\(_1\)) and (c\(_1\))). However, at the same temperature, in the system of semiflexible polymers an equilibrium between an aggregate and single polymers dispersed in the solution can be observed (see Fig. 6(b\(_1\))). To form a single aggregate in the system of semiflexible polymers similar to the systems of flexible and rod-like polymers, one has to lower the temperature by at least 20 percent until it reaches \(T=1.6\) (as it can be found in Fig. 5). So, at both temperatures (\(T=2.0\) and \(T=2.2\)) a dense aggregate and single polymers dispersed in the solution coexist for the system of semiflexible polymers (see Fig. 6(b\(_1\)) and (b\(_2\))). At higher temperatures, more single polymers are dispersed in the solution and the dense aggregate is smaller. In the case of rod-like polymers a single aggregate forms at both temperatures, since the threshold temperature of rod-like polymers is higher than 2.2 (\(T^*=2.5\) for rod-like polymers as it can be seen in Fig. 5). On the other hand, \(T=2.2\) is slightly higher than the threshold temperature of flexible polymers and as it can be seen in Fig. 6(a\(_2\)), few polymers are dispersed in the solution.

Fig. 6
figure 6

Snapshots of the final aggregations of the polymers in the simulation box for flexible (\(l_{\textrm{p}}=0\)) (a\(_1\),a\(_2\)), semiflexible (\(l_{\textrm{p}}/L=0.44\)) (b\(_1\),b\(_2\)) and rod-like (\(l_{\textrm{p}}/L=5.63\)) (c\(_1\),c\(_2\)) polymers, at temperature \(T=2\) (a\(_1\),b\(_1\),c\(_1\)) and \(T=2.2\) (a\(_2\),b\(_2\),c\(_2\))

The point to note is that our study here is in the level of polymer aggregation, not phase separation. The number of polymers we considered in many polymer simulations of our study is too small to investigate phase separation phenomenon quantitatively and obtain the system phase diagram. As mentioned above, our study here is concentrated on the impact of polymer chains flexibility in two- and many-polymer levels (a bottom up approach). There are well known simulation techniques in the literature for quantitative study of polymer phase separation [68]. However, the threshold temperature for polymer aggregation in our study is not too much different from the critical temperature obtained in simulations with large number of polymers with slab geometry of the simulation box [68]. On the other hand, phase separation temperature for a solution of homopolymers can be calculated using mean field approach (Flory-Huggins solution theory) [62]. To this end, the interaction parameter, \(\chi \), and the length (number of monomers) of each polymer should be known to use in the Flory-Huggins free energy of mixing [62]:

$$\begin{aligned} \overline{\Delta F}_\text {mix}=k_BT[\frac{\phi }{N}\ln {(\phi )}\!+\!(1-\phi )\ln {(1-\phi )}\!+\!\chi \phi (1-\phi )] \end{aligned}$$
(7)

in which, \(\phi \) is the volume fraction of the polymer in the solution. In our study, \(N=16\) and the value of \(\chi \) at each temperature can be obtained using its relation with excluded volume, v, which depends on monomer-monomer interaction potential of Eq. 1 as

$$\begin{aligned} v=\int {(1-exp{[-U_{LJ}(r)/k_BT]})d^3r}. \end{aligned}$$
(8)

The relation between the interaction parameter and the excluded volume reads \(v=(1-2\chi )\sigma ^3\) [62]. In Fig. 7, \(\overline{\Delta F}_\text {mix}\) versus \(\phi \) is shown for different values of temperature, T. As it can be seen, \(T^*\simeq 2.1\) is a threshold value above which the curves are convex at all values of \(\phi \) and below that a concave part appears in the curve. This value for critical temperature obtained from Flory-Huggins mean field theory is not far from the threshold temperature obtained in our simulations.

Fig. 7
figure 7

Dependence of dimensionless free energy of mixing (Flory-Huggins theory) on the polymer volume fraction for a solution of polymers of length \(N=16\) at different values of temperature, T. As it can be seen, at temperature of about 2.1 the shape of the curve changes from fully convex at higher temperatures to a combination of convex and concave parts at lower temperatures shoing that \(T^*\simeq 2.1\) in our study is a reasonable value

4 Conclusion

In conclusion, dependence of dimerization probability and aggregation behavior of coarse-grained bead-spring model polymers on their flexibility has been studied using Langevin dynamics simulations. Dimerization probability is a measure of the polymers tendency for aggregation in a dilute solution. Our results showed that the dimerization probability noticeably depends on the value of the polymers persistence length. At a given value of the attraction strength between the polymers, the flexible and the stiff rod-shaped polymers have higher tendency for dimerization relative to semiflexible polymers. Negligible loss of entropy in the course of dimerization for flexible polymers and very low entropy of rigid polymers before and after dimerization are the main origins of higher dimerization probability in these cases relative to the case of semiflexible polymers. One should note that two semiflexible polymers have to lose a noticeable amount of entropy in the course of dimerization (a dimer of two semiflexible polymer is a rigid object of noticeably lower entropy).

To investigate the impact of the polymers flexibility on their aggregation behaviour, we simulated many-polymer systems at different temperatures for polymers of different persistence length. Our results showed that in agreement with the results of dimerization simulations, the aggregation behaviour depends on the polymers flexibility. The threshold temperature, below which a stable aggregate forms (slightly above this threshold dilute solution of polymers and an aggregate coexist in the system), varies with the value of polymers persistence length. It means for example that one can find a value of temperature for which if the polymers are stiff the solution is in aggregated state, but, if the polymers are semiflexible, the solution is mostly in dispersed state.

Soheila Emamyari, Hossein Fazli and Sarah Mohammadinejad contributed to conceptualization and design of the study and preparation of the first draft. Soheila Emamyari, Davood Fazli and Masoud Mirzaei performed simulations. All authors commented on the manuscript and contributed on data interpretation.

Data sets generated during the current study are available from the corresponding author on reasonable request.