McXtrace logo

McXtrace - An X-ray ray-trace simulation package

ESRF; SAXSLAB Niels Bohr Institute DTU Physics

McXtrace

Project Status
 Project Partners
 Project People
 Goal

Installation
 Mac OSX Installation
 Windows Installation

Mailing List

Links

Publications

Minutes of Meetings

McXtrace Art

About McXtrace

Documentation
 Commands
 Tutorial

Download
 Components

Search


McXtrace: Lens_parab Component

[ Identification | Description | Input parameters | Output parameters | Links ]

The Lens_parab Component

Identification

  • Author:(Unknown)
  • Origin:(Unknown)
  • Date:(Unknown)
  • Version:(Unknown)

Description

A simple X-ray compound refractive lens (CRL) with a profile of the parabola in rotation simulates the photons' movement on passing through it. The CRL focuses in 2D

    /*first parabola*/
    while(zz1<=0){
      zz1+=dz;
      yy1=sqrt(2*r*fabs(zz1));
      line(0,yy0,s+zz0,0,yy1,s+zz1);
      line(0,-yy0,s+zz0,0,-yy1,s+zz1);
      line(yy0,0,s+zz0,yy1,0,s+zz1);
      line(-yy0,0,s+zz0,-yy1,0,s+zz1);
      zz0=zz1;yy0=yy1;
    }
    zz0=0;zz1=0;yy0=0;
    /*2nd parabola*/
    while(zz1<=w){
      zz1+=dz;
      yy1=sqrt(2*r*fabs(zz1));
      line(0,yy0,d+s+zz0,0,yy1,d+s+zz1);
      line(0,-yy0,d+s+zz0,0,-yy1,d+s+zz1);
      line(yy0,0,d+s+zz0,yy1,0,d+s+zz1);
      line(-yy0,0,d+s+zz0,-yy1,0,d+s+zz1);
      zz0=zz1;yy0=yy1;
    }
  }
%}

END

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
material_datafile "Be.txt"
r - =b.constants[0]; yheight=b.constants[1]; xwidth=b.constants[2]; d=b.constants[3]; M=b.constants[4]; Sign=b.constants[5]; 0.5e-3
yheight - - the CRL's dimensions along Y, aka aperture[m]; 1.4e-3
xwidth - - the CRL's dimensions along X [m]; 1.4e-3
d - - distance between two surfaces of the lens along the propagation axis; .1e-3
T - - transmission of the lens 1
N - - amount of single lenses in a stack. 1
deltaN 0

Output parameters

Name Unit Description Default
prms  
parab - .constants[3]=(nr+1)*d+nr*2*w; parab.constants[4]=Refractive_Index_Re; parab.constants[5]=1.0;  

Links


[ Identification | Description | Input parameters | Output parameters | Links ]

Generated automatically by McDoc, Peter Willendrup <peter.willendrup@risoe.dk> / Mon Apr 24 19:45:24 2017


Last Modified: Monday, 24-Apr-2017 21:45:24 CEST
Search website mailinglist archive SVN repos McCode Trac