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
-
- The topic ‘mapdl.cp limited to 20 points’ is closed to new replies.
- Problem with access to session files
- Ayuda con Error: “Unable to access the source: EngineeringData”
- At least one body has been found to have only 1 element in at least 2 directions
- Error when opening saved Workbench project
- Geometric stiffness matrix for solid elements
- How to select the interface delamination surface of a laminate?
- How to apply Compression-only Support?
- Timestep range set for animation export
- Image to file in Mechanical is bugged and does not show text
- SMART crack under fatigue conditions, different crack sizes can’t growth
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.