Please enable JavaScript to view this site.

GeoDict User Guide 2025

Collision UDF

The collision UDF may replace the built-in collision models Caught On First Touch, Hamaker or Sieving. Select it on the Particles - Interaction Model tab.

A collision UDF contains five functions.

Two sample UDF files are delivered with GeoDict: CollisionUDF-Count.cpp, CollisionUDF-Hamaker.cpp.

Openudf_entryMessage

Openudf_exitMessage

Openudf_numberOfMaterialParameters

Openudf_nameOfMaterialParameters

Openudf_collision

GeoDict passes the relevant data to these functions with help of the structs ParticleData_UDF and CollisionData_UDF. These structs are defined in the CollisionStructs.h header file which can be found in the include folder.

OpenParticleData_UDF

OpenCollisionData_UDF

©2025 created by Math2Market GmbH / Imprint / Privacy Policy