🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

EDEM API: Particle Body Force - Field Data Coupling – Choice of Drag Models with Lift Force

User: "Stephen Cole"
Altair Employee
Updated by Stephen Cole

Overview

Attached to this post you will find the compiled dll file for a EDEM Field Data case for multiple drag models in fieldDataMultipleDragModels_3_4.zip.

Model includes three different drag models, alongside models for Magnus and Saffman lift forces.

Also includes scaling of the forces acting on particles, implemented in a similar way to what is seen within the EDEM-CFD 2-way coupling, to be used if you have scaled your particles.

The choice of drag model is controlled by the preference file, which is commented so it should be clear which model you are using. Included the models of: Schiller & Naumann; Alexander & Morsi; and Haider & Levensipel.

The model uses two fields: ‘Velocity’ and ‘Vorticity’.

Included an example used for testing that demonstrates the lift models changing a rotating particle’s behaviour in a shear flow. The model is set up to have a particle falling in a very viscous fluid, rotating at 100 rad/s. Run the simulation as it is initially, notice how the particle moves in the Y direction, then change the angular velocity to 0 rad/s and see the difference in behaviour. 

This model has been updated from the previous version to API 3.4 to support CUDA GPU.  API 3.4 also allows additional functionality:

Field data ID is passed from CPU to GPU so order of the field is no longer relevant.

Gravity is read from the EDEM Creator instead of passed via Prefs file.

Legacy model using API 3.1 and OpenCL GPU also included.

 

 

Usage/Installation Instructions

Instructions are for the latest version only, not legacy:

Download and unzip fieldDataMultipleDragModels_3_4.zip

The settings for the model are applied in field_query_prefs.txt which include the fluid density, viscosity and choice of drag models.  The inputs also contain the scale factor if the particle size has been increased the model will scale the drag laws accordingly.

On opening the simulation .dem file the library fieldDataMultipleDragModels.dll is loaded as it is applied to the particle body force area.  The velocity and vorticity fields (from the CGNS files) have also been setup.

On simulating the model will run and apply the drag forces to the particles.

Find more posts tagged with

Share projects with the Community

Share your models, scripts, workspaces, and more with the Altair Community.
New Exchange Project