TAGGED: PyMAPDL
-
-
April 30, 2024 at 8:14 am
Ramon Frey
SubscriberI'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 am
Erik Kostson
Ansys EmployeeHi
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
-
- The topic ‘mapdl.cp limited to 20 points’ is closed to new replies.
-
3402
-
1052
-
1050
-
886
-
857
© 2025 Copyright ANSYS, Inc. All rights reserved.