You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add density and volume override support to DAGMC cell spec
Density overrides:
- Add parse_cell_density_xml() free function (cell.h/cell.cpp), used by
both CSGCell::CSGCell (replacing inline parsing) and DAGUniverse XML
constructor
- Add DensityOverrides type alias and thread it through initialize() and
init_geometry() in DAGUniverse; apply density_mult_ in init_geometry()
using the same deferred-multiplier convention as CSG cells
- Remove density from the forbidden-attribute block in the DAGMC XML
constructor and from DAGMCCell validation
Volume overrides:
- Volume is Python-only (not stored in C++ Cell); no C++ changes needed
- Remove volume from forbidden-attribute checks in DAGMCCell
- Add a Notes section to DAGMCCell docstring warning that manually
specifying volume may be inconsistent with DAGMC's triangulated-surface
geometry, which can support exact volume computation
translation and rotation remain unsupported and are rejected explicitly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments