Selecting nodes for applying boundary conditions #2990
-
Hi everybody, # Apply locking in z-direction
mapdl.d("ALL", "UZ")
# Apply locking in x-direction for nodes at x_max
mapdl.nsel("S", "LOC", "X", x_max)
mapdl.d("ALL", "UX")
# Apply locking in y-direction for nodes at y_min
mapdl.nsel("S", "LOC", "Y", y_min)
mapdl.d("ALL", "UY")
# Apply locking in x-direction for nodes at x_min
mapdl.nsel("S", "LOC", "X", x_min)
mapdl.d("ALL", "UX")
# Apply force of 1 N in negative y-direction at nodes at y3
mapdl.nsel("S", "LOC", "Y", y3)
mapdl.f("ALL", "FY", -1) I hope you guys can see an obvious mistake I am making, and hope you can help me fix it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @Deternanna there are no mistakes in the PyMAPDL code...asuuming the x_min etc values are correct. So, what do you mean by disappear? After solving do the results show that the load and boundary conditions are there? What leads you to think that the BCs are not correct? |
Beta Was this translation helpful? Give feedback.
-
Okay I found the answer myself, you apparently have to add,
For it to select all nodes before going into the solving stage, otherwise it only remembers the conditions you put unto the latest selected nodes. |
Beta Was this translation helpful? Give feedback.
Okay I found the answer myself, you apparently have to add,
mapdl.nsel('ALL')
For it to select all nodes before going into the solving stage, otherwise it only remembers the conditions you put unto the latest selected nodes.