How to orient 2D elements in the centripetal direction?
Hi there,
I'm setting up a composite optimization to a wheel and I'm having trouble orienting the elements in the flanges. Using a cylindrical coordinate system I can orientate all the elements in the rim with the same direction of the wheel's axis (shown in the picture with the big arrow). However the elements of the flanges don't get any orientation because the flange is perpendicular to the axis (shown in other picture). If I use the same coordinate system to orient the elements in the radial direction, one of the flanges orientation is consistent but the other isn't (shown in the picture with the opposing arrows).
Is there a way to orient the elements in a centripetal direction with the cylindrical coordinate system instead of a centrifugal direction?
Thanks a lot,
Rodrigo
Answers
-
Hello,
we can orientate flange elems centripetal by a script.
But first please reverse 'z-axis' of your cylindrical system and orientate longitudinal elems again.
I think your 'z-axis' is currently point to the left so just reverse it to point like below, then orient will be uniform:
If you want to change orient of flange elems as centripetal, this script may help (just reverse THETA)
*createmarkpanel elems 1 "Select flange elems:" foreach EID [hm_getmark elems 1] { set theta [hm_getentityvalue elems $EID \$THETA 0] set theta [expr $theta + 180] if {$theta >= 360} {set theta [expr $theta - 360]} *setvalue elems id=$EID \$THETA=$theta } *clearmark elems 1
tested on HM2019:
1 -
Perfect, thanks!
0