🎉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

Could not load plugin file

User: "Tob"
Altair Community Member

Hello,
I’m trying to simulate particle expansion using Altair EDEM and the example from Altair Exchange. However, I encounter the following error when opening the file:


WARNING: Plugin: Could not load plugin file: C:/Users/tob/Downloads/ParticleGrowthCycle/example\ParticleGrowthCycle.dll.


I downloaded the file without modifications but am still experiencing issues. I’m using Altair EDEM 2024.1. Has anyone faced this error, or does anyone have suggestions on how to fix it?

Find more posts tagged with

Sort by:
1 - 6 of 61

    This maybe related to requiring visual studio redistributable. On the machine where you are going to load .dll can you try installing:

    https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

    If you to "Latest Microsoft Visual C++ Redistributable Version" > X64 and install the "vs_redist.x64.exe" that should hopefully resolve it. You may need to restart the machine for it to work.

    Otherwise can you check you have all file permissions on the folder containing the .DLL.

    Regards

    Stephen

    User: "Tob"
    Altair Community Member
    OP

    Hi Stephen Cole,
    Thank you very much for your response.
    I have install Latest supported Visual C++ Redistributable. However, the same error still occurs.
    For the "all file permissions on the folder containing the .DLL" may I know how I can check the permission? I am sorry for this question, as I am just a beginner to EDEM.

    Hi,

    Typically if it's windows you should have permissions so long as the files are not saved in Program Files, otherwise it would be the stystem admin who may have set restrictions.

    It may be best to recompile the .dll on your system which should help. We have API tutorials and a video on this

    Regards
    Stephen

    User: "Tob"
    Altair Community Member
    OP

    Hi Stephen Cole
    Thank you very much for your response.
    I have
    1. Install the Laster visual studio.

    2. Allow all permission

    3. Use 2024.1 version

    Unfortunately, non of the methods above worked. So I am now start learning how to recompile the file.

    User: "Tob"
    Altair Community Member
    OP

    Hi Stephen Cole

    I am still trying to solve the problem above. Hope that it will be done soon.

    And I also have another question about assigning expansion rate. Instead of applying same expansion rate and time for all particles (same material as shown in the example), is there any way to apply different expansion rate for different materials?

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

    Hi, you can specify the model to apply to just one particle type, you can do this in both Contact Models and Body Forces.

    For example with the code below it checks for particles contacting a specific geometry, we check the geometry name (which is a user input) and only apply the code if the name of the geometry in EDEM (element2.type) matches the user input.

        // Get the geometry name as a string
    const std::string geometry_name = GEOM_NAME.getString();

    // Check if the particle is in contact with the geometry
    if (strcmp(element2.type, geometry_name.c_str()) == 0)
    {

    //update mass passed custom prop with the mass of the particle removed
    double* massPassedDelta = elem2CustomProperties->getDelta(iMASSPASSED);
    massPassedDelta[0] += element1.mass;

    //remove particle
    m_particleMngr->markForRemoval(element1.ID);

    }

    Regards

    Stephen