# Vector Projection onto Tangent of Polyline

 Register Blogs Members List Search Today's Posts Mark Forums Read

 May 17, 2017, 10:28 Vector Projection onto Tangent of Polyline #1 Member   James Wright Join Date: Oct 2015 Posts: 39 Rep Power: 7 So I am try to calculate the percentage area of flow reversal on the blades of a centrifugal compressor (negative Z axis being the axis of rotation with flow moving in positive direction) in CFD Post. The current way I am doing it is to do a countTrue of wall shear being positive in the Z direction and dividing that by the count of the surface. (While ideally I'd like to do this by area instead of by node, node works fine since I'm mostly concerned with the exisitence of reversed flow, not necessarily the exact amount of reversal.) This works pretty well on the suction side of the blade, but not the pressure side, where flow is mostly being moved in the radial direction, with some of that flow having a negative Z component. What I'd like to do is have the directional component of wall shear where the direction is determined by a polyline (ie, the shroud contour of the compressor). Basically, I want to have a variable equal to: where directional vector is determined by the tangential of a polyline. The tangential of the polyline can simply be the tangential vector of the polyline at the same Z height as the point where the wall shear is being requested. Is this possible? Seems like a simple thing to do, but I can't figure out how to do it in CFX Post. I am using ANSYS WB 17.2 Thanks,

 May 17, 2017, 20:58 #2 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 16,719 Rep Power: 130 You will need to write the dot product out as its components. The boundary normal variable is available on polylines. Not sure if this will give you what you want, you will have to try it. The wall shear is available as the components of the vector so that one is fine.

 May 17, 2017, 22:27 #3 Member   James Wright Join Date: Oct 2015 Posts: 39 Rep Power: 7 Does using * on two vector variables not do a dot product? Results I've done using this have worked in the past... I saw that polylines had the normal components, but I wasn't sure if there was a way to get the tangential components of the polyline (either by mathematical trickery or a hidden function). I guess I could transform the normal components into tangential since I know the plane in which the polyline lies. I was just hoping there was a way to directly get the tangential components as that would be more robust of a method. Thanks!

May 18, 2017, 05:54
#4
Super Moderator

Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 16,719
Rep Power: 130
Quote:
 Does using * on two vector variables not do a dot product?
I have never tried. If it seems to work then great.

Quote:
 I was just hoping there was a way to directly get the tangential components as that would be more robust of a method.
Yes, it is not ideal. But if you can work with it then your problem is resolved.

 Tags polyline, projection tensor, tangential, vector