Liquid Bridge model API in Altair Forum

Yu Wang_21521
Yu Wang_21521 Altair Community Member
edited August 2023 in Community Q&A

Dear Officer,

 

I found an article about the API functions in EDEM, and it introduced the liquid bridge model found in Altair Forum (https://altairuniversity.com/52476-making-contact-using-edem-api-to-write-custom-contact-models/). However, after several attempts, I am still not eligible to find the resources regarding this model, is this model accessible to the public? or is there anything wrong while I am searching? 

If possible, could you kindly help share the link with me regarding this model?

 

Thank you for your great help in advance!

 

Best Regards,

Yu

Tagged:

Best Answer

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited February 2023 Answer ✓

    Hi Yu,


    The liquid bridge model is a model that was originally posted on the 'DEM Solutions' forum prior to EDEM becoming a part of Altair.  I have made a couple of updates to the documentation added the Altair community today and you can find it here:

    https://community.altair.com/csm?id=kb_article&sysparm_article=KB0113652

    Post contains the original source code (from 2012) which would benefit from been updated to the latest version of the EDEM API and tested with the latest version of EDEM, however it should be backwards compatible to the original version of the API it was written in.

    Just to note models like the JKR or EEPA can provide similar cohesive interactions and you can find details of those here 

    https://learn.altair.com/course/view.php?id=148

    Regards

    Stephen

     

     

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited February 2023 Answer ✓

    Hi Yu,


    The liquid bridge model is a model that was originally posted on the 'DEM Solutions' forum prior to EDEM becoming a part of Altair.  I have made a couple of updates to the documentation added the Altair community today and you can find it here:

    https://community.altair.com/csm?id=kb_article&sysparm_article=KB0113652

    Post contains the original source code (from 2012) which would benefit from been updated to the latest version of the EDEM API and tested with the latest version of EDEM, however it should be backwards compatible to the original version of the API it was written in.

    Just to note models like the JKR or EEPA can provide similar cohesive interactions and you can find details of those here 

    https://learn.altair.com/course/view.php?id=148

    Regards

    Stephen

     

     

  • Tony Arthur
    Tony Arthur Altair Community Member
    edited February 2023

    Hi Yu,


    The liquid bridge model is a model that was originally posted on the 'DEM Solutions' forum prior to EDEM becoming a part of Altair.  I have made a couple of updates to the documentation added the Altair community today and you can find it here:

    https://community.altair.com/csm?id=kb_article&sysparm_article=KB0113652

    Post contains the original source code (from 2012) which would benefit from been updated to the latest version of the EDEM API and tested with the latest version of EDEM, however it should be backwards compatible to the original version of the API it was written in.

    Just to note models like the JKR or EEPA can provide similar cohesive interactions and you can find details of those here 

    https://learn.altair.com/course/view.php?id=148

    Regards

    Stephen

     

     

    Hello Stephen,

    Please I have been trying to import this model into my DEM simulation but it the API  does not appear in the contact physics model for me to use. 

    please is there anyhow i can make accessible for me to apply in my simulation.

     

    thanks

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited February 2023

    Hello Stephen,

    Please I have been trying to import this model into my DEM simulation but it the API  does not appear in the contact physics model for me to use. 

    please is there anyhow i can make accessible for me to apply in my simulation.

     

    thanks

    Hi Tony,

    The code on the post hasn't been compiled into a library file, jsut to confirm if you have compiled it?  We have a guide on compiling here - https://community.altair.com/csm?id=kb_article_view&sysparm_article=KB0037690

    If you have compiled is there any error message when loading the file?

    Regards

    Stephen

  • Tony Arthur
    Tony Arthur Altair Community Member
    edited February 2023

    Hi Tony,

    The code on the post hasn't been compiled into a library file, jsut to confirm if you have compiled it?  We have a guide on compiling here - https://community.altair.com/csm?id=kb_article_view&sysparm_article=KB0037690

    If you have compiled is there any error message when loading the file?

    Regards

    Stephen

    Thanks, Stephen,

    I have not compiled the library file yet. i will follow the steps you have sent me and try to compile it and have a go at it.

    Thanks again.

  • Tony Arthur
    Tony Arthur Altair Community Member
    edited February 2023

    Thanks, Stephen,

    I have not compiled the library file yet. i will follow the steps you have sent me and try to compile it and have a go at it.

    Thanks again.

    Hello Stephen, 

    i have been trying to compile the Liquid bridge model but i come across this error (see attached). when i disable the SDL checks and open the dll file in EDEM, I get this error message (see attached).

     

    Thanks again

    Tony 

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited February 2023

    Hello Stephen, 

    i have been trying to compile the Liquid bridge model but i come across this error (see attached). when i disable the SDL checks and open the dll file in EDEM, I get this error message (see attached).

     

    Thanks again

    Tony 

    Hi Tony,

     

    The EDEM error 'setup method returns failure' indicates the file has been compiled and loaded OK however it is sending an error as it can't find Liquid_Bridge_prefs.txt

     

    If you place the Liquid_Bridge_prefs.txt in the same location as the .dll that you read then it should load ok.  The .txt file may then need to be modified for any change in inputs.

     

    Regards

    Stephen

     

  • Tony Arthur
    Tony Arthur Altair Community Member
    edited February 2023

    Hi Tony,

     

    The EDEM error 'setup method returns failure' indicates the file has been compiled and loaded OK however it is sending an error as it can't find Liquid_Bridge_prefs.txt

     

    If you place the Liquid_Bridge_prefs.txt in the same location as the .dll that you read then it should load ok.  The .txt file may then need to be modified for any change in inputs.

     

    Regards

    Stephen

     

    thanks Stephen,

    I have  corrected this.

    However, there is no section in the model or the pref text file to input the liquid volume fractions.

    Please how do i go by this.

    Thanks again

    Tony

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited February 2023

    thanks Stephen,

    I have  corrected this.

    However, there is no section in the model or the pref text file to input the liquid volume fractions.

    Please how do i go by this.

    Thanks again

    Tony

    Hi Tony, 

    The liquid content can be set in EDEM, once you have loaded the custom model in this will then allow you to set the "Liquid Content" in the Factory when introducing the material.


    It should show up in the factory dialogue under Parameters.


    Regards

    Stephen

  • Tony Arthur
    Tony Arthur Altair Community Member
    edited February 2023

    Hi Tony, 

    The liquid content can be set in EDEM, once you have loaded the custom model in this will then allow you to set the "Liquid Content" in the Factory when introducing the material.


    It should show up in the factory dialogue under Parameters.


    Regards

    Stephen

    Hello Stephen,

    Thanks for your replies, it has been very helpful.

  • 郁暄 陈
    郁暄 陈 New Altair Community Member
    edited August 2023

    Hi Yu,


    The liquid bridge model is a model that was originally posted on the 'DEM Solutions' forum prior to EDEM becoming a part of Altair.  I have made a couple of updates to the documentation added the Altair community today and you can find it here:

    https://community.altair.com/csm?id=kb_article&sysparm_article=KB0113652

    Post contains the original source code (from 2012) which would benefit from been updated to the latest version of the EDEM API and tested with the latest version of EDEM, however it should be backwards compatible to the original version of the API it was written in.

    Just to note models like the JKR or EEPA can provide similar cohesive interactions and you can find details of those here 

    https://learn.altair.com/course/view.php?id=148

    Regards

    Stephen

     

     

    Hello Stephen,

    I have compiled the liquid bridge model into my EDEM 2020. However, in the post-processing interface of the simulation, all BridgeForce are shown as 0. I would like to know what is the reason for this. Does this mean that the liquid bridge model did not load successfully? The moisture content was set to 10% when generating the particles.

    Thanks!image

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited August 2023

    Hello Stephen,

    I have compiled the liquid bridge model into my EDEM 2020. However, in the post-processing interface of the simulation, all BridgeForce are shown as 0. I would like to know what is the reason for this. Does this mean that the liquid bridge model did not load successfully? The moisture content was set to 10% when generating the particles.

    Thanks!image

    Hi,

     

    Do you see the influence of the cohesion in the material behaviour?  You should see sticky type material.

     

    If you don't see the influence of the model it maybe due to the settings in Liquid_Bridge_prefs.txt  This should include the names of the particles you want to specify the interactions for, when using the API the name of the particle has to be identical to the one in EDEM.  Also make sure the EDEM particle name doesn't include spaces or the model won't be able to recognise this.

    Regards

    Stephen