← Back to team overview

yade-users team mailing list archive

Re: [Question #658909]: Question about FEM and DEM coupling

 

Question #658909 on Yade changed:
https://answers.launchpad.net/yade/+question/658909

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

> NameError: global name 'facet' is not defined

if you use standalone yade, it imports a lot of stuff (like function facet) at startup to make things easier.
However, if you use yade as a Python module (from libyade import yade), not everything is imported.

e.e. to use facet, you need first import the name:
from yade.utils import facet
f = facet(...)

or

f = yade.utils.facet(...)

> NameError: name 'vector' is not defined

did you mean Vector3?

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.