← Back to team overview

yade-users team mailing list archive

Re: How to use constitutive laws in Python scripts


> Think u've forgotten to include the script in the email.  I think 
> Spheres Contact Geometry(SCG) doesn't yet support sphere-facet? 
> Dem3DofGeom does support sphere-facet.
SCG does support sphere-facet, although by replacing the facet by a
fictious sphere. The functor is in
InteractingFacet2InteractingSphere4SpheresContactGeometry (soon, it will
be called Ig2_Facet_Sphere_ScGeom)
>  So there is a choice between using ef2_Spheres_Elastic_Elastic (using
> SCG) and Law2_Dem3Dof_Elastic_Elastic (using Dem3Dof), both of which
> are in ElasticContactLaw.cpp. 
Yes, exactly, for the basic elastic law. There are other laws (like for
ConcretePM or for RockPM) as well.

(Again, the ef2_Spheres_Elastic_Elastic will soon become
Law_ScGeom_Elasic_Elastic or such; but it will not break your scripts,
no worry, these changes are backwards-compatible at python level).

Cheers, Vaclav

Follow ups