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.
Name
Unit
Description
Default
pores
str
Closed mesh file with the pores. "NULL": no pores.
"NULL"
fill_y
m
Pores below this height (local y) hold the liquid.
0
fill_Vc
AA^3
Volume per formula unit of the liquid. 0: no liquid.
0
fill_sigma_inc
barns
Incoherent cross section per formula unit of the liquid.
0
fill_sigma_abs
barns
Absorption cross section per formula unit of the liquid at 2200 m/s.
0
p_fill
1
Fraction of rays scattered incoherently in the liquid. (all others): See PowderN.