Please enable JavaScript to view this site.

GeoDict User Guide 2025

Particle Motion UDF

The Particle Motion UDF allows changing the equations (243) , (244) , (245) and (246) .

This UDF file must contain five functions: udf_entryMessage(), udf_exitMessage(), udf_friction(), udf_diffusivity(), and udf_force(). Three sample UDF files are delivered with GeoDict: ParticleMotionUDF-Standard.cpp, ParticleMotionUDF-Gravity.cpp, ParticleMotionUDF-GravityPlusBuoyancy.cpp.

Openudf_entryMessage

Openudf_exitMessage

Openudf_friction

Openudf_diffusivity

Openudf_force

GeoDict passes the relevant data to these functions with help of the struct InputData_UDF. The struct is defined in the ParticleMotionStructs.h header file which can be found in the include folder.

struct InputData_UDF{

 

 double particleRadius;

 double particleDensity;

 double particleMass;

// [m]

// [kg/m^3]

// [kg]

 double kinematicViscosity;

 double fluidDensity;

 double meanFreePath;

 double temperature;

// [m²/s]

// [kg/m^3]

// [m]

// [K]

 double position[3];

 double eStatic[3];

// [m], only available in udf_force function

// [V/m], only available in udf_force function

 void * userData;

// pointer to user-defined data

}

 

©2025 created by Math2Market GmbH / Imprint / Privacy Policy