← 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

Kun Zeng posted a new comment:
Thanks Jan. I add from yade import Vector3 at the top of my code. it
works. However, I changed the facet to:

def rect(vs,**kw):
   v1,v2,v3,v4 = vs
   return [
    f = yade.utiles.facet((v1,v2,v3),**kw),
 ]

Then it shows:

Traceback (most recent call last):
  File "example1.py", line 90, in <module>
    dem = YADE_API(demName)
  File "/home/kun/femdem/include/mupif/api/yade/yade_interface.py", line 153, in __init__
    execfile(inputfile)
  File "example1-yade.py", line 74
    f = yade.utils.facet((v1,v2,v3),**kw),
      ^
SyntaxError: invalid syntax

Is there somethings I still have mistake?

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