I am trying to simulate the control surface (suppose an elevator using the following blockest. I have the elevator block providing me with Cl Cd and Cm ( lift , drag and pitching coeffiecients) which will be multiplied with 0.5 * p * v* v *S to give the forces. As lift is along negative z and drag along negative x multiplied it with -1. But whenever I am running the simulation its showing the error.
- Derivative of state '1' in block 'controlsurface_trial2/3DOF (Body Axes)/q' at time 0.0 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances) as shown in the figure below:
The code is also attached . For your help ...can you pleas ehelp me out ....stuck in middle of some project for a very long time. Thanks in advance !