Code evolution¶
Versioning¶
exaDEM releases are tagged on GitHub (vX.Y.Z). The version is set by EXADEM_VERSION in CMakeLists.txt; the
main branch is currently 1.2.3 (in development).
Dependencies used in this documentation¶
| exaDEM | onika | exaNBody | Spack |
|---|---|---|---|
| v1.2.x | v1.1.0 | v2.1.0 | v1.1.0 |
Release notes¶
v1.2.3 (in development)
This release is under development on the main branch and has not been tagged yet.
β¨ New features
- Fragmentation
number_weight_contact_polyhedronweightskn/ktdown by the number of simultaneously active contacts between the same pair of particles, which keeps the contact stiffness consistent right after an inner bond breaks. See Weighted contact stiffness.- Fragmentation is no longer an experimental feature.
- Fields
- New
groupparticle field, used to select multi-material contact parameters independently from the particletype: several types can share the same group and the same contact law. - New
groupparameter ofset_fields. - New
set_groupoperator to (re)assign thegroupfield according to the particle type.
- New
- Force field
- New
check_group_completenessoperator: stops the simulation if a particle references a group not covered bymultimat_contact_params/drivers_contact_params.
- New
- I/O
groupfield in the dump readers/writers, including the legacy Rockable readers (legacy writers are not affected).dump_inspectoroperator (andscripts/tools/dump_inspector.sh): prints the header of a.dumpfile.dump_to_txtoperator (andscripts/tools/ConvExaDEMToTxt): exports a.dumpfile to text files.dump_to_rockableoperator (andscripts/tools/ConvExaDEMToRockable): exports the particles of a.dumpfile to a Rockable.conffile.dump_to_xyzoperator (andscripts/tools/ConvExaDEMToXYZ): exports the particles of a.dumpfile to an.xyzfile.restartoperator: restarts from the last (or a given) checkpoint, reading the.dumpfile, the shape file and the drivers file. Drivers are now saved in a dedicated file format.scripts/tools/restart_template.pyuses this operator.add_xyzreads files containing several particle types.
- Drivers
SHAKERmotion type for cylinders (example:example/spheres/shaker_cylinder).
- Boundary conditions
compute_frame_velocitydrives a frame of particles (a region) with an imposed velocity or force, component by component (control_mode), with an optional linear force ramp. Examples:example/spheres/impose_frameandexample/polyhedra/impose_frame_fragmentation.
π§ Changes and enhancements
- Force field:
multimat_contact_params,drivers_contact_paramsandinner_bond_paramsselect the parameters withgroup1/group2(orgroup) instead of the particle type names (mat1/mat2/mat). See Multi-material. - Fields:
set_fieldshas been reworked: values are applied in a single pass over the grid, and random values (sigma_velocity,sigma_angular_velocity,random_quaternion) are generated from the particle id, so they no longer depend on the number of MPI processes or on the order of the types. The previous implementation is still available asset_fields_deprecated. - Performance:
number_weight_contact_polyhedronruns on GPU; new DEM cost model for load balancing; fewer particle redistributions in some I/O operators (restart, interaction dump reader); the profiling summary is disabled by default (its cost is not negligible for very long runs). - I/O: the final dump written at the end of a simulation is disabled by default.
- ParaView:
write_paraview_polyhedrawrites parallel unstructured grid files (.pvtu/.vtu) with per-polyhedron fields selected with thefieldsslot; it is the default particle output for polyhedra and the previous.pvtpversion has been removed. Data arrays are binary by default (zlib + base64),compressionsets the level (default,min,maxor[0-9]) andbinary_mode: falsewrites ascii files. Default ParaView outputs are defined inconfig_paraview.msp. - Refactoring:
InteractionandClassifierreworked with onika spans and tuples;InteractionWrapperreplaced byClassifierContainer::ViewandInteractionDispatcherbyClassifierDispatcher; several shape/OBB methods renamed (add_radiusβset_radius,get_normalβcompute_normal,OBB::rotateβrotate_in_place, ...) andmassβsystem_massindriver_params; Doxygen fixes. - Tests / CI: verification tests of the Hooke law in
example/spheres/verif_hooke; regression test ofrestartwith four driver types; MPICH in CI.
π Bug fixes
particle_counterwrites the global number of particles instead of the one of MPI process 0.- Driver forces and moments are reduced over the MPI processes (needed by the driver extractor in parallel).
- The execution stops when several shapes share the same name.
- Pointers of an
OBBTreeare correctly reset. - Deadlock in the destructor of OpenMP locks and small memory leak in
grid_stl_mesh. ghost_updateno longer skips subdomains without particles (needed for the coupling with LBM).- Contact messages report negative distances as penetrations.
v1.2.2 (07/26)
β¨ New features
- Fragmentation / inner bonds: operator to randomly change the sphere radius; inner bonds and drivers in the
stress per particle; criterion modes (mixed and separated);
dump_broken_interfaceand a ParaView post-processing script; stress energy criterion; inner bonds in the contact network dump. - ParaView: improved
ParaviewNetworkand criterion used to write interactions;clusterfield inparaview_polyhedra; ParaView output of cylinders; export inpvtuformat. - Drivers: reworked
driver_paramsandMotionType; dt scale in the driver numerical schemes; driver extractor; fixed driver surface corrections on GPU.
π§ Changes and enhancements
- Performance: integrated interaction list build step;
unclassifyoptimized with a binary search; reduced compilation time of contact polyhedron/sphere; dedicated extra storage forrshapedata; scratch memory fornbh_polyhedron_gpu. - Refactoring: drivers and shape plugins cleaned;
classify/unclassifyand the interaction manager moved to.cppfiles;interaction_buffersrenamedcontact_state; new convention for structure members (nameβname_). - CI / build: CUDA CI pipeline, with CUDA 13.
π Bug fixes
- Ghost interactions in
nbh_polyhedron_gpu; ill-formed interactions in thenbhoperators; compilation in debug mode;grid_cell_valuesupdated onghost_update; MEM PREFETCH with CUDA 13; logs and face shape identification tolerance; periodic boundary conditions with theDOMAIN_BOUNDSmode (Rockable).
v1.2.1 (03/26)
- New
depositplugin, and an operator adding particles from an XYZ file. - Grid output switched from
grid_vtklegacytogrid_vtk. - Weights in the inner bond force computations.
- Additional validation check in
check_rcut.
v1.2.0 (02/26)
β¨ New features
- Fragmentation: inner bond interaction (rework of the interaction system), interfaces (sets of inner bond
interactions), routine to stick polyhedra,
clusterfield,config_fragmentation.msp. - Shapes: default shapes library (
cube,sphere,ricegrain). - Drivers: deformation operator for STL meshes;
Stl_meshrenamedRShapeDriver;FORCE_MOTIONrefactored into the more versatilePARTICLEmotion type; "freeze particles" operator; expression-based motions account for angular moments.
π§ Changes and enhancements
- Performance: interactions copied in the ghost area (MPI); contact interface criterion on GPU;
BackupDEMstructures updated for a more efficient checkpointing. - Post-processing: traction/shear test case for the validation of fragmentation; improved ParaView outputs of particle interfaces; vertex ordering fixed in interface exports.
π Bug fixes: compatibility with exaNBody 2.0.7; region usage in set_fields; radius-from-shape detection.
v1.1.6 (12/25)
- TinyExpr support and projected quantities; motion modification operator; STL driver controlled by moments; script to visualize the stresses applied by drivers per component; improved ParaView output of contact networks; DMT enumeration.
- Fixes: Rockable behavior issues; ParaView export of polyhedra and vertex displacement; simulation box
definition and Rockable dump writer; MPI bug in linear compressive motion; validation of a missing
preCompDoneflag in shape files.
v1.1.5 (10/25)
- Fixed
linear_compressive_forcesandlinear_motionwhen a surface moves in the negative direction. - New examples: spheres with linear motion types, polyhedra with linear compressive force.
v1.1.4 (09/25)
- Pendulum motion type for the surface driver;
check_consistency_grid_classifieroperator; rescale Minkowski option inread_shapes; generation of theexadem-configfile. - Examples updated and refactored (axial stress, rotating drums,
polyhedra/stl_mesh,polyhedra/balls,ball/driver,spheres/movable-wall, analyses); deprecated examples underdepotremoved. - Regression tests for
sphere/cylinder_stl, mirror boundary conditions,polyhedra/defbox,polyhedra/stl_cylinder,spheres/pistonand funnel.
v1.1.3 (09/25)
- Mixer simulation example; examples with large vertex sets; OBBTree (from Rockable) for collision detection; shape rescaling at import time.
- Improved required-slot handling; centralized error management (
color_log::error,color_log::warning). - Fixes: ParaView export of STL meshes; MSP driver output files.
v1.1.2 (07/25)
- Rockable output files; new internal vertex data layout; customizable options of
compute_cell_particles; shaker motion type for STL mesh drivers (sinusoidal displacement). - Fix: ParaView shape data output.
v1.1.1 (05/25)
check_rcutoperator to verify the interaction cutoff radius; multi-material contact law; RSA generator targeting a volume fraction; slot to override the domain bounds inread_xyz; log of the critical time step.
v1.1.0 (03/25)
- Unified field initialization operator
set_fields. - Driver motion types
STATIONARY,LINEAR_MOTION,COMPRESSIVE_FORCE,LINEAR_FORCE_MOTION,FORCE_MOTION,LINEAR_COMPRESSIVE_MOTION,TABULATED; reader of binary STL files. - Analyses: barycenters and particle counts per type.
- Contact network output with more information; domain deformation available for spheres and polyhedra.
v1.0.2 (11/24)
- Moving and rotating drivers (with special support for STL meshes), timestep operators, driver I/O operators.
- Tree of output files (
io_config), system stress tensor, XYZ output example, post-processing scripts. - Faster lookup grid for STL meshes; interactions stored in the classifier as a Structure of Arrays; logs of
active interactions and maximum interpenetration;
hooke_forcerenamedcontact_force; only cells containing particles are browsed. - Fixes: relative shape paths; interaction statistics per driver.
v1.0.1 (06/24)
- Classifier of interactions; mirror boundary conditions of exaNBody; GPU version for polyhedra.
- Unified drivers for spheres and polyhedra.
- Removed the deprecated meshset and friction plugins.
- New examples: funnel, mirror boundary conditions.