6th_Sem_02 Plotting variation of E & Cv with T for BE & FD Statistics for 2 particles in 2 single state system using Python & Matplotlib
Plotting variation of Energy(E) & Specific heat at constant Volume(Cv) with Temperature(T) for Maxwell-Boltzmann & Fermi-Dirac Statics for 2 particles in 2 single state system using Python & Matplotlib
FOR MB STATISTICS
Since the particles are identical in MB statistics, i.e. bosons are indistinguishable,
Configuration
|
Energy of the configuration (Ei)
|
Number of states
(gi)
|
|
0
|
|||
AA
|
-
|
0
|
1
|
-
|
AA
|
2๐ด
|
1
|
A
|
A
|
1
|
|
The Partition function of the system is,
The mean energy of the system,
Now,
Output:
If you change the program, post your program in the comments. Believe me it is very interesting to modify and create your own program.
Thanks for reading. If you have any questions, comment below. I'll try to help it.
Now,
Now,
or,
for simplification let us assume, ๐=1 &
So now,
Now it's time to write a program that can plot these functions, you can use this program or can modify it for more customisation.
Output:
![]() |
| This is the output of the program |
FOR FD STATISTICS
The fermions are indistinguishable & they obey Pauli exclusion principle, so no two fermions can have the same quantum state.
Configuration
|
Energy of the configuration (Ei)
|
Number of states
(gi)
|
|
0
|
|||
A
|
A
|
1
|
|
So the simplified Partition function & energy functions are,
The program for plotting the curve is,
Thanks for reading. If you have any questions, comment below. I'll try to help it.


Comments
Post a Comment