Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | ATOMS
File : Details
Please login or create an account
Dear visitors/customers, we are migrating most of Scilab services into a new data center.
Note that login/registration will not be available for the moment.

solution of Raman-Nath equations

solves (generalised) Raman-Nath equations, as in diffraction from a thick phase grating
(505 downloads for this version - 505 downloads for all versions)
robert coisson
Robert Coisson
Supported Scilab Version
Creation Date
June 15, 2011
            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:


nothing happens


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
Comment from Samuel Gougeon -- May 9, 2015, 11:45:07 PM    

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
using head_comments() to view these comments as help lines in a handy way, without editing
the script:

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.