McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)



McStas: PowderN_porous

[ Identification | Description | Input parameters | Links ]

The PowderN_porous Component

Porous PowderN: powder matrix with mesh pores, partly filled by a liquid

Identification

  • Author: Peter Willendrup
  • Origin: DTU
  • Date: Nov 2026

Description

PowderN (INHERIT) with a pore mesh inside the matrix. All PowderN parameters
describe the matrix material and its outer shape (box, cylinder, sphere or
geometry= mesh file; hollow shapes/concentric are not supported).

pores: closed mesh file (OFF/PLY/STL, coordinates in m in the component frame)
with one closed, outward oriented shell per pore. Shells may overlap and
stick out of the outer shape (open channels); see make_pores.py in
examples/Tests_samples/Test_PowderN_porous.
Pores are void above y = fill_y and filled with an incoherent, absorbing
liquid below (e.g. water sucked up through the pores). The liquid is set by
fill_Vc, fill_sigma_inc, fill_sigma_abs; fill_Vc=0 leaves all pores void.

Single scattering as PowderN: each ray is transmitted, or scattered once
(matrix coherent/incoherent or liquid incoherent), attenuated along the full
in- and outgoing paths through matrix and liquid.
Rays crossing more than GMESH_MAX_HITS (50) pore surfaces lose the farther
pores; raise it with DEPENDENCY " -DGMESH_MAX_HITS=200 " in the instrument.
The limit is printed at start, and FINALLY reports how many rays reached it.

Example: PowderN_porous(reflections="Al.laz", radius=0.005, yheight=0.02,
pores="pores.off", fill_y=0, fill_Vc=29.9, fill_sigma_inc=160.5, fill_sigma_abs=0.665)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
poresstrClosed mesh file with the pores. "NULL": no pores."NULL"
fill_ymPores below this height (local y) hold the liquid.0
fill_VcAA^3Volume per formula unit of the liquid. 0: no liquid.0
fill_sigma_incbarnsIncoherent cross section per formula unit of the liquid.0
fill_sigma_absbarnsAbsorption cross section per formula unit of the liquid at 2200 m/s.0
p_fill1Fraction of rays scattered incoherently in the liquid. (all others): See PowderN.0.1
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links

  • Source code for PowderN_porous.comp.
  • See also: PowderN

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

Generated on mcstas 3.10.5


Last Modified: Wed Dec 2 00:25:28 2026
Search website mailinglist archive GitHub repos