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

Both sides previous revision Previous revision
Next revision
Previous revision
getting_started [2018/01/24 21:40]
pklapetek
getting_started [2018/01/25 12:33] (current)
pklapetek
Line 4: Line 4:
  
  
-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. ​+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: test.par:
 <​code>​ <​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
 +1
 +
 +SOURCE_METHOD
 +1
 +
 +RAYS
 +1000000
 +
 +PHASES
 +2
 +
 +YBND
 +-1 1 20
 </​code>​ </​code>​
  
  
-test.mat:+test.vector:
 <​code>​ <​code>​
 +4 50 50 40 20 1
 +8 0 0 0 100 100 20 2
 </​code>​ </​code>​
  
 test.table: test.table:
 <​code>​ <​code>​
 +0 0 1  0 0 0 
 +1 99 Ag 0 0 
 +2 99 Si 0 0
 </​code>​ </​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.1516826408.txt.gz · Last modified: 2018/01/24 21:40 by pklapetek