Code covered by the BSD License
-
H=genmatrix1D(pot,y,mass)
GENMATRIX1D compute matrix for Schroedinger solution in 1D
-
H=genmatrix2D(pot,x,y,massx,m...
GENMATRIX2D compute matrix for Schroedinger solution in 2D
-
[E,psi]=schrsolv1D(pot,x,y,ma...
SCHRSOLV1D solve Schroedinger equation in 1D
-
[E,psi]=schrsolv2D(pot,x,y,ma...
SCHRSOLV2D solve Schroedinger equation in 2D
-
[E,psi]=schrtrack1D(pot,x,y,m...
SCHRTRACK1D refine eigenvalues in 1D
-
[E,psi]=schrtrack2D(pot,x,y,m...
SCHRTRACK2D refine eigenvalues in 2D
-
a=gaasmaterial(x,prop)
GAASMATERIAL material database for GaAs/AlGaAs mertial system
-
add_bias(xyminmax,bias)
ADD_BIAS new biased region
-
add_boundary(varargin)
ADD_BOUNDARY set boundary condition
-
b=extend1D(a,x)
EXTEND1D extrapolate field in 1D
-
b=extend2D(a)
EXTEND2D extrapolate field in 2D
-
buildstructure;
BUILDSTRUCTURE set up structure
-
charge=addqcharge(charge,delt...
ADDQCHARGE add QBOX charge
-
charge=gencharge(phi,tp,varar...
GENCHARGE compute charge density
-
charge=genqcharge(nr,tp,sub,v...
GENQCHARGE compute quantum charge density
-
charge=sumcharge(phi,varargin...
SUMCHARGE collect charge
-
genmatrixpoi
GENMATRIXPOI compute matrix for Poisson solution in 2D and 1D
-
integral=integrate(field,posb...
INTEGRATE integrate a field
-
ret=fermi(order,x);
FERMI complete Fermi integrals
-
rhs=genrhspoi(charge,varargin...
GENRHSPOI form right hand side of Poisson equation
-
runstructure
RUNSTRUCTURE performs computation
-
schrsolve(potential,fl)
SCHRSOLVE solve Schroedinger equation
-
startpotential(startpot)
STARTPOTENTIAL use non-zero startpotential
-
Contents.m
-
bugs.m
-
constants.m
-
howto.m
-
initaquila.m
-
lowdens.m
-
mdsi.m
-
qwrsubst.m
-
readme.m
-
sl.m
-
structures.m
-
wire.m
-
View all files
from
2D Schroedinger Poisson solver AQUILA
by Martin Rother
AQUILA is a 2D Schroedinger Poisson solver for GaAs / AlGaAs semiconductor nanostructures.
|
| integral=integrate(field,posbox)
|
function integral=integrate(field,posbox)
%INTEGRATE integrate a field
%
%integral=integrate(field,posbox)
%
%integrates field over the area defined in posbox
%posbox=[xmin ymin xmax ymax] for 2D
%posbox=[xmin xmax] for 1D
%
%Note: the routine finds the grid nodes contained in the box defined in posbox
% and sums the values of the corresponding nodes weighted by the area covered
% by these nodes. It does not correctly handle positions between nodes.
%Copyright 1999 Martin Rother
%
%This file is part of AQUILA.
%
%AQUILA is free software; you can redistribute it and/or modify
%it under the terms of the BSD License as published by
%the Open Source Initiative according to the License Policy
%on MATLAB(R)CENTRAL.
%
%AQUILA is distributed in the hope that it will be useful,
%but WITHOUT ANY WARRANTY; without even the implied warranty of
%MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
%BSD License for more details.
global aquila_structure aquila_control
%check execution order
if bitget(aquila_control.progress_check,6)==0
error('integrate: You must run BUILDSTRUCTURE before integrating in the structure !')
end
%for 1D simulation extend position box
if length(posbox)==2
posbox=[posbox(1) 0 posbox(2) 0];
end
%find position of given box within global grid
[ix,iy]=boxindex(aquila_structure.xpos,aquila_structure.ypos,posbox);
ix=[ix ix(end)+1];
if aquila_control.mode==2
iy=[iy iy(end)+1];
end
%summation weighted by boxvolume
integral=sum(sum(field(iy,ix).*aquila_structure.boxvol(iy,ix)));
|
|
Contact us at files@mathworks.com