EDEM Coupling Interface - Applying Pressure to a Geometry

Richard Wood_20774
Richard Wood_20774
Altair Employee
edited October 2023 in Altair Exchange

Overview

This is an example on how to use the Coupling Interface with EDEM 2022.3.  This model has been updated from 2020 to 2022.3 version October 2023.

 

For further information on how to use the Coupling Interface in EDEM please see the documentation:

https://2022.help.altair.com/2022.2/EDEM/Coupling_Interface_Programming_Guide.htm

 

Attached you will find ApplyPressureExample.zip file that contains an EDEM deck and executable that demonstrate how you can move a geometry in EDEM through EDEM’s coupling interface, based on an applied pressure.

Also attached ApplyPressureCode.zip which contains the Visual Studio project and code required to create the executable.  you don't need the code and project to run the example, also you may need to follow the documentation guide on creating a visual studio project as this example was created using Microsoft Visual Studio Professional 2019.

 

Within the attached “ApplyPressureCode.zip” file you will find ApplyPressure.cpp  which is the source code for the executable.  The code has been updated to EDEM 2022.3 version and the main change is the usage of CCouplingFeatureFlags.  The user can select what type of data to download from EDEM to the Coupling, downloading all data can be time-consuming so only choosing the required data for the coupling type can improve simulation speed.

Pre-Requisite

EDEM 2022.3 or later.

Microsoft Visual Studio (check with your institution IT on available versions).

Ensure that your System Environment variable 'Path' has the location of the EDEM bin and lib folders:

image

 

 

Usage/Installation Instructions

To us:

  • Unzip ApplyPressureExample.zip
  • Open presssure_example_deck.dem in EDEM
  • In the EDEM Creator start the Coupling Server so it's in Listening mode
  • Run the ApplyPressure.exe either via command line (recommended for error reporting) or double click
    • The .exe reads the associated ApplyPresssure_prefs.txt to determine the geometry name to control, the amount of pressure, the simulation start and end times and the time-step ratio on communication between the .exe and EDEM
    • Once the connection is made and geometry found the simulation will run and the geometry plate will compress the particles to a set pressure