General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more

mapdl.cp limited to 20 points

TAGGED: 

    • Ramon Frey
      Subscriber

      I'm trying to couple the y-degree of freedom of a set of nodes using pymapdl, but the function seems to be limited to 20 points:

      mapdl.cp(8, 'uy', nodes[0], *nodes[1:])

      Error:

      TypeError: CoupledDOF.cp() takes from 1 to 20 positional arguments but 32 were given

      First of all, it doesn't make sense to me at all why there would be such a limitation implemented. Second, is there a way to work around this?

      Any help is appreciated

    • Erik Kostson
      Ansys Employee

       

       

      Hi

      Looks strange the CP command (see MAPDL.CP() command in pymapdl site: https://mapdl.docs.pyansys.com/version/0.68/mapdl_commands/prep7/_autosummary/ansys.mapdl.core.Mapdl.cp.html)

       

      In general I would select all these set of nodes (e.g., nsel or cmsel commands), and then just use cp,next,uy,all, so:

       

      mapdl.cp(“NEXT”,”UY”,”ALL”)
      print(mapdl.cplist(“ALL”))

       

      All the best

      Erik

       

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.