<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Engineering - Chemical Engineering Archives &ndash; Homework Free Org</title>
	<atom:link href="https://homeworkfree.org/category/engineering-chemical-engineering/feed/" rel="self" type="application/rss+xml" />
	<link>https://homeworkfree.org</link>
	<description>Be Homework Free</description>
	<lastBuildDate>Wed, 04 Nov 2020 22:41:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>

<image>
	<url>https://homeworkfree.org/wp-content/uploads/2020/09/cropped-logo-favicon-32x32.png</url>
	<title>Engineering - Chemical Engineering Archives &ndash; Homework Free Org</title>
	<link>https://homeworkfree.org</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Homework # 7 Numerical Methods in Chemical Engineering</title>
		<link>https://homeworkfree.org/homework-7-numerical-methods-in-chemical-engineering/</link>
					<comments>https://homeworkfree.org/homework-7-numerical-methods-in-chemical-engineering/#respond</comments>
		
		<dc:creator><![CDATA[SmithJ]]></dc:creator>
		<pubDate>Wed, 04 Nov 2020 22:41:36 +0000</pubDate>
				<category><![CDATA[Engineering - Chemical Engineering]]></category>
		<guid isPermaLink="false">https://homeworkfree.org/homework-7-numerical-methods-in-chemical-engineering/</guid>

					<description><![CDATA[<p>Homework # 7 Numerical Methods in Chemical Engineering Problem 1. (100 points) Nanoparticle self-assembly Interactions between nanoparticles can lead to self-assembled arrays that resemble the structure of crystals. In this problem, you will use Metropolis Monte Carlo simulations to describe the distribution of a set of non-charged nanoparticles. We will approximate the interaction between two [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://homeworkfree.org/homework-7-numerical-methods-in-chemical-engineering/">Homework # 7 Numerical Methods in Chemical Engineering</a> appeared first on <a rel="nofollow" href="https://homeworkfree.org">Homework Free Org</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Homework # 7 Numerical Methods in Chemical Engineering</p>
<p>Problem 1. (100 points) Nanoparticle self-assembly Interactions between nanoparticles can lead to self-assembled arrays that resemble the structure of crystals. In this problem, you will use Metropolis Monte Carlo simulations to describe the distribution of a set of non-charged nanoparticles. We will approximate the interaction between two particles using a Lenard-Jones potential: ??(??????) = 4?? [( ?? ?????? ) 12 ? ( ?? ?????? ) 6 ] ??????? ??????= |???? ? ????| where ra and rb are the positions of particle a and b respectively, and the values for ? and ? are provided below. You may assume that the sample at equilibrium follows a Boltzmann distribution with probability of finding the assemble in a state q, ??(??) ? exp(?????????(??)/(??????)), where ????????(??) = ? ? ??(??????) ?? ??=??+1 ?? ??=1 and q is the state vector containing the position of all the nanoparticles in the system. For simplicity, we will consider the self-assembly of a group of N spherical nanoparticles of radius R in two dimensions, and the state vector has the following structure, q = [x1 y1 x2 y2 . xN yN] T .</p>
<p>i. (25 points) Write a function that computes the value of Utot for a given state vector q.</p>
<p>ii. function z = my_fun(x)</p>
<p>iii. z = zeros(size(x,1),3); % allocate output</p>
<p>iv. z(:,1) = x(:,1).^2 &#8211; 2*x(:,1).*x(:,2) + 6*x(:,1) + &#8230;</p>
<p>v. 4*x(:,2).^2 &#8211; 3*x(:,2);</p>
<p>vi. z(:,2) = x(:,1).*x(:,2) + cos(3*x(:,2)./(2+x(:,1)));</p>
<p>vii. z(:,3) = tanh(x(:,1) + x(:,2));</p>
<p>$displaystyle lim_{N rightarrow infty} frac{N_{xi}}{N} = P(xi),$</p>
<p>where P(?) is a given probability distribution (e.g., the Boltzmann distribution P(?) = Z$ ^{-1}$ exp[-?E(?)]) andN ?  is the number of configurations ?  (e.g., the number of configurations generated with a particular arrangement of [x1 y1 x2 y2 . xN yN spins</p>
<p>viii. (40 points) Write a function that performs a Monte Carlo routine with an N_MC Monte Carlo steps, a constant temperature T, and an N number of nanoparticles in the initial state q_0. For each MC step, you should attempt moves of one nanoparticle at a time for all the particles. The function should output a matrix containing the values of the state vector at each MC step in different columns, and a vector containing Utot for each MC step.</p>
<p>$displaystyle P_{xi_n, xi_t} = begin{cases}R=frac{P(xi_t)}{P(xi_n)}, hsp&#8230;&#8230;.2cm} P(xi_t) < P(xi_n), \  1, hspace{.2cm} text{otherwise}. end{cases}$

The Metropolis Monte Carlo algorithm can be described as follows:

function mypi = approxpi(n)

% Input: n = number of points to generate

% Default is n = 1e6

% Larger values of n should perform better

if nargin < 1

n = 1e6;

end

% Generate uniformly distributed points in

% [0, 1] x [0, 1]

xy = rand(n, 2);

% Compute distance from (0.5, 0.5)

r = sqrt((xy(:,1)-0.5).^2+(xy(:,2)-0.5).^2);

% Count fraction of points within 1/2 unit of (0.5, 0.5)

frac = sum(r <= 0.5) / n;

% Since square has side 1, circle has radius (1/2)

% and should have area of pi*(1/2)^2

% frac is approximately pi/4 so pi is approximately 4*frac

mypi = 4*frac;

Step (1): Pick a configuration ?n

Step (2): Pick a trial configuration ?t (usually a configuration similar to ?n) and compute the probability ratio R=p(?t)/p(?n) . Pick a random number p with value between 0 and 1. Make ?n+1=?t if p?R . Otherwise, make ?n+1=?t.

Step (3): Go to (2) replacing ?n by ?n+1 . Step (3) is repeated N times, where N is a sufficiently large number. Note that, according to step (2), the probability of accepting a trial configuration ?t by making ?n+1=?t from a configuration ?n is

$displaystyle P_{xi_n, xi_t} = begin{cases}R=frac{P(xi_t)}{P(xi_n)}, hsp.......2cm} P(xi_t) < P(xi_n), \  1, hspace{.2cm} text{otherwise}. end{cases}$

ix. (35 points) Use your function to generate histograms containing the distribution of nanoparticle distances, Rab, for a set of 16 nanoparticles. Assume that the particles are initially arranged in a square grid of 4x4 nanoparticles, with center-to-center distance between the particles equal to 2R.

Generate graphs for T = 100 K, 500 K, 1000 K. Use a minimum of 100,000 MC steps. Discuss your results. Physical parameters: R = 5 nm, ? = 5 nm, ?/kb = 5000 K.
</p>
<p>The post <a rel="nofollow" href="https://homeworkfree.org/homework-7-numerical-methods-in-chemical-engineering/">Homework # 7 Numerical Methods in Chemical Engineering</a> appeared first on <a rel="nofollow" href="https://homeworkfree.org">Homework Free Org</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://homeworkfree.org/homework-7-numerical-methods-in-chemical-engineering/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
