user defined EDEM contact model error

QinHe_321
QinHe_321 Altair Community Member

dll packing is smooth, what may cause this error.

Tagged:

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee

    Hi,

    It looks like a warning rather than an error, potentially eCalculateForce is not always returning success or the F1 variable could be returning 'not a number'. You may need to debug this to check what is happening.

    I would recommend using the latest version of the API, I'm unsure which version of the API you are using but the variable cohesion model was recently updated to the latest version supported in EDEM 2024.1:

    And we have a guide on how to update API versions:

    Regards

    Stephen

  • QinHe_321
    QinHe_321 Altair Community Member

    I delete F1 and all calculations, only left this in calculate force:

    return ECalculateResult::eSuccess;

    But same error still happens to stop calculation.

  • QinHe_321
    QinHe_321 Altair Community Member

    does user defined contact model conflicts with volume packing?

  • Stephen Cole
    Stephen Cole
    Altair Employee

    Hi, if you use the template from the tutorial and remove all the calculations in the same way do you see the same issue?

  • QinHe_321
    QinHe_321 Altair Community Member

    tutorial model failed packing

  • QinHe_321
    QinHe_321 Altair Community Member

    When particles are less, the error occurs less, and the model can run.

    But when more particle exists, the model will stuck.

  • QinHe_321
    QinHe_321 Altair Community Member

    I changed the version to 3 1 0, then this error do not happens.

    EXPORT_MACRO int GETCMINTERFACEVERSION()
    {
    static const int INTERFACE_VERSION_MAJOR = 0x03;
    static const int INTERFACE_VERSION_MINOR = 0x01;
    static const int INTERFACE_VERSION_PATCH = 0x00;

    return (INTERFACE_VERSION_MAJOR << 16 |
    INTERFACE_VERSION_MINOR << 8 |
    INTERFACE_VERSION_PATCH);

    }