- #1
nil1996
- 301
- 7
Hello PF
i was studying rotational motion
it is given in my textbook that the moment of inertia of a rod of mass M and length L about an axis passing through the center of rod and perpendicular to the rod is ML2/12
This formula was prepared using calculus.
So i experimented...
a assumed a rod of length 101 atoms of copper.its atomic mass is 63.546. and Van der waals radius of 140pm.
so i made a computer program to calculate the moment of inertia of the rod by both methods
1] calculating the moment of inertia by each atom. (first method)
2] using that formula by Newton. (second method)
(You can skip the code)
The code in c++ is below:
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int i=0;
int distance=280;
int diameter=280;
float mass=63.546;
float moment1=0.0;
float moment2=0.0;
int length=28000;
for(int i=0;i<50;i++)
{
moment1=mass*distance*distance; //calculates the moment of single atom
distance=distance+diameter; //increases the distance
moment2=moment2+moment1; //passes its value
}
cout<<"moment by nils method comes to be :"<<moment2*2<<endl;
cout<<"moment by Newtons method comes to be :"<<101*mass*length*length/12<<endl;
getch();
}
the results come
1]4.27705 (by first method)
2]4.19319 (second method)
the result of the above code is in moment.zip ( in the attachment)
also check if i have gone wrong anywhere:tongue2:
i was studying rotational motion
it is given in my textbook that the moment of inertia of a rod of mass M and length L about an axis passing through the center of rod and perpendicular to the rod is ML2/12
This formula was prepared using calculus.
So i experimented...
a assumed a rod of length 101 atoms of copper.its atomic mass is 63.546. and Van der waals radius of 140pm.
so i made a computer program to calculate the moment of inertia of the rod by both methods
1] calculating the moment of inertia by each atom. (first method)
2] using that formula by Newton. (second method)
(You can skip the code)
The code in c++ is below:
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int i=0;
int distance=280;
int diameter=280;
float mass=63.546;
float moment1=0.0;
float moment2=0.0;
int length=28000;
for(int i=0;i<50;i++)
{
moment1=mass*distance*distance; //calculates the moment of single atom
distance=distance+diameter; //increases the distance
moment2=moment2+moment1; //passes its value
}
cout<<"moment by nils method comes to be :"<<moment2*2<<endl;
cout<<"moment by Newtons method comes to be :"<<101*mass*length*length/12<<endl;
getch();
}
the results come
1]4.27705 (by first method)
2]4.19319 (second method)
the result of the above code is in moment.zip ( in the attachment)
also check if i have gone wrong anywhere:tongue2:
Attachments
Last edited: