Dose Liboofem lack druckerPrager module?

Asked by De zhang

Hi everyone,
Recently, I am trying the surface coupler of DEM and FEM, and I used material of Drucker Prager plastic material in liboofem as following:
'import liboofem'
'mat = liboofem.DruckerPrager(1, domain, d=1950, tAlpha=0, E=2e6, n=0.23, alpha=0.23, h=1)',
but the error message showed 'no module of 'DruckerPrager'', I tried different name of that such as 'druckerprager' which is illustrated in file 'DruckerPragerPlasticitySM.h' or others, but it didn't work, so did the liboofem lack the druckerPrager module? or how to invoke it in liboofem?
Thanks,
DE Zhang

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

Hello,

you have 2 options:
1) mat = liboofem.material("DruckerPrager", 1, domain, d=1950, tAlpha=0, E=2e6, n=0.23, alpha=0.23, h=1)',
2) modify source code of oofem/bindings/python/oofemlib.cpp and dd druckerPrager function similar to isoLE, lines around 1631 and 1800

cheers
Jan

Revision history for this message
De zhang (dzlearnyade) said :
#2

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