molecular dynamics and Monte carlo, C/C++ Programming

Assignment Help:
Molecular dynamics for a Lennard-Jones system (in C++)
1. Write a function which reads in the input variables of a molecular dynamics simulation of a
Lennard-Jones system. The input variables are the temperature, density, number of particles, a
flag to determine the type of lattice, e.g. simple cubic, face-centered cubic, body-centered cubic
(later also the number of time steps).
2. Write a function which sets upthe initial positions of a molecular dynamics simulation.
3. Write a function which sets up the initial velocities of a molecular dynamics simulation.
4. Write a molecular dynamics algorithm based on the Verlet algorithm.
Calculate the average kinetic energy, potential energy and their standard deviations. Also produce
plots of the kinetic, potential, and total energiesi and check if energy is conserved.
Monte Carlo for a Lennard-Jones system (in C++)
Based on the setup for the molecular dynamics program, write a Monte Carlo code for a
Lennard-Jones system.
Calculate the acceptance ratio. Calculate the average potential energy and compare it to the result of
a molecular dynamics run with the same parameters (density, number of atoms, temperature).

Related Discussions:- molecular dynamics and Monte carlo

How do i allocate multidimensional arrays by new? , Can I free() pointers a...

Can I free() pointers allocated  along with new? Can I delete pointers allocated along with malloc()? A: No. It is completely legal, moral, and wholesome to employ malloc() a

Student, Ask4. Write a query to display the columns listed below. The query...

Ask4. Write a query to display the columns listed below. The query should list each customer in which the video rental is overdue. The Days_Overdue column should calculate the numb

Array, If an array holds integer, each of which is four bytes long, how man...

If an array holds integer, each of which is four bytes long, how many bytes from the base location of the array is the location of the fifth element?

Algorithm and flowcharts, algorithm to find out all the factors of given po...

algorithm to find out all the factors of given positive integers

Functions and stack frame, Each function has its own stack frame between %f...

Each function has its own stack frame between %fp and %sp. Let Caller calls Callee. Then Caller's %sp becomes callee's %fp, and callee's %sp set to be a new value (a smaller one be

C program for string address, C Program for STRING ADDRESS #include std...

C Program for STRING ADDRESS #include stdio.h> #include conio.h> #include string.h> void main() {           char *name;           int length;           cha

Declaration of variables in cpp, Declaration of Variables: Variables ar...

Declaration of Variables: Variables are declared as follows: int a; float b;   Assigning value to variables: int a = 100; Declaring and assigning is called ini

Rules of operator overloading, Rules of Operator Overloading It is ...

Rules of Operator Overloading It is a function defined to an operator with new term or meaning. It cannot produce new operator. It cannot modified the meaning of th

Explain pointers to objects, Pointers to Objects Passing and returning ...

Pointers to Objects Passing and returning of objects is, though, not very efficient since it includes passing and returning a copy of the data members. This problem can be elim

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd