Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | ATOMS
File : Details
Please login or create an account

solution of Raman-Nath equations

solves (generalised) Raman-Nath equations, as in diffraction from a thick phase grating
(538 downloads for this version - 538 downloads for all versions)
Details
Version
1.0
Author
robert coisson
Maintainer
Robert Coisson
Categories
License
Supported Scilab Version
4.1
Creation Date
June 15, 2011
Description
            This calculates diffraction from a thick phase grating, as for ex. in an
acousto-optic modulator, in each order as functions of propagation distance (in
units of Talbot length), modulation index (in units of Pendell\"osung
length), and incidence angle (in units of Bragg angle) (see help above). 
The output is expressed as a matrix giving the diffracted order and any of the
other 3 inputs.             
Files (1)
[2.43 kB]
Miscellaneous file
// i/pi*dS_j/dz = j*(th-j)*S_j+a*(S_(j+1)+S_(j-1))
// sinusoidal grating diffraction:  power in j-th mode (input in 0-th)
// rn(j=order, s=z/Ltalbot, a=Ltalbot/Lpendell., th=angle(1=bragg))
// (Ltalb=period^2*n/wvlgth0,  Lpend=2*wlgth*sqrtepsilon/deltaepsilon,
//  braggangle=wvlgth0/(2*period) )                       (j may be array)
// input: row vectors, output: column vectors or matrix(j,s)
                                       // (accuracy of the order of 0.001)
News (0)
Comments (3)     Leave a comment 
Comment from Luis Acevedo -- March 7, 2013, 02:28:07 PM    
I can not get script running

Send me instructions who to exec it

I have tried to call the functions as:

rana(1,1,1,1);

nothing happens

Thanks

Luis
Answer from Samuel Gougeon -- May 9, 2015, 11:39:45 PM    
> rana(1,1,1,1);
> 
> nothing happens

just remove the ending ";"
;)
Comment from Luis Acevedo -- March 7, 2013, 02:59:36 PM    
script is not working
crap
Comment from Samuel Gougeon -- May 9, 2015, 11:45:07 PM    
Hello,

Nice function applied to physics.

But please remove the heading "clear"!

By the way, including the heading bloc of comments in the function, just after the
"function   rana=..." line without any uncommented blank line in-between, would
allow
using head_comments() to view these comments as help lines in a handy way, without editing
the script: http://help.scilab.org/docs/5.5.2/en_US/head_comments.html

Thanks
Samuel
Leave a comment
You must register and log in before leaving a comment.
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.