McXtrace logo

McXtrace - An X-ray ray-trace simulation package

Synchrotron SOLEIL DTU Physics

McXtrace

About McXtrace
 Publications
 Project Partners
 Project People
 Goal

Download
 Components

Mailing list

Search

Documentation
 Manual
 Commands
 Wiki (GitHub)
 Tutorial

Links

Report bugs (GitHub)

Code-repository (GitHub)


McXtrace: Absorption_sample

[ Identification | Description | Input parameters | Links ]

The Absorption_sample Component

Sample component with absorbing materials.

Identification

  • Author: Erik B Knudsen
  • Origin: Risoe
  • Date: March 2011

Description

A sample component consisting of a volume of one material and volume of another
material inside. This is useful as a phantom for simulating tomography experiments.
The inner material can be left unset (all 0), to only have one volume.

Sample shape may be a cylinder, a sphere, a box or any other shape
box/plate:       xwidth x yheight x zdepth
cylinder:        radius x yheight
sphere:          radius (yheight=0)
any shape:       geometry=OFF/PLY file

Example: Absorption_sample( material_datafile_o="Mn.txt", xwidth_o = 0.5, yheight_o = 0.5, zdepth_o = 0.0001, rho_o=7.15 )

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
material_datafile_istrName of file containing material data for inclusion.""
material_datafile_ostrName of file containing material data for outer volume.""
radius_omRadius of "outer" enclosing material cylinder (0)0
xwidth_omWidth of "outer" enclosing material box (yheight)0
yheight_omHeight of "outer enclosing material box (1)1
zdepth_omThickness of outer enclosing material box (yheight)0
radius_imRadius of "inner" enclosed material cylinder (0)0
xwidth_imWidth of "inner" enclosed material box (yheight)0
yheight_imHeight of "inner enclosed material (1)0.0
zdepth_imThickness of inner enclosed material box (yheight)0
x_imCenter x-coordinate of "inner" object0
y_imCenter y-coordinate of "inner" object0
z_imCenter z-coordinate of "inner" object0
rho_ig/cm^3density of the enclosed material0
rho_og/cm^3density of the enclosing material0
geometry_istrName of an inner Object File Format (OFF) or PLY file for complex geometry. The OFF/PLY file may be generated from XYZ coordinates using qhull/powercrust [str]""
geometry_ostrName of the outer Object File Format (OFF) or PLY file for complex geometry. The OFF/PLY file may be generated from XYZ coordinates using qhull/powercrust""
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links

  • Source code for Absorption_sample.comp.
  • Meshlab https://www.meshlab.net/
  • Geomview and Object File Format (OFF)
  • Java version of Geomview (display only) jroff.jar
  • qhull
  • Powercrust https://www.cs.ucdavis.edu/~amenta/powercrust.html

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

Generated on mcxtrace 3.10.2


Last Modified: Monday, 02-Nov-2026 21:43:07 CET
Search website mailinglist archive GitHub repos