Polymer Physics - Radius of Gyration

Click For Summary
SUMMARY

The discussion centers on calculating the Radius of Gyration (R_g) for polymers using Python and a Monte Carlo Metropolis algorithm. The user is confused about the averaging process involved in the equations provided for R_g, specifically regarding the notation and the transition from vector differences to scalar results. The two expressions for R_g are clarified: one involves the center of mass, while the other averages over pairs of points. The user seeks guidance on efficiently computing R_g for multiple polymer configurations to plot results against the number of monomers, N.

PREREQUISITES
  • Understanding of polymer physics concepts, specifically Radius of Gyration.
  • Proficiency in Python programming for scientific computing.
  • Familiarity with Monte Carlo simulation techniques, particularly the Metropolis algorithm.
  • Knowledge of vector mathematics and averaging techniques in statistical mechanics.
NEXT STEPS
  • Research the implementation of the Monte Carlo Metropolis algorithm in Python for polymer simulations.
  • Learn about vector operations in Python, focusing on NumPy for efficient calculations.
  • Explore statistical mechanics principles related to ensemble averages and their application in polymer physics.
  • Investigate optimization techniques for reducing computational time in simulations of polymer configurations.
USEFUL FOR

Researchers and students in polymer physics, computational chemists, and software developers working on simulations of polymer behavior and properties.

ChrisJ
Messages
70
Reaction score
3
I was not sure if this was the best place for this, it could fit here, in the Chemisty section or the Programming section. So feel free to move if needed.

Essentially I have been modeling polymers in python and using a Monte Carlo, Metropolis type algorithm, to minimise its energy into equilibrium from its intial state governed by a 3D random walk (not on a lattice).

I don't know why I am having so much trouble with this, probably because of different sources calling it different things, or using same notation but using it to refer to different bits. But anyway, all I am trying to do is to calculate the Radius of Gyration for my polymer once it has reached equilibrium.

I have tried to program these two equivalent expressions (below) for the radius of gyration, given in the same textbook, but a couple things confuse me which they don't explain.

##R_g^2 = \frac{1}{N+1} \sum_{i=0}^N \left < ( \textbf{r}_i - \textbf{r}_G )^2 \right > ##
where ## \textbf{r}_G ##, the centre of mass, is given by ## \textbf{r}_G = \frac{1}{N+1} \sum_{i=1}^N \textbf{r}_i ##

And also
##R_g^2 = \frac{1}{2(N+1)^2} \sum_{i,j=0}^N \left < ( \textbf{r}_i - \textbf{r}_j )^2 \right > ##

where the angle brackets represent averaging, but I am confused with what is being averaged? In the notation is is clear that ##R_g^2## is a scalar, but following the equation I end up with a vector still, so it must come out of the averaging,

but if one finds the difference between two vectors, you end up with a vector, if one squares a vector you end up with a vector, and then it asks to take the average... Is the radius of gyration only applicable to many instances of a polymer configuration. Like for example if one did 100 different configurations, then the radius of gyration is applicable to that set of 100 configurations, like with the rms distance in random walks?

I was told by my tutor to find the Radius of gyration of my system in equilibrium and plot vs N, yet it takes like 2-3 hours of the code running to get one polymer configuration from its starting point to equilibrium. So to get a decent set of configurations for N, and then do it x10 to get a plot vs N is going to take like a week of my computer @ 100% running code.

Any guidance on the Radius of Gyration is appreciated.
 
Physics news on Phys.org
Per Wikipedia-radius of gyration-molecular applications:

"Since the chain conformations of a polymer sample are quasi infinite in number and constantly change over time, the "radius of gyration" discussed in polymer physics must usually be understood as a mean over all polymer molecules of the sample and over time. That is, the radius of gyration which is measured as an average over time or ensemble:"

Wiki's equation shows the summation within the angular brackets...?

"where the angular brackets <...> denote the ensemble average."
 
ChrisJ said:
if one squares a vector you end up with a vector,
No. The dot product of a vector with itself is the square of the length of the vector. The cross product of a vector with itself is zero. (ri - rG)2 must mean |ri - rG|2
 
mjc123 said:
No. The dot product of a vector with itself is the square of the length of the vector. The cross product of a vector with itself is zero. (ri - rG)2 must mean |ri - rG|2

Its funny. I know that relationship like the back of my hand, yet spent hours last night trying to figure this crap out, so caught up in a mix between formal mathematical notation and programming language notation, and the fact that if one just programs the equation using arrays of length three for vectors, squaring an array is a perfectly valid operation (where the components are simply squared). And my textbook doesn't help when it mixes notation, in the same chapter/section from the one I had in my post (standard ()^2 brackets) and ||^2 for different things. Was very tired last night!

Makes sense.
 
bahamagreen said:
Per Wikipedia-radius of gyration-molecular applications:

"Since the chain conformations of a polymer sample are quasi infinite in number and constantly change over time, the "radius of gyration" discussed in polymer physics must usually be understood as a mean over all polymer molecules of the sample and over time. That is, the radius of gyration which is measured as an average over time or ensemble:"

Thanks, the averaging over time bit makes more sense to me in my situation. I've gotten so used to relying on textbooks over the internet that sometimes I don't even think to check places like wikipedia.

Thanks, makes a bit more sense now.

bahamagreen said:
Wiki's equation shows the summation within the angular brackets...?

My textbook showed them both, saying they were equivalent.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K