EDEM particle body force API don't generate force

Qin He
Qin He Altair Community Member
edited October 26 in Community Q&A

Code are as follows, what causes the error?

 

imageimageimage

Tagged:

Best Answer

  • jerrinjobs
    jerrinjobs
    Altair Employee
    edited October 26 Answer ✓

    Hi Qin

    In your header file, you are including IPluginParticleBodyForceV3_3_0.h, but in your cpp file for the GETEFINTERFACEVERSION, although your INTERFACE_VERSION_MAJOR is 3, your INTERFACE_VERSION_MINOR is 4, which is inconsistent with the included header.

    You can change the header file to include IPluginParticleBodyForceV3_4_0.h, or change the INTERFACE_VERSION_MINOR to 3.

    Hope this helps.

    Thanks,
    Jerrin Job 

Answers

  • jerrinjobs
    jerrinjobs
    Altair Employee
    edited October 26 Answer ✓

    Hi Qin

    In your header file, you are including IPluginParticleBodyForceV3_3_0.h, but in your cpp file for the GETEFINTERFACEVERSION, although your INTERFACE_VERSION_MAJOR is 3, your INTERFACE_VERSION_MINOR is 4, which is inconsistent with the included header.

    You can change the header file to include IPluginParticleBodyForceV3_4_0.h, or change the INTERFACE_VERSION_MINOR to 3.

    Hope this helps.

    Thanks,
    Jerrin Job 

  • Qin He
    Qin He Altair Community Member
    edited October 26

    It finally worked, thank you for your help.

    I'm looking forward for Altair to have better document, so that programmer can use API smoothly.

     

    Qin