Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running example sphere_sliding.py , an error occurred #1

Closed
cloneorcopy opened this issue Mar 24, 2024 · 1 comment
Closed

When running example sphere_sliding.py , an error occurred #1

cloneorcopy opened this issue Mar 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@cloneorcopy
Copy link
Contributor

Thank you for your great work! I just try to run the demmp example (sphere_sliding.py), but iI got some trouble .The trackback was as follow :

Exception has occurred: AttributeError
'LinearModel' object has no attribute 'null_model'
  File "E:\EX_library\GeoTaichi-main\src\mpdem\ContactManager.py", line 94, in add_contact_property
    if self.physpp.null_model is True and self.physpw.null_model is True:
  File "E:\EX_library\GeoTaichi-main\src\mpdem\mainDEMPM.py", line 140, in add_property
    self.contactor.add_contact_property(self.sims, DEMmaterial, MPMmaterial, property, dType)
  File "E:\EX_library\GeoTaichi-main\sphere_sliding.py", line 186, in <module>
    dempm.add_property(DEMmaterial=0,
AttributeError: 'LinearModel' object has no attribute 'null_model'

I think maybe there was something wrong with ContactModel. Noted that all of ContactModes have a property named null_mode, so maybe null_model in ContactManager.py means null_mode. I am not sure about it.

@Yihao-Shi
Copy link
Owner

Please download the latest version --commit d33ed83. I can run it successfully on my computer. Please contact us if you have any questions.

@Yihao-Shi Yihao-Shi added the bug Something isn't working label May 16, 2024
Yihao-Shi pushed a commit that referenced this issue Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants