EDEM particle body force error

QinHe_321
QinHe_321 Altair Community Member
edited October 26 in Community Q&A

image

Error happens when I import the attached dll into particle body force, and any hint about the reason would be helpful.

 

 

 

Tagged:

Answers

  • jerrinjobs
    jerrinjobs
    Altair Employee
    edited October 22

    Hi Qin

    As the error suggests, you do not seem to have a preference file in the folder where the .dem file is located. You do not have a CUDA file of the code. The dll will run only on CPU, and not on GPU.

    Hope this helps.

    Thanks,
    Jerrin Job

  • QinHe_321
    QinHe_321 Altair Community Member
    edited October 23

    I changed sln to get rid of perference files, and installed CUDA, but the error still happens.

    image

  • QinHe_321
    QinHe_321 Altair Community Member
    edited October 23

    Maybe it's because my coding lack some component in sphere and solver.

    I'll search C++ library for that.

  • QinHe_321
    QinHe_321 Altair Community Member
    edited October 23

    image

    This happens when the particle body force is selected

  • jerrinjobs
    jerrinjobs
    Altair Employee
    edited October 23
    Qin He said:

    image

    This happens when the particle body force is selected

    Hi Qin

    As the error suggests, you may have missed the GETEFINTERFACEVERSION function in your cpp file before compiling. Or the version that you have written in here does not match the version of the IPluginParticleBodyForce version. Or you are using a version of the API that does not match with the EDEM version. Please confirm if the EDEM version you are using supports the API version that you are trying to use.

    Hope this helps.

    Thanks,
    Jerrin Job

  • QinHe_321
    QinHe_321 Altair Community Member
    edited October 23

    I'm using EDEM 2023.0, and the suggested document "IPluginParticleBodyForceV3_3_0.h", what may cause the problem?

  • QinHe_321
    QinHe_321 Altair Community Member
    edited October 23

    Should I include GETEFINTERFACEVERSION from other files?

  • QinHe_321
    QinHe_321 Altair Community Member
    edited October 23

    image

    plugin error gone after I delete the constructor and destructor in header file.

    But new error happens in analysis.

     

     

  • jerrinjobs
    jerrinjobs
    Altair Employee
    edited October 23
    Qin He said:

    image

    plugin error gone after I delete the constructor and destructor in header file.

    But new error happens in analysis.

     

     

    Hi Qin

    You seem to have a very old version of the API. Please consider updating the API to the latest version, and you should be okay. Here is a YouTube video that shows how to update the APIs: https://www.youtube.com/watch?v=Bweffts_4qM

    Thanks,
    Jerrin Job

  • Renan
    Renan
    Altair Employee
    edited October 23
    Qin He said:

    Should I include GETEFINTERFACEVERSION from other files?

    Hi Qin,

    That's right, the GETEFINTERFACEVERSION method should be implemented in another cpp file. Please take a look at the source code of this model to learn how to implement that function.

    Best regards,

    Renan

  • QinHe_321
    QinHe_321 Altair Community Member
    edited October 23

    Hi Qin

    You seem to have a very old version of the API. Please consider updating the API to the latest version, and you should be okay. Here is a YouTube video that shows how to update the APIs: https://www.youtube.com/watch?v=Bweffts_4qM

    Thanks,
    Jerrin Job

    It's a little different, in the video the force is right.

    In my model the force is not right, which means this is not the reason stop the model.

     

    Thanks for the tip

  • QinHe_321
    QinHe_321 Altair Community Member
    edited October 23

    This time there's no error, but no force is generated on particles.