EDEM particle body force error
Error happens when I import the attached dll into particle body force, and any hint about the reason would be helpful.
Answers
-
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 Job1 -
I changed sln to get rid of perference files, and installed CUDA, but the error still happens.
0 -
Maybe it's because my coding lack some component in sphere and solver.
I'll search C++ library for that.
0 -
This happens when the particle body force is selected
0 -
Qin He said:
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 Job0 -
I'm using EDEM 2023.0, and the suggested document "IPluginParticleBodyForceV3_3_0.h", what may cause the problem?
0 -
Should I include GETEFINTERFACEVERSION from other files?
0 -
plugin error gone after I delete the constructor and destructor in header file.
But new error happens in analysis.
0 -
Qin He said:
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 Job0 -
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
0 -
Jerrin Job Sibychan said:
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 JobIt'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
0 -
-