Skip to main content

Plot the following functions with energy at different temperatures. a) Maxwell-Boltzmann distribution b) Fermi-Dirac distribution c) Bose-Einstein distribution , . - Scilab Solution

a) Maxwell-Boltzmann distribution

b) Fermi-Dirac distribution 

c) Bose-Einstein distribution



a) Maxwell-Boltzmann distribution

// Define the constants and energy range

mu = 0.0;

tempE1 = 0.1;

tempE2 = 0.5;

eps = [0.01:0.01:2]';


// Calculate the distribution functions

feps1 = exp(-(eps-mu)/tempE1);

feps2 = exp(-(eps-mu)/tempE2);


// Plot the distribution functions

clf();

plot2d(eps, feps1, style = 2);

plot2d(eps, feps2, style = 3);

xgrid();

xlabel("$\epsilon$", "fontsize", 5, "color", black);

ylabel("$f(\epsilon)$", "fontsize", 5);

title("Maxwell-Boltzmann distribution at different temperatures");


// Display a legend for the two curves

legend(["T = " + string(tempE1), "T = " + string(tempE2)], location = "northwest");


b) Fermi-Dirac distribution 


// Define the constants and energy range

mu = 2.0;

tempE1 = 0.1;

tempE2 = 0.5;

eps = [0.01:0.01:6]';


// Calculate the distribution functions

feps1 = 1.0./(exp((eps-mu)/tempE1) + 1.0);

feps2 = 1.0./(exp((eps-mu)/tempE2) + 1.0);


// Plot the distribution functions

clf();

plot2d(eps, feps1, style = -7);

plot2d(eps, feps2, style = -9);

xgrid();

xlabel("$\epsilon$", "fontsize", 5, "color", black);

ylabel("$f(\epsilon)$", "fontsize", 5);

title("Fermi-Dirac distribution at different temperatures");


// Display a legend for the two curves

legend(["T = " + string(tempE1), "T = " + string(tempE2)], location = "northeast");


c) Bose-Einstein distribution


mu = 2.0;

tempE1 = 0.1;

tempE2 = 0.5;

eps = [0.01:0.01:4.2]';


feps1 = 1.0./(exp((eps-mu)/tempE1)+1.0);

feps2 = 1.0./(exp((eps-mu)/tempE2)+1.0);


plot2d(eps,[feps1],2,rect=[0,0,4,2])

plot2d(eps,[feps2],3,rect=[0,0,4,2])


xlabel("$\epsilon$", "fontsize", 5, "color", "black");

ylabel("$f(\epsilon)$", "fontsize", 5);

title("Bose-Einstein distribution at different temperatures");


legend(["T = " + string(tempE1); "T = " + string(tempE2)], location = "northeast");




Comments

Popular posts from this blog

Symmetric Nature of Dielectric Tensor

Introduction  Have you ever wondered why certain materials exhibit unique optical properties? Why do some materials allow light to pass through them easily, while others reflect or absorb it? The answer lies in the underlying physical properties of these materials, including their dielectric tensor. The dielectric tensor is a mathematical construct that describes the relationship between an electric field and the resulting polarization of a material. It is a crucial parameter in understanding the optical properties of materials and is often used in the design and fabrication of advanced optical devices, such as lenses, filters, and displays. History of Dielectric Tensor The concept of a dielectric tensor dates back to the late 19th century when James Clerk Maxwell first introduced the idea of polarization in dielectric materials. In 1893, the German physicist Heinrich Hertz discovered that when electromagnetic waves pass through a dielectric material, they induce electric and magne...

Frequency Spectrum

Introduction Have you ever wondered how your favorite radio station or Wi-Fi router can transmit signals wirelessly? The answer lies in the frequency spectrum, a fundamental concept in the field of communication engineering. In this blog post, we will explore what the frequency spectrum is, why we study it, its history, main concepts, equations, examples, applications, and a conclusion. What is Frequency Spectrum? The frequency spectrum is the range of frequencies of electromagnetic waves that can be used for communication purposes. It is a continuous range of frequencies starting from zero Hz (DC) to infinity. The frequency spectrum is divided into different bands, each with a specific range of frequencies. The frequency bands are allocated to different communication services like radio and TV broadcasting, mobile communication, Wi-Fi, Bluetooth, and many more. Why do we study Frequency Spectrum? The frequency spectrum is an essential concept in communication engineering. We study it...

πŸ“± CDMA (Code Division Multiple Access

πŸ“± CDMA (Code Division Multiple Access): CDMA, or Code Division Multiple Access, is another technology used in mobile communication πŸ“‘πŸŒ. It's like a secret coding language that allows multiple users to share the same frequency band simultaneously, like a radio channel πŸ“»πŸŽ™️. Let's explore CDMA in more detail: What is CDMA? πŸ“‘πŸŒ: CDMA is a digital cellular technology that uses a spread spectrum technique to allocate radio frequencies πŸ“Ά. Unlike GSM, which uses different frequency channels for different users, CDMA allows multiple users to share the same frequency band using unique codes. It's like everyone speaking in their secret code language at the same time! Spreading Codes πŸ”‘: CDMA assigns unique spreading codes πŸ”‘ to each user. These codes are like secret keys that differentiate one user from another. When a user makes a call or sends data, their signals are spread across a wider frequency band using the assigned code. It's like turning up the volume on a specifi...