Xraytrace documentation

raytracing software for x-ray standing wave calculations

User Tools

Site Tools


getting_started

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
getting_started [2018/01/24 13:41]
185.62.108.185 created
getting_started [2018/01/25 12:33] (current)
pklapetek
Line 1: Line 1:
 ===== Getting started ===== ===== Getting started =====
  
-To start playing with Xraytrace you can use some of the examples shown on these pages.+Xraytrace ​is run from console, using a parameter file as argument. Parameter file is a plain text file with some commands (described in the other sections of this documentation) and with links to other files. 
 + 
 + 
 +A very minimum set needed for a reasonable calculation is shown here. It consist of three files: parameter file, sample geometry definition file and table of material parameters. You can paste the content below to newly created files or you can {{samples:​getting_started.tar.gz|download them}}. 
 + 
 +test.par: 
 +<​code>​ 
 +POOL 
 +3e-9 3e-9 3e-9 
 + 
 +MEDIUM_VECTOR_SAMPLE 
 +100 100 100 test.vector test.table 
 + 
 +COMP 
 +90.4 90 100 0.359e-9 
 + 
 +OUTPUT 
 +out.vtk 
 + 
 +STRIP_OUTPUT 
 +
 + 
 +SOURCE_METHOD 
 +
 + 
 +RAYS 
 +1000000 
 + 
 +PHASES 
 +
 + 
 +YBND 
 +-1 1 20 
 +</​code>​ 
 + 
 + 
 +test.vector:​ 
 +<​code>​ 
 +4 50 50 40 20 1 
 +8 0 0 0 100 100 20 2 
 +</​code>​ 
 + 
 +test.table:​ 
 +<​code>​ 
 +0 0 1  0 0 0 
 +1 99 Ag 0 0 
 +2 99 Si 0 0 
 +</​code>​ 
 + 
 +Now, run the solver from command line with test.par as an argument. 
 +After a while, you should get the results. Open the file out.vtk in [[http://​paraview.org|Paraview]] 
 +and you should see something like this: 
 + 
 +  
 +{{ :​started.png?​400 |}} 
 + 
 +This is nearly all what we can expect - at least for the basic calculation. We get the standing wave distribution within the object and we get a sum of the electric field intensity in each material. Running this for different wavelengths gives us similar information like the experiments. 
getting_started.1516797663.txt.gz · Last modified: 2018/01/24 13:41 by 185.62.108.185