TAGGED: PyMAPDL
-
-
April 30, 2024 at 8:14 amRamon FreySubscriber
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
-
April 30, 2024 at 8:48 amErik KostsonAnsys 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
-
- You must be logged in to reply to this topic.
-
456
-
205
-
194
-
177
-
162
© 2024 Copyright ANSYS, Inc. All rights reserved.