| ²é¿´: 6616 | »Ø¸´: 19 | |||
| ¡¾½±Àø¡¿ ±¾Ìû±»ÆÀ¼Û11´Î£¬×÷Õß514233Ôö¼Ó½ð±Ò 8.3 ¸ö | |||
[×ÊÔ´]
¡¾×ÊÔ´¡¿¹âÏËÖУ¬·Ö²¼¸µÀïÒ¶Ëã·¨½â·ÇÏßÐÔѦ¶¨ÚÌ·½³ÌMATLABÔ´³ÌÐò
|
|||
|
function u1 = ssprop(u0,dt,dz,nz,alpha,betap,gamma,maxiter,tol); % This function solves the nonlinear Schrodinger equation for % pulse propagation in an optical fiber using the split-step % Fourier method. % % The following effects are included in the model: group velocity % dispersion (GVD), higher order dispersion, loss, and self-phase % modulation (gamma). % % USAGE % % u1 = ssprop(u0,dt,dz,nz,alpha,betap,gamma); % u1 = ssprop(u0,dt,dz,nz,alpha,betap,gamma,maxiter); % u1 = ssprop(u0,dt,dz,nz,alpha,betap,gamma,maxiter,tol); % % INPUT % % u0 - starting field amplitude (vector) % dt - time step % dz - propagation stepsize % nz - number of steps to take, ie, ztotal = dz*nz % alpha - power loss coefficient, ie, P=P0*exp(-alpha*z) % betap - dispersion polynomial coefs, [beta_0 ... beta_m] % gamma - nonlinearity coefficient % maxiter - max number of iterations (default = 4) % tol - convergence tolerance (default = 1e-5) % % OUTPUT % % u1 - field at the output % % NOTES The dimensions of the input and output quantities can % be anything, as long as they are self consistent. E.g., if % |u|^2 has dimensions of Watts and dz has dimensions of % meters, then gamma should be specified in W^-1*m^-1. % Similarly, if dt is given in picoseconds, and dz is given in % meters, then beta(n) should have dimensions of ps^(n-1)/m. % % See also: sspropc (compiled MEX routine) % % AUTHOR: Thomas E. Murphy (tem@umd.edu) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Copyright 2006, Thomas E. Murphy % % This file is part of SSPROP. % % SSPROP 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. % % SSPROP 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 SSPROP; if not, write to the Free Software % Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA % 02111-1307 USA if (nargin<9) tol = 1e-5; end if (nargin<8) maxiter = 4; end nt = length(u0); w = 2*pi*[(0:nt/2-1),(-nt/2:-1)]'/(dt*nt); halfstep = -alpha/2; for ii = 0:length(betap)-1; halfstep = halfstep - j*betap(ii+1)*(w).^ii/factorial(ii); end halfstep = exp(halfstep*dz/2); u1 = u0; ufft = fft(u0); for iz = 1:nz, uhalf = ifft(halfstep.*ufft); for ii = 1:maxiter, uv = uhalf .* exp(-j*gamma*(abs(u1).^2 + abs(u0).^2)*dz/2); uv = fft(uv); ufft = halfstep.*uv; uv = ifft(ufft); if (norm(uv-u1,2)/norm(u1,2) < tol) u1 = uv; break; else u1 = uv; end end if (ii == maxiter) warning(sprintf('Failed to converge to %f in %d iterations',... tol,maxiter)); end u0 = u1; end http://www.photonics.umd.edu/software/ssprop/ssprop-3.0.1-windows.zip [ Last edited by 514233 on 2010-5-7 at 11:50 ] |
» ÊÕ¼±¾ÌûµÄÌÔÌûר¼ÍƼö
matlab |
» ²ÂÄãϲ»¶
211±¾¿Æ²ÄÁÏ»¯¹¤Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
272·Ö²ÄÁÏ×ÓÇóµ÷¼Á
ÒѾÓÐ43È˻ظ´
270Çóµ÷¼Á
ÒѾÓÐ7È˻ظ´
271Çóµ÷¼Á
ÒѾÓÐ13È˻ظ´
283Çóµ÷¼Á 086004¿¼Ó¢¶þÊý¶þ
ÒѾÓÐ16È˻ظ´
085410 273·Öµ÷¼Á
ÒѾÓÐ4È˻ظ´
Ò»Ö¾Ô¸Ïôó0856£¬306Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
304Çóµ÷¼Á£¨085602£¬¹ýËļ¶£¬Ò»Ö¾Ô¸985£©
ÒѾÓÐ28È˻ظ´
µ÷¼Á
ÒѾÓÐ4È˻ظ´
070300»¯Ñ§279Çóµ÷¼Á
ÒѾÓÐ19È˻ظ´
» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:
¡¾ÇóÖú¡¿Ñ¦¶¨ÚÌ·½³Ìת»»³É¾ØÕóÐÎʽµÄÀíÂÛÒÀ¾Ý
ÒѾÓÐ4È˻ظ´
¡¾ÌÖÂÛ¡¿Ãܶȷºº¯ÀíÂÛÓëѦ¶¨ÚÌ·½³ÌµÄ¹ØÏµ£¿
ÒѾÓÐ7È˻ظ´
¡¾ÇóÖú¡¿½ôÊø¸¿Ä£ÐÍÓëѦ¶¨ÚÌ·½³ÌµÄÇø±ðÓëÁªÏµ
ÒѾÓÐ13È˻ظ´
¡¾ÇóÖú¡¿Ò»µÀ²©Ê¿ÉúÃæÊÔÌ⣺Ѧ¶¨ÚÌ·½³ÌºÍÈÈ´«µ¼·½³Ì
ÒѾÓÐ10È˻ظ´
¡¾ÇóÖú¡¿½âº¬Ê±Ñ¦¶¨ÚÌ·½³ÌµÄÎÊÌâ
ÒѾÓÐ5È˻ظ´
¡¾ÇóÖú¡¿O3µÄѦ¶¨ÚÌ·½³Ì±í´ïʽ£¬¼°Ã¿Ò»ÏîµÄÎïÀíÒâÒå
ÒѾÓÐ4È˻ظ´
¡¾ÇóÖú¡¿ALGaN/GaN Ѧ¶¨Ú̲´ËÉ·½³Ì×ÔÇ¢Çó½â£¨²åAlN²ã£©
ÒѾÓÐ5È˻ظ´
14Â¥2011-01-12 11:55:16
¡ï Ò»ÐǼ¶,Ò»°ã
| LZ°ÑC++³ÌÐò˳±ãÒ²´«ÉÏÀ´°É£¬Ã»Ô´³ÌÐò´¿´â¾ÍÊÇÒ»¸ö¹¤¾ß£¬ÒÔǰÄǸö¼¯³ÉµÄ¹¤¾ß±ÈÕâ¸üºÃÓ𡣬ÓÐÔ´³ÌÐò´ó¼Ò²ÅÄÜѧϰÌá¸ß¡£ |
15Â¥2011-01-12 12:10:36
| http://www.photonics.umd.edu/software/ssprop/download.html¿Éµ½ÕâÀïÏÂÔØÔ´´úÂ룬ºÇºÇ£¬ÔÀ´ÃÀ¹úÈËÔç×öºÃÁË |
16Â¥2011-01-12 16:11:48
17Â¥2011-01-12 18:51:38
janecool
Ìú¸Ëľ³æ (ÖøÃûдÊÖ)
- Ó¦Öú: 54 (³õÖÐÉú)
- ¹ó±ö: 0.006
- ½ð±Ò: 5996.2
- Ìû×Ó: 2070
- ÔÚÏß: 626.6Сʱ
- ³æºÅ: 830148
2Â¥2010-05-07 12:03:28
3Â¥2010-05-08 21:48:17
4Â¥2010-05-09 23:30:36
5Â¥2010-05-10 18:50:41
6Â¥2010-05-11 13:33:27
8Â¥2010-05-22 16:38:13
9Â¥2010-12-06 23:25:18
11Â¥2010-12-23 10:16:45
12Â¥2010-12-27 15:41:18
18Â¥2011-03-18 18:43:30
19Â¥2012-10-24 10:41:53
20Â¥2022-06-09 17:29:04
¼òµ¥»Ø¸´
jiasen19807Â¥
2010-05-11 14:13
»Ø¸´


ÕÅСËÁ10Â¥
2010-12-21 10:14
»Ø¸´
лл·ÖÏí~~~
optimist910513Â¥
2010-12-29 20:50
»Ø¸´
ÎåÐÇºÃÆÀ лл·ÖÏí!













»Ø¸´´ËÂ¥