Command : circle
#3548
-
mapdl.clear()
mapdl.prep7()
k0 = mapdl.k("", 0, 0, 0)
k1 = mapdl.k("", 1, 0, 0)
carc0 = mapdl.circle(k0, 1.75, k1)
a0 = mapdl.al(*carc0)
mapdl.lplot(background="w", color="y", line_width=5, show_bounds=True, cpos="zy") When drawing a circle parallel to the zy-plane, an error occurs, which prompts: Axis and start points are colinear with the center point. But when you draw circles parallel to the xy plane or the xz plane, there's no problem, such as: k0 = mapdl.k("", 0, 0, 0)
k1 = mapdl.k("", 0, 1, 0)
carc0 = mapdl.circle(k0, 1.75, k1)
a0 = mapdl.al(*carc0)
mapdl.lplot(background="w", color="y", line_width=5, show_bounds=True, cpos="zy") Is this a bug, or is there a grammatical error in my writing |
Beta Was this translation helpful? Give feedback.
Answered by
mikerife
Nov 13, 2024
Replies: 1 comment 1 reply
-
Hi @chuankaia The commands needed are then: mapdl.clear()
mapdl.prep7()
k0 = mapdl.k("", 0, 0, 0)
k1 = mapdl.k("", 1, 0, 0)
k2 = mapdl.k("", 0, 1, 0)
carc0 = mapdl.circle(k0, 1.75, k1, k2)
a0 = mapdl.al(*carc0)
mapdl.lplot(background="w", color="y", line_width=5, show_bounds=True, cpos="zy") Mike |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mikerife
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @chuankaia
I transferred this question to the Discussions as the behavior is expected. For a circle in the ZY plane the PZERO keypoint needs to be defined as well. See the MAPDL help on the circle command here.
The commands needed are then:
Mike