How to Solve Laser Rate Equations Using Matlab?

Click For Summary

Homework Help Overview

The discussion revolves around solving laser rate equations using Matlab, specifically focusing on plotting the light-current characteristic of a laser (Pout vs I) through numerical methods such as ode45. Participants are exploring the formulation of the equations and the relationships between variables involved in the problem.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the formulation of the rate equations and the derivatives involved. There are questions regarding the clarity of the equations, the definitions of variables, and how to relate Pout to the ODEs. Some participants seek to understand the time dependence of the derivatives.

Discussion Status

The discussion is ongoing, with participants seeking clarification on the equations and their relationships. Some guidance has been offered regarding the need for clearer definitions of variables and the structure of the equations. Multiple interpretations of the problem are being explored, particularly concerning the setup of the ODEs and their implications for plotting.

Contextual Notes

Participants are working within the constraints of homework guidelines, which may limit the amount of direct assistance provided. There is an emphasis on understanding the relationships between the variables and the equations rather than simply obtaining a solution.

mya246
Messages
4
Reaction score
0
Hi, is there anyone familiar with rate equation solving using Matlab? I need help on this
 
Physics news on Phys.org
Hi mya, welcome to PF!

You need to be more specific. What equation are you trying to solve? What exactly is the problem you are having?
 
I need to plot the light-current characteristic of laser (Pout vs I) by solving using ode45.

dy(1)= ((ni*I)/(q*V))-(N/tau)-(v_g*a*((N-N_tr)/(1+epsilon*N_p))*N_p);
dy(2)= (T*v_g*a*((N-N_tr)/(1+epsilon*N_p))*N_p) + (B_sp*T*R_sp) - (N_p/tau_p);

Pout = N_p*Vp*h*v*alpha_m*v_g;

how can I do that?
 
DrClaude said:
Hi mya, welcome to PF!

You need to be more specific. What equation are you trying to solve? What exactly is the problem you are having?


I need to plot the light-current characteristic of laser (Pout vs I) by solving using ode45.

dy(1)= ((ni*I)/(q*V))-(N/tau)-(v_g*a*((N-N_tr)/(1+epsilon*N_p))*N_p);
dy(2)= (T*v_g*a*((N-N_tr)/(1+epsilon*N_p))*N_p) + (B_sp*T*R_sp) - (N_p/tau_p);

Pout = N_p*Vp*h*v*alpha_m*v_g;

how can I do that?
 
I'm sorry, but this is not clear at all. You have dy(1) and dy(2), but I don't see any y(1) or y(2). And these are the derivatives with respect to what? And how does Pout relate to those ODEs?
 
DrClaude said:
I'm sorry, but this is not clear at all. You have dy(1) and dy(2), but I don't see any y(1) or y(2). And these are the derivatives with respect to what? And how does Pout relate to those ODEs?

sorry for that y(1) = N, y(2) = N_p. How can I plot the Pout vs current? Pout is related to N_p by solving the ODE
 
mya246 said:
sorry for that y(1) = N, y(2) = N_p.
How can I plot the Pout vs current? Pout is related to N_p by solving the ODE
I'm sorry, but I'm still not clear on what you are solving. Are the derivatives with respect to time?
 
rate equation

clc
clear all
close all
tau_s = 3e-9;
N0 = 1e24;
A =1e-12;
P0 = 1/(A*tau_s);
TSPAN = [0 10];
Y0 =[0 0];
[T,Y] = ODE45(@rate_equation,TSPAN,Y0);
subplot(2,1,1)
plot(T*tau_s ,Y(:,1)*N0)
title('carriers density in high laser level') % carriers density in high laser level
subplot(2,1,2)
plot(T*tau_s ,Y(:,2)*P0)
title('photons density in activer region') % photons density in activer region
And this is the function.
function dy = rate_equation(t,y)
dy = zeros(2,1);
tau_s = 3e-9; % carriers lifetime
tau_p = 1e-12; % photons lifetime
A = 1e-12; % linear gain costant
N0 = 1e24; % trasparency carries density
V = 3.75e-14; % modal volume
gamma = 1e-5; % gain compression factor
q = 1.6e-19; % electron charge
I0 = N0*q*V/tau_s; % trasparency current
tau_norm = tau_s/tau_p;
eta = A*tau_p*N0; % efficiency
I = 2.5*I0; % pumping current ( try: from I0 to 3*I0 for example ...and see what happens!)
dy(1)= I/I0 -y(2)*(y(1) - 1) -y(1);
dy(2) = tau_norm*(y(2)*(eta*(y(1) - 1) -1) + gamma*eta*y(1))
 
Last edited:
I hope that it would be helpful,

Can anyone help me by giving MATLAB code to simulate semiconductor laser rate equation by finite difference methord. i wrote a code but it is not working. please help me.
 
  • #10
qzsas
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 0 ·
Replies
0
Views
319
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 10 ·
Replies
10
Views
8K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K