Hi all!
I am currently working on my own liquid bridge model. Now, as inspiration I am using the CLiquidBridgeModel.cpp that was provided here in the discussions as API Example.
This CLiquidBridgeModel uses custom properties m_BridgeStatus, m_BridgestatusDelta as well as m_BridgeForceDelta and m_BridgeForce.
I have tried implementing this as well but my plugin results in EDEM silently crashing immediately after start of the simulation (first loop). Whenever I try to debug in MSVS I can see where it goes wrong. I have added a safeguard to make sure that the code exits calculateforce() early if there is no liquid bridge yet present and if we are not within the distance that a bridge should form (to safe computational load due to larger contact radius). When this if statement is excecuted it tries to use the BridgeStatus which is a nullptr. This results in the following error:
I don't understand what I am doing wrong in my script and why it is different from what is done in CLiquidBridgeModel.cpp. Why does the bridgeStatus getvalue not work correctly?
My code is added in the .xtx file. I would appreciate if anyone has any idea on how to fix this. I am using EDEM 2025
Thanks!
Kind regards,
Jan-Thijn Wijnker