yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #25467
Re: [Question #696759]: How can polyhedron use CpmMat 、Ip2_CpmMat_CpmMat_CpmPhys()and Law2_ScGeom_CpmPhys_Cpm() ?
Question #696759 on Yade changed:
https://answers.launchpad.net/yade/+question/696759
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
>> 1)How can I modify the source code so that polyhedron can use CpmMat correctly?
> see above, just modify your script
sorry, I have included the corrected script, but then probably deleted it..
The problem in your code is that polyhedra_utils.polyhedra expects material to be actual Material, but your "concrete" is int (returned by O.materials.append).
The error says that. A bit cryptically thought..
Change it to
###
concrete = CpmMat(...) # concrete is Material
concreteId = O.materials.append(concrete)# concreteId is int
poly1= polyhedra_utils.polyhedra(material=concrete,...) # material=Material, ok
###
and it should work.
So no need to modify source code for this problem.
> Do you have any suggestions or references for how to change these
equivalent radii, area and refLength when situation changes
significantly?
No..
I **personally** would start with this simplified version, having in mind the simplification, testing from time to time if it is sufficient or not and deal with the more general solution only if necessary
Cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.