Hi every one
I try to model collision between two molecules in Forcite or DFTB+.The structure has went through geometry optimization and equilibrated through dynamics at desired temperature 1600k.Then I want to apply a velocity to one of the molecules,so those two molecules can collide at 1600k(at least,the average temperature should be 1600k ).I read a lot of posts about applying velocity in this community,but if I follow those steps,the temperature will change due to the temperature being calculated by average kinetic energy.
Therefore,I write a script to keep the temperature.My idea is to extract the atom velocity of x,y,z after the structure equilibrated at 1600k.And then I calclate the value by such equation,
and I apply the value of sqrt_velocity to x direction.So the intial temperature is near the desired temperature 1600k since the average of kinetic energy is the same as it is at 1600k.However,the temperature increased during the dynamics(the average temperature also increased).So I think my idea is infeasible.And my question is:
(1)How can I keep the desired temperature and make molecule move at the same time during dynamics?
Thanks for reading my post and sript
Sincerely
Li

Hi Li,
The Berendsen thermostat in Forcite subtracts total linear (and, in 0d, angular) momentum before scaling the velocities. This is to avoid the flying ice cube artifact associated with this thermostat. The other thermostats are not subject to this.
Consequently with Berendsen you can simulate a moving, yet thermostatted, object. The reported temperature, however, is based on the total kinetic energy, which includes the kinetic energy of the center of mass motion. You will need to subtract this to get the internal temperature.
I tried this for C60 colliding with a graphite surface. I added 50 Å/ps to the velocity of C60 atoms, in the direction of the surface before starting the simulation(*). I fixed some graphite atoms to prevent the system from carrying on! The arrows show the velocity:
Regards,
Reinier
(*) using the script:
my $doc = $Documents{"graphite (0 0 -1).xsd"};
my $velocity = 50; # A/ps
my $set = $doc->UnitCell->Sets("C60");
my $atoms = $set->Atoms;
foreach my $atom (@$atoms)
{
my $v = $atom->Velocity;
$atom->Velocity = Point(
X=>$v->X,
Y=>$v->Y,
Z=>$v->Z-$velocity);
}
Hi Reinier
I am not sure about my understanding of your answers.As far as I know,the motion of a moleculer can be divided into vibration of the atoms consisting of the molecule(internal motion),rotation and translation of center of mass of the molecule.Each motion corresponds to a kind of energy.And what you did is to subtract the tranlation kinetic energy of the center of mass of the molecule from total energy to get internal temperature(due to the vebration energy).However,what makes me confused is that you add 50 to velocity of C60 atoms,not the velocity of the center of mass of the the C60 molecule.My questions are:
(1)Does adding 50 to velocity of C60 atoms equal to adding 50 to velocity of the center of mass of the C60 molecule?
(2)what kind of velocity is it adding to C60 atoms,vibration velocity of translation velocity of the atoms?
I modified the script and I calculated the most probable velocity of pyrene(3.63 A/ps which I think is the velocity of the center of mass of the molecule) at 1600k via the equation (1)then it was applied to one of pyrene molecules by the script.Here is my result.My question are:
(3)why the mean temperature is not 1600k?
(4)Is there any possibility for translation energy of the center of mass of the molecule transfering into vibration ernergy(internal ernergy) during the collision?If it is possible,the mechanism is nature in MS or I should develop it by my own.
I am so sorry to ask such basic questions,but they are very critical for my work.Look forward to your answer.
Thanks in advance
Sincerely
Li
Hi
To answer part of that question. In Forcite only the atoms have a velocity property so you cannot assign a velocity to the molecule or center of mass object directly. However (if you could) assigning a velocity of 50ps/A to each atom is equivalent to assigning 50ps/A to the molecule. If you simply assign a velocity of 50ps/A (or what ever you decide is appropriate) then that will at least initially correspond to the molecule moving at 50ps/A. This movement of the molecule will have an effect on the system it interacts with and it is likely that some ofthe energy will be converted to vibrational! It may be more appropriate to perform an equilibration period with velocities assigned normally (from a Guassian distribution) to meet your target temperature and then for your collision experiment, switch to use current velocities and then to ADD 50ps/A to the velocities of each atom. The final temperature reported will include a contribution from the vibrational and translational component.
The temperature is simply computed from the kintetic energy and the kinetic energy from the velocity on the atoms:f.kb.T/2> = <1/2 ∑i mi vi.vi> where mi is the particle mass and vi is the total velocity of the atom, T is the temperature reported, Nf the number of degrees of freedom (Nf is typically taken to be 3N-6, with N being the number of atoms). kb is the Boltmann's constant. The right hand side of that expression is the kinetic energy. The <> braces represent ensemble averages. In this calculation there is no attempt to subtract out any temperature resulting from translation or rotation!
Regards
Simon
Hi Li,
If I understand correctly you want to simulate a collision between two pyrene molecules at 1600 K. You could instead simulate the pyrene gas at 1600 K, and sample collision events in this simulation.
You assign a velocity 3.63 A/ps to one molecule; hence the whole system will move in that direction since momentum is conserved. It might be worthwhile to assign opposite velocities to both molecules, such that the COM stays put.
I think the average (root mean square) velocity in one direction is sqrt(RT/M), not sqrt(2RT/M).
Rather than assigning a new velocity, you could redistribute the current translational energy to achieve a collision without changing the temperature. By this I mean simply aligning the molecule velocity vector with the distance vector. Attached script does this.
Hope this helps,
Reinier
Hi Reinier
I am very sorry to disturb you .But,I find the explanation about temperature in text book and help of MS is little difference from yours,which makes me confused.The temperature is measure of average energy stored in active degree of freedoms,which means the vibration and rotation as well as translation degree of freedom will contribute to temperature.And I also notice explanation in help of MS,which states that the degree of freedoms used for temperature calculation are 3n-6 for non-periodic system.
I think 3n-6 degree of freedoms are vibration degree of freedom due to the vibration motion of atoms constituents of molecule(the degree of freedom of center of mass are excluded),thus the reported temperature is vibration temperature(internal temperature),however,you said the temperature also included contribution of degree of center of mass.
I want to simulate collision between two molecules,and I will study the energy transferring between translation of center of mass and vibration(internal motion) and rotation,so this kind of concept is important for me,would you mind making me clear?
And what I did before collsion was geometry optimization for each molecule,then I performed NVT dynamics for each molecule using Berendsen thermostat,finally I performed NVE dynamics at each molecule(There is little difference from what I did earlier.I performed NVT dyanmics for two molecules in the same file in the past,but now,I did it for each molecule at different file).
Sincerely
Li