image thumbnail
from FEMQWEBS by Khai Quang Le
Numerical calculation of all band edge energies in single quantum well.

[index]=feeldof1(iel,nnel,ndof)
%***************************************************************************************
% FEMQWEBS @Finite element method for quantum well electronic band structure calculation
% | ------------ |
% | Description: |
% | ------------ |
% The tool box provides the procedure to calculate all band edge energies 
% and corresponding wavefunctions in sinlge quantum square well using
% Finite Element Method.
% | ------------ |
% | Author:      |
% | ------------ |
% Full name: Le Quang Khai
% Email: ronaldokhai@yahoo.com or lqkhai@ajou.ac.kr
%***************************************************************************************
function [index]=feeldof1(iel,nnel,ndof)
% Purpose:
% Compute system dofs associated with each element in 1D problem
edof=nnel*ndof;
start=(iel-1)*(nnel-1)*ndof;
for i=1:edof
    index(i)=start+i;
end

Contact us at files@mathworks.com