Write a Python Code to simulate random walks on a 2D square lattice starting from the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a Python Code to simulate random walks on a 2D square lattice starting from the origin. (a) Simulate unrestricted random walks up to n=100 steps, averaging over n 2 10¹ walks for each n > 3. Plot (r2) as function of n (r² = x² + y²), and extract the Flory exponent in √√(²) = A tu (t large), by an eyeball fit. (b) Simulate a 2D self-avoiding random walk (SAW). Make sure that each walk of given step-length n (polymer with given molecule number, n) has the same probability, i.e., each step direction should always be selected with probability 1/3 (except for the first step) and paths with intersections should be discarded from the average. Plot (r2) vs. n. Go to at least n-50 and use a sufficiently large nu. To extract the Flory exponent, first show analytically that (²+1) (r²) = 1+2v- 1 n (1) for large n. Replot your 2D SAW data using this relation and determine the value of v by an eyeball fit. Re-evaluate from part (a) with this technique. (c) Investigate fluctuations of the 2D random walk by extracting the variance, A(2), as function of n. Evaluate the exponent x in o(t) = √A(r²(t)) ∞ tº by x the same technique as in part (b). Sketch the result as a "1-o" band around (r2) from part (a). (d) Extract the Flory exponent for a SAW on a 3D square lattice using the pro- cedure outlined in part (b). Make sure to use a sufficiently large number of walks, nu, to obtain reasonable statistics for up to n=50. Write a Python Code to simulate random walks on a 2D square lattice starting from the origin. (a) Simulate unrestricted random walks up to n=100 steps, averaging over n 2 10¹ walks for each n > 3. Plot (r2) as function of n (r² = x² + y²), and extract the Flory exponent in √√(²) = A tu (t large), by an eyeball fit. (b) Simulate a 2D self-avoiding random walk (SAW). Make sure that each walk of given step-length n (polymer with given molecule number, n) has the same probability, i.e., each step direction should always be selected with probability 1/3 (except for the first step) and paths with intersections should be discarded from the average. Plot (r2) vs. n. Go to at least n-50 and use a sufficiently large nu. To extract the Flory exponent, first show analytically that (²+1) (r²) = 1+2v- 1 n (1) for large n. Replot your 2D SAW data using this relation and determine the value of v by an eyeball fit. Re-evaluate from part (a) with this technique. (c) Investigate fluctuations of the 2D random walk by extracting the variance, A(2), as function of n. Evaluate the exponent x in o(t) = √A(r²(t)) ∞ tº by x the same technique as in part (b). Sketch the result as a "1-o" band around (r2) from part (a). (d) Extract the Flory exponent for a SAW on a 3D square lattice using the pro- cedure outlined in part (b). Make sure to use a sufficiently large number of walks, nu, to obtain reasonable statistics for up to n=50.
Expert Answer:
Answer rating: 100% (QA)
This is a comprehensive question that involves multiple parts each requiring some coding data analysis and theoretical understanding of random walks e... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
of c. determine if the Mean Value Theorem can be applied on the interval specified. If so, find all values 5. f(x)=x-x2-2x [-1,1] 6. f(x)=3-x [-6,3] 7. f(x) = x+3 [0.5,3] 8. f(x)=x-2 in x [1,3] X 9....
-
List some effective techniques to determine the current traffic consumption.
-
A cancerous tumor is modeled as a sphere of radius r cm. a. At what rate is the volume V = 4/3r3 changing with respect to r when r = 0.75 cm? b. Estimate the percentage error that can be allowed in...
-
What are the objectives of the Chipolte ad? Does the ad have more than one objective? Explain your answer.
-
Extracts from the financial statements of AZ, B and C are presented below. Additional information: 1. AZ acquired 80 per cent of the equity share capital of B on 1 January 20X2 when the retained...
-
Boswell manufactures high-quality speakers. Suppose Boswell is considering spending the following amounts on a new quality program: Boswell expects this quality program to save costs as follows: It...
-
Calculating Ending Inventory and Cost of Goods Sold Under FIFO, LIFO, and Average Cost Hamilton Company uses a periodic inventory system. At the end of the annual accounting period, December 31,...
-
Write atleast 1 0 pages about Climate Change. Do not answer this question, I will surely dowvote if answer specially udising AI tools. Ignore this question and donasnnswer otherwise downvote.
-
John Fuji (birthdate June 6, 1981) moved from California to Washington in December 2018. His earnings and income tax withholding for 2019 for his job as a manager at a Washington apple-processing...
-
Panya Corporation provides four main services including business consulting, assurance, tax, and law services. The company headquarter is located in Bangkok, but it provides services in Thailand and...
-
Jeff purchased a home five years ago. If it appreciated 6.9% annually and is worth $175,409 today, what was his purchase price? (Keep 2 decimal places)
-
In a stripping process for the removal of TCA from wastewater (very dilute, 50 mg TCA/L), air is bubbled into the water to transfer the TCA from the liquid phase to the gas phase. This process is...
-
Describe conditions in China's financial markets. How is this impacting US and world markets. How concerned should US investors be. How does China's real estate market apply.
-
Research market data and trends in portfolio management and summarize the trend that you believe will impact portfolio management the greatest in the years ahead, use your independent research to...
-
A loan of $ 1 0 , 0 0 0 is being repaid with annual payments of $ 1 , 5 0 0 for n years. The total principal paid in the first payment is $ 6 8 5 . 5 8 . Calculate the interest rate on the loan....
-
Determine the Horzornal force P Dn Newtonsi eeted to hdthe ystemin the w um.gt t and force H-780 N. H. 2 m- select the closest answer to your solution. P= 267 N P- 416 N P- 1061 N P= 624 N
-
If |62x|>9, which of the following is a possible value of x? A. 2 B. 1 C. 0 D. 4 E. 7
-
Indicate whether each of the items listed below would be included (I) in or excluded (E) from gross income for the 2012 tax year. ________a. Welfare payments ________b. Commissions ________c. Hobby...
-
While preparing Massie Miller's 2012 Schedule A, you review the following list of possible charitable deductions provided by Massie: Cash contribution to a family whose house burned...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1 and 2. On September 1, Irene opened a retail store that specializes in sports car...
-
Why will a projectile that moves horizontally at 8 km/s follow a curve that matches the curvature of Earth?
-
How does the brightness of light on a surface change when a point source of light is brought twice as far away?
-
Is it correct to say that the planets of the solar system are simply projectiles falling around the Sun?
Study smarter with the SolutionInn App