Velocity vector - incidence angle of aero profil - MotionView
Hi,
I'm working on an aero project on MotionView.
I need to return the incidence angle for a lift force calculation.
The incidence angle is the angle between the Chord line of my aerodynamics profil (represented by one of the direction of a marker in my model) and the vector of his relative velocity, Vr.
To calculate Vr, I return the Vx, Vy and Vz velocity amplitudes of my marker linked to my profil body and ad a wind value in the x direction :
Vx_relative = Vx + Vwind
Vy_relative = Vy
Vz_relative = Vz
Do you know how can i have this velocity vector ?
I didn't manage to give solver variable values to a Vector entity : "Error"
Thanks in advance,
Thomas
Answers
-
Hi Thomas,
It seems like this can be solved with some trigonometry.
- Create Solver Variables for VX, VZ, and VR.
- Let's call them sv_vx, sv_vz, sv_vr.
- Set their types to expression, and use the VX and VZ functions to compute the velocity components for sv_vx and sv_vz. If there is a marker on the wing, called MODEL.m_wing, then the expression could be:
- ` VX({MODEL.m_wing.idstring},{MODEL.Global_Frame.idstring}) `
- For sv_vr, the resultant velocity expression would be:
- ` sqrt({MODEL.sv_vx.VARVAL}^2 + {MODEL.sv_vz.VARVAL}^2) `
- The angle of the resultant velocity relative to the Chord Line wind would be:
- ` A + ATAN({MODEL.sv_vx.VARVAL}/{MODEL.sv_vz.VARVAL} `, where A is the angle between the Chord Line and the Relative Wind vector.
Measure these new system variables using an Output with the type set to Expression. Here you can reference the new variables to see their time-history through the event.
I suggest you create a test model with simple values and a predictable output to make sure you have it all figured out before deploying it in your full model.
Hope this helps!
Adam Reid
0 - Create Solver Variables for VX, VZ, and VR.