亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? genrhspoi.m

?? AQUILA is a MATLAB toolbox for the one- or twodimensional simulation of %the electronic properties
?? M
字號(hào):
function rhs=genrhspoi(charge,varargin)

%GENRHSPOI form right hand side of Poisson equation
%
%rhs=genrhspoi(charge)
%rhs=genrhspoi(charge,flag)
%
%for a given charge distribution and the structure definition in the global variables
%computes the right hand side of non-linear Poisson equation (flag=0, default).
%If flag=1 then the right hand side of the boundary condition equations are 
%set to zero. This is needed for the generation of the Jacobian.

%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 GNU General Public License as published by
%the Free Software Foundation; either version 2 of the License, or
%(at your option) any later version.
%
%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
%GNU General Public License for more details.
%
%You should have received a copy of the GNU General Public License
%along with AQUILA; if not, write to the Free Software
%Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

global aquila_structure aquila_control aquila_material
constants

%check for correct progress
if bitget(aquila_control.progress_check,6)==0
   error('genrhspoi: You must run BUILDSTRUCTURE before generating Poisson RHS !')
end

%some output for the user
if aquila_control.verbose>0
   disp('genrhspoi: setting up rhs for Poisson solver')
end

%the size of the structure
nx=length(aquila_structure.xpos)-2;
ny=length(aquila_structure.ypos)-2;

if aquila_control.mode==2 %2D-simulation   
   bv=aquila_structure.boxvol(2:end-1,2:end-1);
   
   %form the right hand side according to charge, its just this line
   rhs=4*pi*E0E0*charge(2:end-1,2:end-1).*bv;
   
   %now incorporate the boundary conditions
   %extend matrix by the boundary nodes
   rhs=[zeros(1,nx+2);zeros(ny,1) rhs zeros(ny,1);zeros(1,nx+2)];
   
   %set boundary conditions if necessary
   if (nargin==1)|((nargin==2)&(varargin{1}==0))      
      %bottom
      %find all the boundary conditions at the bottom and care for overlapping regions
      btype=zeros(size(aquila_structure.xpos));
      bval=btype;
      bindex=find(aquila_structure.bcond(:,3)==BOTTOM);
      for i_count=1:length(bindex)
         ix=intersect(find(aquila_structure.bcond(bindex(i_count),1)<=aquila_structure.xpos),...
            find(aquila_structure.bcond(bindex(i_count),2)>=aquila_structure.xpos));
         bval(ix)=aquila_structure.bcond(bindex(i_count),5);
         btype(ix)=aquila_structure.bcond(bindex(i_count),4);
      end
      %now we have for every node at the bottom the type in 'btype'.
      %find the field-type BCs and scale them by the grid spacing.
      %this is necessary to ensure correct physical units of the equation.
      ix=find(btype==FIELD);
      if ~isempty(ix)
         bval(ix)=bval(ix)*aquila_structure.hy(1);
      end
      %find the potential-type BCs and subtract the bias voltage
      %at the nodes. This is necessary, to ensure, that the surface potential
      %refers to the same original unbiased Fermilevel.
      ix=find(btype==POTENTIAL);
      if ~isempty(ix)
         bval(ix)=bval(ix)+aquila_material.bias(1,ix);
      end
      %finally set insert the values into the rhs-matrix
      rhs(1,:)=bval;
      
      %now follows the same for the other boundaries
      
      %top
      btype=zeros(size(aquila_structure.xpos));
      bval=btype;
      bindex=find(aquila_structure.bcond(:,3)==TOP);
      for i_count=1:length(bindex)
         ix=intersect(find(aquila_structure.bcond(bindex(i_count),1)<=aquila_structure.xpos),...
            find(aquila_structure.bcond(bindex(i_count),2)>=aquila_structure.xpos));
         bval(ix)=aquila_structure.bcond(bindex(i_count),5);
         btype(ix)=aquila_structure.bcond(bindex(i_count),4);
      end
      ix=find(btype==FIELD);
      if ~isempty(ix)
         bval(ix)=bval(ix)*aquila_structure.hy(end);
      end
      ix=find(btype==POTENTIAL);
      if ~isempty(ix)
         bval(ix)=bval(ix)+aquila_material.bias(end,ix);
      end
      rhs(end,:)=bval;
      
      %we also need BC's on the left and right side
      %if we don't have periodic boundary conditions in x-direction
      if aquila_control.periodic~=1
         
         %left
         btype=zeros(ny,1);
         bval=btype;
         bindex=find(aquila_structure.bcond(:,3)==LEFT);
         for i_count=1:length(bindex)
            iy=intersect(find(aquila_structure.bcond(bindex(i_count),1)<=aquila_structure.ypos(2:end-1)),...
               find(aquila_structure.bcond(bindex(i_count),2)>aquila_structure.ypos(2:end-1)));
            bval(iy)=aquila_structure.bcond(bindex(i_count),5);
            btype(iy)=aquila_structure.bcond(bindex(i_count),4);
         end
         iy=find(btype==FIELD);
         if ~isempty(iy)
            bval(iy)=bval(iy)*aquila_structure.hx(1);
         end
         iy=find(btype==POTENTIAL);
         if ~isempty(iy)
            bval(iy)=bval(iy)+aquila_material.bias(iy+1,1);
         end
         rhs(2:end-1,1)=bval;
         
         %right
         btype=zeros(ny,1);
         bval=btype;
         bindex=find(aquila_structure.bcond(:,3)==RIGHT);
         for i_count=1:length(bindex)
            iy=intersect(find(aquila_structure.bcond(bindex(i_count),1)<=aquila_structure.ypos(2:end-1)),...
               find(aquila_structure.bcond(bindex(i_count),2)>aquila_structure.ypos(2:end-1)));
            bval(iy)=aquila_structure.bcond(bindex(i_count),5);
            btype(iy)=aquila_structure.bcond(bindex(i_count),4);
         end
         iy=find(btype==FIELD);
         if ~isempty(iy)
            bval(iy)=bval(iy)*aquila_structure.hx(end);
         end
         iy=find(btype==POTENTIAL);
         if ~isempty(iy)
            bval(iy)=bval(iy)+aquila_material.bias(iy+1,end);
         end
         rhs(2:end-1,end)=bval;
         
         %if we have periodic boundary conditions in x-direction
      else
         rhs(2:end-1,1)=4*pi*E0E0*charge(2:end-1,1).*...
            (aquila_structure.boxvol(2:end-1,1)+aquila_structure.boxvol(2:end-1,end));
         rhs(:,end)=zeros(ny+2,1);
      end
   end
   %now simply make rhs a vector
   rhs=rhs';
   rhs=rhs(:);
   
else %1D-simulation
   
   bv=aquila_structure.boxvol(2:end-1);
   
   %form the right hand side according to charge
   rhs=4*pi*E0E0*charge(2:end-1).*bv;
   
   %incorporate the boundary conditions
   rhs=[0 rhs 0];
   
   %set BCs if necessary, this is basically the same as in the 2D-simulation part above
   if (nargin==1)|((nargin==2)&(varargin{1}==0))
      %left
      bindex=find(aquila_structure.bcond(:,3)==LEFT);
      if ~isempty(bindex)
         bindex=bindex(end);
         if aquila_structure.bcond(bindex,4)==FIELD
            rhs(1)=aquila_structure.bcond(bindex,5);
         else
            rhs(1)=(aquila_structure.bcond(bindex,5)+aquila_material.bias(1))/aquila_structure.hx(1);
         end   
      end
      
      %right
      bindex=find(aquila_structure.bcond(:,3)==RIGHT);
      if ~isempty(bindex)
         bindex=bindex(end);
         if aquila_structure.bcond(bindex,4)==FIELD
            rhs(end)=aquila_structure.bcond(bindex,5);
         else
            rhs(end)=(aquila_structure.bcond(bindex,5)+aquila_material.bias(end))/aquila_structure.hx(end);
         end   
      end
   end
   
   rhs=rhs';
end   

   

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精久久久久久久久久久| 欧美一区二区三区精品| 久久精品免费在线观看| 国产一区二区三区av电影 | 国产成a人无v码亚洲福利| 久久久青草青青国产亚洲免观| 国产真实精品久久二三区| 国产亚洲精品aa午夜观看| 不卡区在线中文字幕| 成人免费在线视频观看| 在线观看免费亚洲| 日韩精品一二三| 精品免费一区二区三区| 国产精品91一区二区| 亚洲精品乱码久久久久| 欧美久久一区二区| 精品一区二区三区视频在线观看| 久久影院视频免费| 色综合久久66| 蜜桃精品视频在线观看| 国产亚洲欧洲997久久综合| 99精品视频中文字幕| 亚洲无人区一区| 久久先锋影音av鲁色资源网| 一本大道久久精品懂色aⅴ| 日韩国产一二三区| 欧美激情综合五月色丁香小说| 91偷拍与自偷拍精品| 日本aⅴ免费视频一区二区三区| 久久久久久久久久看片| 色婷婷av一区二区三区gif| 精品一区二区三区免费| 亚洲精品免费一二三区| 日韩精品一区二区三区四区视频 | 欧美国产激情二区三区| 在线观看亚洲a| 国产精品伊人色| 亚洲aaa精品| 国产精品拍天天在线| 欧美一区二区三区视频| 成人的网站免费观看| 日本不卡一二三区黄网| 亚洲视频1区2区| 国产调教视频一区| 欧美一区二区三区在| 一本大道久久a久久精品综合| 国产一区二区在线观看免费| 亚洲第一福利视频在线| 国产精品妹子av| 精品盗摄一区二区三区| 欧美性xxxxx极品少妇| www.日韩av| 国产黄色精品视频| 久久99精品久久久久婷婷| 午夜亚洲福利老司机| 一区二区三区中文免费| 中文字幕精品—区二区四季| 精品国产精品网麻豆系列| 色欧美日韩亚洲| 不卡高清视频专区| 国产激情视频一区二区在线观看 | 色94色欧美sute亚洲线路一久| 精品一区二区免费| 奇米综合一区二区三区精品视频| 亚洲精品水蜜桃| 日韩久久一区二区| 国产精品久久久久久久久快鸭 | 欧美亚州韩日在线看免费版国语版| 粉嫩aⅴ一区二区三区四区| 激情成人综合网| 久国产精品韩国三级视频| 日本视频一区二区三区| 艳妇臀荡乳欲伦亚洲一区| 亚洲天堂av老司机| 国产精品久久久久三级| 日本一区二区电影| 国产精品久久久一区麻豆最新章节| 亚洲精品一区二区三区福利| 欧美成人a视频| 精品91自产拍在线观看一区| 日韩欧美不卡一区| 精品国产sm最大网站| 久久久久久久久久久黄色| 亚洲成在线观看| 亚洲视频狠狠干| 一区二区三区在线免费视频| 亚洲视频一区二区在线观看| 亚洲美女免费视频| 一区二区三区久久久| 亚洲综合成人网| 亚洲图片欧美色图| 日韩福利视频导航| 久久精品国产亚洲高清剧情介绍| 奇米精品一区二区三区四区| 免费观看日韩电影| 国产成人精品免费一区二区| 成人手机电影网| 91精彩视频在线观看| 欧美日韩免费观看一区三区| 欧美一区二区三区婷婷月色| 精品成a人在线观看| 中文字幕一区二区三区四区不卡 | 一区二区三区资源| 日韩精品午夜视频| 国产美女娇喘av呻吟久久| 成人免费视频一区| 欧美日韩国产小视频在线观看| 欧美一区二区在线免费观看| 久久综合一区二区| 日韩美女视频一区二区| 日韩主播视频在线| 国产成人在线观看| 欧美怡红院视频| 欧美mv和日韩mv的网站| 亚洲欧洲成人精品av97| 性做久久久久久| 高清不卡在线观看av| 欧美亚洲综合另类| 欧美精品一区二区久久婷婷| 亚洲人亚洲人成电影网站色| 丝袜诱惑亚洲看片| 成人av免费在线观看| 欧美三级资源在线| 中文字幕成人在线观看| 丝瓜av网站精品一区二区| 国产成人高清视频| 欧美一级久久久久久久大片| 亚洲国产成人自拍| 日韩av中文在线观看| 成人a区在线观看| 日韩欧美在线观看一区二区三区| 欧美国产一区视频在线观看| 日韩精品一级二级| 色偷偷一区二区三区| 国产蜜臀97一区二区三区| 视频一区二区不卡| 色狠狠av一区二区三区| 久久久久国产免费免费| 青青草精品视频| 91在线视频在线| 国产日韩欧美一区二区三区综合| 婷婷国产在线综合| 色av综合在线| 亚洲婷婷国产精品电影人久久| 激情国产一区二区| 91精品国产综合久久久久久久| 亚洲视频1区2区| 成人久久18免费网站麻豆| 久久综合视频网| 免费高清视频精品| 欧美日韩国产片| 亚洲精品国产精华液| 99热精品国产| 中文字幕av免费专区久久| 色爱区综合激月婷婷| 国产精品另类一区| 国产精品亚洲一区二区三区妖精| 日韩视频免费观看高清完整版 | 成人av在线一区二区| 久久婷婷综合激情| 精品综合久久久久久8888| 欧美精品久久天天躁| 午夜在线电影亚洲一区| 欧美亚州韩日在线看免费版国语版| 亚洲视频一区二区在线观看| 91在线看国产| 亚洲欧美视频在线观看| 日本电影欧美片| 亚洲精品水蜜桃| 精品视频免费看| 亚洲第一综合色| 欧美美女喷水视频| 日韩av成人高清| 日韩欧美在线123| 国产精品77777| 国产精品国产三级国产aⅴ原创| 成人爱爱电影网址| 亚洲天堂网中文字| 欧美午夜精品久久久久久孕妇| 一区二区三区在线播放| 欧美日韩精品一区二区三区| 亚洲不卡在线观看| 精品国产乱子伦一区| 国产精品18久久久久久久久| 国产精品天天摸av网| 99re这里只有精品视频首页| 亚洲电影中文字幕在线观看| 制服视频三区第一页精品| 九九**精品视频免费播放| 欧美精彩视频一区二区三区| aa级大片欧美| 亚洲一区二区三区影院| 日韩一区二区免费在线观看| 国产一区二区精品久久| 亚洲欧美综合在线精品| 一本一道久久a久久精品综合蜜臀| 亚洲制服丝袜一区| 日韩女优制服丝袜电影| 成人午夜激情在线| 肉肉av福利一精品导航|