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.
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 |
} |
|