You are on page 1of 16

2017-11

Clausius molecular sphere of action in crowded systems: Non-ideal gas


behavior

Hugo Hernandez
ForsChem Research, 050030 Medellin, Colombia
hugo.hernandez@forschem.org

doi: 10.13140/RG.2.2.36384.07681

Abstract

Clausius definition of the molecular sphere of action has proved to be a valuable concept for
describing and understanding the behavior of matter from a molecular point of view. In the
present report, the effect of crowding on the mean sphere of action between Lennard-Jones
molecules is investigated by molecular dynamics simulation. A crowding function is defined in
order to quantify the effect of molecular crowding on the spheres of action. For single
component systems at high temperatures, it was possible to identify three different cases of
crowding: 1) an ideal gas case, where molecules do not affect the sphere of action of their
neighbors, 2) a non-ideal gas case, where the molecular interaction potential of neighbor
molecules interferes causing a distortion in the sphere of action, and 3) a dense case, where
the sphere of action of neighbor molecules overlap, resulting in a permanent collision condition
between neighbors. The results obtained can be generalized for multicomponent systems
using an extension of Lorentz and Berthelot rules of mixing for calculating the overall Lennard-
Jones parameters of the mixture. Using this approach, it is possible to determine the
conditions for transition from the ideal gas to the non-ideal gas behavior, and also from the
non-ideal gas to the dense behavior. An example is presented for air, where an extended
phase-diagram is obtained, showing that the dense behavior approximately corresponds to the
supercritical phase. It was found that the transition density to the dense phase corresponds to
the density of the critical point of air. It is also observed that at ambient conditions, air always
behave as an ideal gas.

Keywords

Clausius, Crowding function, Dense behavior, Ideal gas, Lennard-Jones, Molecular crowding,
Non-ideal gas, Phase diagram, Sphere of action, Supercritical fluids.

30/09/2017 ForsChem Research Reports 2017-11 (1 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

1. Introduction

Previously,[1] it was shown that the concept of the radius of the sphere of action between
molecules, proposed by Clausius in the 1850s,[2] can be used for the estimation of molecular
collision distances and collision kinetics. Although difficult to measure experimentally, the
radius of the sphere of action of low-density systems can be obtained from molecular
simulations for any given interaction potential model and its corresponding interaction
parameters. It was also previously proposed[1] that as the density of the systems increase, a
certain correction function is needed because the presence of other molecules modifies the
net molecular interaction.

The purpose of the present work is to investigate the nature of such correction function, and
to extend the use of Clausius concept of the sphere of action in crowded gaseous systems.

It is also important to remark some of Clausius ideas about the density of molecular
systems:[2]

Suppose, then, there is a space containing a great number of molecules,


and that these are not regularly arranged, the only condition being that the
density is the same throughout, i.e. in equal parts of the space there are the
same numbers of molecules. The determination of the density may be
performed conveniently for our investigation by knowing how far apart
two neighbouring molecules would be separated from one another if the
molecules were arranged cubically, that is, so arranged that the whole
space might be supposed divided into a number of equal very small cubic
spaces, in whose corners the centres of the molecules were situated. We
shall denote this distance, that is, the side of one of these little cubes, by ,
and shall call it the mean distance of the neighbouring molecules.

According to Clausius considerations,


(1.1)

where is the mean distance between neighbouring molecules and is the number density of
the system. The number density is represented in bold font, because following Clausius
original nomenclature, is the radius of the sphere of action.

30/09/2017 ForsChem Research Reports 2017-11 (2 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

2. Clausius sphere of action for pure crowded systems

Let us consider the system depicted in Figure 1, which is a modification of the system previously
considered for low-density systems.[1] The system is composed by 3 molecules. The first
molecule is the reference molecule, and both position and velocities of other molecules will be
expressed relative to this particular molecule. There is a second molecule, identical to molecule
1, whose center is placed at a distance with respect to the center of molecule 1, which
corresponds to the mean distance between neighbouring molecules (Eq. 1.1). Normally, this
second molecule will be moving at random velocities and located at a random position around
molecule 1; however, it will be assumed that molecule 2 remains stationary at a distance ,
aligned horizontally with respect to molecule 1. Even though this is not realistic, on average
that will be the most probable position for a molecule around molecule 1. A third molecule is
considered to move vertically in direction of the two molecules. The expected closest distance
between the centers of molecules 1 and 3 will be given by , whereas the expected closest
distance between molecules 2 and 3 will be given by . Both expected closest distances are
related by:

(2.1)
where . If were larger than , the naming of the molecules would simply be
inverted to meet the condition (2.1).

Figure 1. Graphical representation of the possible effect of two molecules on a third molecule.
The distance between molecules 1 and 2 is given by . The expected closest distances between
molecule 3 and molecules 1 and 2 are given by and , respectively, where . The
deviations in the expected path of molecule 3 refer to the net interaction with molecule 1.

30/09/2017 ForsChem Research Reports 2017-11 (3 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

Given that molecules 1 and 2 are identical, it is expected that their interaction forces on
molecule 3 partially counteract, yielding a weaker net interaction and thus, a smaller radius of
the sphere of action. The equation proposed for describing such behavior, in general terms
is:[1]
( ) ( )( )
(2.2)

where ( ) is a crowding function, such that ( ) when , and ( )


when .

Please notice that refers to the maximum molecular density of the system in the gaseous
state. Beyond this density, the permanent collision between closest neighbors is unavoidable,
causing the motion of the molecules in the system to be highly constrained and potentially
leading to phase change. This dense state, however, remains fluid.

A molecular dynamics (MD) simulation for the system represented in Figure 1 is performed
considering a Lennard-Jones interaction potential with parameters (equilibrium distance)
and (depth of potential well). The simulation was performed in R (https://cran.r-project.org/),
and the algorithm used is presented in Appendix 1. The results obtained for different reduced
relative kinetic energies are summarized in Figure 2.

Figure 2. Reduced mean radius of the sphere of action in crowded systems ( ( ) ), as a


function of the reduced mean distance between molecules ( ) and the reduced relative
kinetic energy ( ) obtained by MD simulation for the Lennard-Jones interaction potential

Solving for the crowding function ( ) from Eq. (2.2) results in:

( )
( )

(2.3)

30/09/2017 ForsChem Research Reports 2017-11 (4 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

Figure 3 presents the transformation into the crowding function using Eq. (2.3) of some of the
results shown in Figure 2. The star superscript (*) indicates a reduced dimensionless variable.

Figure 3. Behavior of the crowding function ( ) for different reduced number densities
( ) and reduced relative kinetic energies ( ) from MD simulation data

The crowding functions depicted in Figure 3 present 3 different regions:

i) An ideal gas region, where the value of the crowding function is zero, ( )
ii) A non-ideal gas region, where the value of the crowding function is ( )
iii) A dense region, where the value of the crowding function is one, ( )

The non-ideal gas region can be described using the following empirical function:

( ) ( ) ( ( ) ( ))

(2.4)

where , and are empirical parameters, which are function of the reduced relative kinetic
energy of the molecules, . Those parameters were fitted by least-squares minimization using
non-linear empirical functions and MD simulation data, yielding the following expressions:

( )
( )
(2.5)

( )
( )
(2.6)

( ) ( ( ( )) )

(2.7)

30/09/2017 ForsChem Research Reports 2017-11 (5 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

The transition from ideal to non-ideal gas ( ) will occur at ( ) , thus

( ) [ ( )]
(2.8)

and therefore:
( )
( ( ( )) )
(2.9)

On the other hand, the transition from the non-ideal gas to the dense phase is expected to
occur at , which for Lennard-Jones interactions, it will be:
( )

( )
(2.10)

Eq. (2.9) is graphically depicted in Figure 4, as a function of the reduced relative kinetic energy
of the molecules. This result is compared with the corresponding values observed directly from
MD simulation.

Figure 4. Reduced density transitions for different reduced relative kinetic energies in systems
with Lennard-Jones interaction: i) From ideal to non-ideal gas (blue solid line: calculated from
Eq. (2.9), red dots: extracted from MD simulation) ii) From non-ideal gas to dense behavior
(green dashed line)

30/09/2017 ForsChem Research Reports 2017-11 (6 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

Even though the fit obtained in the calculation of the transition between ideal and non-ideal
gas behavior is only about 53%, the general behavior is correctly described. Such low fit is
caused by the resolution used in the values of the reduced expected closest distance, which for
larger relative kinetic energies resulted in larger numerical errors.

The behavior of the transition density from ideal to non-ideal behavior can be explained by the
behavior of Clausius sphere of action and of the interaction potential. When the relative kinetic
energy is close to zero, the spheres of action are larger and therefore the transition takes place
at lower densities. As the kinetic energy increases, Clausius spheres of action become smaller
allowing higher values of the transition density. At a certain point, when the kinetic energy is
even higher, the spheres of action approach their minimum size and the motion of the
molecules becomes less dependent of the interaction potential, reaching an almost constant
reduced transition density. This effect is also observed in Figure 5, which shows the transition
point ratios in a plot of the mean distance between molecules to the corresponding radius of
the sphere of action versus the reduced relative kinetic energy. Such ratio can be obtained
from MD simulation or can be calculated using the following expression:

( ( ( )) )
[ ( )] ( )
(2.11)

Figure 5. Transition ratios of mean distance between molecules to radius of the sphere of
action ( ) for different reduced relative kinetic energies in systems with Lennard-Jones
interaction. i) From ideal to non-ideal gas (blue solid line: calculated from Eq. (2.11), red dots:
extracted from MD simulation) ii) From non-ideal gas to dense behavior (green dashed line)

30/09/2017 ForsChem Research Reports 2017-11 (7 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

The shape described by the transition from ideal to non-ideal gas behavior clearly resembles
the shape of the interaction potential. In this sense, the minimum value of the ratio
corresponds to the point where the net interaction momentum is minimum; that is, when the
interference of neighbor molecules on the molecular interaction is maximum.

It can also be observed in Figure 5 that the transition from ideal to non-ideal gas behavior takes
place when the mean distance between molecules is in the range from 2.5 to 3.5 times the
radius of the sphere of action. In other words, when the distance between molecules is larger
than 3.5 times the radius of the sphere of action, no interference effect is expected from
neighbor molecules.

Now, given that the reduced relative kinetic energy can be expressed in terms of the system
temperature and the standard Maxwell-Boltzmann random variable ,[3] as:

(2.12)
then, from Eq. (2.9):

( )
( ) ( )
( ( ) )

( )

( ( )) ( )
(2.13)

The last expression is obtained by solving the corresponding integral of the Maxwell-
Boltzmann distribution for the non-linear function inside the expected value operator.

The behavior of the reduced transition densities as a function of the temperature of the
system, given by Eq. (2.10) and (2.13) is presented in Figure 6.

For practical purposes (high temperatures), it can be seen that the non-ideal gas behavior in
pure systems with Lennard-Jones interaction is observed for mass densities in the range from
about to , where is the mass of a single molecule. Table 1 presents the
transition mass densities for different compounds with Lennard-Jones interaction.

30/09/2017 ForsChem Research Reports 2017-11 (8 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

Figure 6. Reduced density transitions for different reduced thermal energies in systems with
Lennard-Jones interaction: i) From ideal to non-ideal gas (blue solid line: calculated from Eq.
2.13) ii) From non-ideal gas to dense behavior (green dashed line: calculated from Eq. 2.10)

Table 1. High-temperature transition mass densities for different compounds considering a


Lennard-Jones interaction.
Molecule Molecular Lennard-Jones Transition mass density Transition mass density
mass (Da) distance () from ideal to non-ideal from non-ideal to
behavior (kg/m3) dense behavior (kg/m3)
Hydrogen (H2) 2.016 2.915 1.89 11.89
Helium 4.003 2.576 5.44 34.22
Methane 16.040 3.822 6.68 41.98
Neon 20.180 2.789 21.63 135.93
Carbon monoxide 28.010 3.590 14.07 88.47
Nitrogen (N2) 28.014 3.681 13.06 82.08
Ethylene 28.050 4.418 7.56 47.53
Oxygen (O2) 31.998 3.433 18.39 115.57
Argon 39.950 3.418 23.26 146.20
Carbon dioxide 44.010 3.996 16.03 100.79
Krypton 83.800 3.498 45.52 286.11
Xenon 131.300 4.055 45.78 287.76
Values taken from [4]

30/09/2017 ForsChem Research Reports 2017-11 (9 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

3. Clausius sphere of action for multicomponent crowded systems

The results presented in Section 2 were obtained considering that all molecules involved are
identical. In multicomponent systems this is no longer the case, and it is therefore necessary to
consider that all 3 molecules represented in Figure 1 might be different species. In general, it is
possible to say that the number of different possible permutations of molecules in a system
with different components is:

(3.1)

For each of these possibilities, a different radius of the sphere of action will be obtained as a
result of the different interaction between molecules. Also, each possibility will take place with
a different probability which will depend on the composition of the system.

Even though it is possible to perform the simulation for all possible permutations, and calculate
the mean radius of the sphere of action for a system with any given number of components
and any given composition, it is cumbersome to find a generalized mathematical expression
valid for any arbitrary system.

Instead, an approximation based on an extension of Lorentz[5] and Berthelot[6] mixing rules is


proposed for estimating the radius of the sphere of action in multicomponent systems. For
example, if all species in the system are considered to follow the Lennard-Jones interaction
potential, then it is possible to define the following overall interaction parameters for the
system as:

(3.2)

(3.3)

where and are the overall Lennard-Jones parameters for the multicomponent system
with different components, and is the molar fraction of each component .

Using these overall parameters with the equations obtained in Section 2, it is now possible to
estimate the mean radius of the spheres of action for the multicomponent system. Let us
consider for example the transition density from ideal to non-ideal gas behavior in air with the
composition given in Table 2.

30/09/2017 ForsChem Research Reports 2017-11 (10 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

Table 2. Estimated composition of air


Lennard-Jones Lennard-Jones
Mole Molecular mass
Component parameter parameter /kB
fraction (Da)
() (K)
Nitrogen (N2) 0.781 28.014 3.681 91.5
Oxygen (O2) 0.210 31.998 3.433 113
Argon 0.009 39.950 3.418 124
Values taken from [4]

The overall Lennard-Jones parameters of the system using the proposed mixing rules (Eq. 3.2
and 3.3) will be:

(3.4)

(3.5)

The transition density from ideal to non-ideal behavior will be (from Eq. 2.13):

( )
( ) ( )
( ( )) ( )
(3.6)

At room temperature (298.15 K), and , therefore:

( )
(3.7)

Now, considering that the average molecular mass of air is:

(3.8)

Then, the mass density transition from ideal to non-ideal gas behavior for air at room
temperature is .

30/09/2017 ForsChem Research Reports 2017-11 (11 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

Since the mass density of air at sea level (maximum density on Earth) is about , it is safe
to say that at ambient conditions, air behaves as an ideal gas.

Now, the minimum pressure at which non-ideal behavior should begin to be observed for air at
room temperature (298.15 K) will be:

( ) ( )

( ( )) ( )
(3.9)

On the other hand, it is also possible to estimate the transition density from non-ideal gas to
dense behavior (from Eq. 2.10):

( ) ( )
(3.10)
Thus,
( )
(3.11)

and the corresponding transition mass density of air between the non-ideal gas behavior and
the dense behavior is .

Considering that the non-ideal gas behavior of the system can be approximately described by
the following van der Waals equation of state in terms of the Lennard-Jones parameters:[4]

( )( )

(3.12)

then, the system pressure at which the transition from non-ideal gas behavior to the dense
behavior can be described by the following expression:

( )

(3.13)

The constraint on the temperature is included, because at lower temperatures other


interaction effects, not yet considered in the model, become relevant.

30/09/2017 ForsChem Research Reports 2017-11 (12 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

Using the corresponding values for air, Eq. (3.13) becomes:

[ ] [ ]
(3.14)

From Eq. (3.9) and (3.14), and using data from a conventional air phase diagram,[7] the
following extended phase diagram can be obtained (Figure 7):

Figure 7. Extended phase diagram for air, including the ideal gas, non-ideal gas and dense
regions. Red line: Transition between non-ideal gas and dense regions. Green line: Transition
between ideal and non-ideal gas. Blue line: Transition between gas and liquid phases. Purple
line: Transition between liquid and solid phases. Black dashed line: Transition from supercritical
to liquid phase. Black dot: Critical point. Green dot: Normal conditions (293.15 K, 0.101 MPa).

The model developed so far for multicomponent systems shows that the predicted transition
density from non-ideal gas to dense behavior corresponds to the density at the critical point. It
can also be observed that the dense behavior is almost equivalent to the supercritical fluid
condition.

If mean distances between neighbor molecules smaller than those considered in the present
report are used in the simulations, it is possible that new relationships arise from the behavior
of Clausius spheres of action which might describe the transition from gas to liquid, from liquid
to solid, and from the dense (supercritical) region to the liquid or solid phases. This, however, is
the focus of future research.

30/09/2017 ForsChem Research Reports 2017-11 (13 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

4. Conclusion

In the present report, it was possible to show that the density and temperature of a system
have a significant effect on the radii of Clausius molecular spheres of action. The effect of
density can be described by a crowding function, representing the effect of interference in
interaction potentials between neighbor molecules. Molecular dynamic simulations were
performed for understanding the behavior of the crowding functions. As a result, three
different regions were identified in gaseous systems: Ideal-gas, non-ideal gas and dense
(supercritical). The analysis of simulation results allowed predicting transition conditions
between these regions in pure systems (Eq. 2.10 and 2.13). For multicomponent systems, simple
mixing rules (Eq. 3.2 and 3.3) can be used for calculating equivalent overall Lennard-Jones
parameters. An example is presented for air, and the corresponding transition conditions
obtained are summarized in an extended P-T phase diagram (Figure 7).

Acknowledgments

The author gratefully acknowledges the helpful suggestions given by Prof. Jaime Aguirre
(Universidad Nacional de Colombia) and Prof. Silvia Ochoa (Universidad de Antioquia) for
improving the manuscript.

This research did not receive any specific grant from funding agencies in the public,
commercial, or not-for-profit sectors.

References

[1] Hernandez, H. (2017). Clausius sphere of action for different intermolecular potentials.
ForsChem Research Reports 2017-10. doi: 10.13140/RG.2.2.25246.23363

[2] Clausius, R. V. (1859). X. On the mean length of the paths described by the separate
molecules of gaseous bodies on the occurrence of molecular motion: together with some other
remarks upon the mechanical theory of heat. The London, Edinburgh, and Dublin Philosophical
Magazine and Journal of Science, 17(112), 81-91.

[3] Hernandez, H. (2017). Standard Maxwell-Boltzmann distribution: Definition and properties.


ForsChem Research Reports 2017-2. doi: 10.13140/RG.2.2.29888.74244.

[4] Kaznessis, Y. N. (2011). Statistical Thermodynamics and Stochastic Kinetics: An Introduction


for Engineers. Cambridge University Press.

30/09/2017 ForsChem Research Reports 2017-11 (14 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

[5] Lorentz, H. A. (1881). Ueber die Anwendung des Satzes vom Virial in der kinetischen Theorie
der Gase. Annalen der Physik, 248(1), 127-136.

[6] Wisniak, J. (2010). Daniel Berthelot. Part I. Contribution to thermodynamics. Educacin


Qumica, 21(2), 155-162.

[7] Wolfram|Alpha Knowledgebase, Air Phase Diagram (2017). Accessed: 29/09/2017. Link:
http://www.wolframalpha.com/input/?i=%5B%2F%2Fsubstance:air%2F%2F%5D+phase+diagram.

Appendix 1. Molecular Dynamics Simulation for the determination of the radius


of the sphere of action of molecules under a Lennard-Jones interaction in
crowded systems

#Lennard-Jones interaction force function in reduced units


LJF<-function(rr){
rF=(24/rr)*(2*(1/rr)^12-(1/rr)^6)
return(rF)
}

#Single collision simulation function in reduced units


collision2<-function(rd,rk,rl,niter){
coll=0 #Initialization of collision dummy variable
rmin=2^(1/6) #Minimum reduced collision distance
rvy=sqrt(2*rk) #Reduced vertical speed
rvx=0 #Reduced horizontal speed
rx=rd #Reduced horizontal initial position
ry=-20*rd #Reduced vertical initial position
rdt=-2*ry/(niter*rvy) #Reduced simulation time step
rt=0 #Reduced initial time
i=0 #Initialization of iteration counter
while (i<niter) {
rr1=sqrt(rx^2+ry^2) #Update reduced intermolecular distance with molecule 1
rv=sqrt(rvx^2+rvy^2) #Update reduced relative speed
rF1=LJF(rr1) #Update reduced intermolecular force with molecule 1
rFx1=rF1*rx/rr1 #Update reduced horizontal force with molecule 1
rFy1=rF1*ry/rr1 #Update reduced vertical force with molecule 1
rr2=sqrt((rx-rl)^2+ry^2) #Update reduced intermolecular distance with molecule 2
rF2=LJF(rr2) #Update reduced intermolecular force with molecule 2
rFx2=rF2*rx/rr2 #Update reduced horizontal force with molecule 2
rFy2=rF2*ry/rr2 #Update reduced vertical force with molecule 2
rFx=rFx1+ rFx2 #Update net reduced horizontal force
rFy=rFy1+ rFy2 #Update net reduced vertical force

30/09/2017 ForsChem Research Reports 2017-11 (15 / 16)


www.forschem.org
Clausius molecular sphere of action in
crowded systems: Non-ideal gas behavior
Hugo Hernandez
ForsChem Research
hugo.hernandez@forschem.org

rvx=rvx+(rdt*rFx) #Update reduced horizontal speed


rvy=rvy+(rdt*rFy) #Update reduced vertical speed
rx=rx+(rdt*rvx) #Update reduced horizontal position
ry=ry+(rdt*rvy) #Update reduced vertical position
if (rF1>0) { #If the force with molecule 1 becomes repulsive
coll=1 #Set collision dummy variable to 1
break #Stop the dynamic simulation for the present conditions
}
if (rF2>0) { #If the force with molecule 2 becomes repulsive
coll=2 #Set collision dummy variable to 2
break #Stop the dynamic simulation for the present conditions
}
rt=rt+rdt #Update reduced time
i=i+1 #Update iteration counter
}
return(coll)
}

#Main script
rK=c(0.02,0.04,0.1,0.14,0.2,0.4,0.6,0.8,1,2,3,4,5,6,7,8,9,10,15,20)
#Initialization of reduced kinetic energy vector
rEr=1.256*(1+0.4264*log(0.7794+1/rK)) #Mean radius of sphere of action
rrho=array(0, dim=c(20,20)) #Initialization of radius of sphere vector
rl=array(0, dim=c(20,20)) #Init. of reduced mean distance between molecules 1 and 2
niter=4000 #Set number of iterations in MD simulation
for (i in 1:20){ #Iteration loop for reduced kinetic energy
for (k in 1:20){ #Iteration loop for red. mean distance between molecules
rl[i,k]=2+(round(4*rEr[i]-2)*k/20) #Set reduced mean distance between molecules
for (j in 1:300) { #Iteration loop for initial closest reduced distance
rd=min(rl[i,k]/2,round(100*rEr[i])/100+0.01)-((j-1)/200)
#Set closest reduced distance (from largest to smallest)
coll=collision2(rd,rK[i],rl[i,k],niter) #Simulate single collision for these conditions
if (coll>0) { #If collision takes place
rrho[i,k]=rd #Set the reduced radius of sphere of action as the
#reduced closest distance
break #Stop the loop for closest reduced distances
}
}
}
plot(rl[i,],rrho[i,]) #Plot the results
}

30/09/2017 ForsChem Research Reports 2017-11 (16 / 16)


www.forschem.org

You might also like