import simDEM

Asked by HaodingXu

Dear staff,
A good news is I can generate yadeimport.py and use it. Thank you very much about the help.
another question is when I tried to import sim DEM it said no module.
I have found an answer:

in shell:

cp /usr/lib/x86_64-linux-gnu/yade/py/yade/FEMxDEM/simDEM.py .

however I don't have this folder (x86_64-linux-gnu/yade), can I use yade-double folder, like: (I just have yade-double, yade-float128,yade-longdouble, yade-mpfr150 folders)

cp /usr/lib/x86_64-linux-gnu/yade-double/py/yade/FEMxDEM/simDEM.py .

or maybe another folder is a better choice? (I hope to try some FEMxDEM examples.)

by the way, I cannot open yade web these two days so the reply is quite late.
best wishes,
Haoding

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

> can I use yade-double folder
> or maybe another folder is a better choice? (I hope to try some FEMxDEM examples.)

use the same directory from which you created yadeimport.py
Probably yade-double.

Linux shell commands like "which", "file", "ls -l" are your friends.
For me:

which yade
# /usr/bin/yade

file /usr/bin/yade
# /usr/bin/yade: symbolic link to yade-double

ls -l /usr/bin/yade
# ... /usr/bin/yade -> yade-double

You start with "file yadeimport.py"

Cheers
Jan

Revision history for this message
HaodingXu (haoding) said :
#2

Thanks Jan Stránský, that solved my question.