Simscape Spatial Contact Force no contact signal when minimum distance is 0

32 views (last 30 days)
I'm modelling the collision between a plate and the L shaped mesh shown in figure (aircraft winglet).
The plate is a brick solid of dimensions XYZ [0.7 0.64 0.005]m, with a mass of 2.5kg.
The L shape mesh is made of 2 distinct components assembled as follow:
The mesh files are 2 STLs, each one have already been prepared as convex hull in Blender.
As you can see the minim distance approaches 0 but the contact signal is never triggered.
This is where it gets weird: if you replace the brick solid with a STL of the plate from Blender with same dimensions and mass you still get no collision. So you change the geometry of the winglet with a unique convex hull, yet no progres. If you increase the volume of the winglet, such as extruding in the X direction, collisions start to get recognized, but only after a certain amount. Every other part of the helicopter works fine.
For what I could understand this issue does not depend on:
1) The geometry of either the plate or the winglet
2) The position in space of winglet, as I tried different configurations using rigid transforms
3) The integrator, I've used ODE15s, ODE23t, ODE45 and they all behave the same (I lowered the relative tolerance and set maximum step size of 1 ms).
4) Switching on and off frictional forces
5) Changing Spring stiffness and damping, except for one case in witch
The spatial contact force works perfectly in the same model with the same plate but different components, all connected to the same Follower signal line.
Final note: I've imported the two meshes in the steering wheel example, both the plate and winglet collide with the plane, but not with each other. Using point clouds don't change anything, and I need the contact signals for my analisys so it's not really an option. So I tried to run a Rigid Body simulation with Blender and they work fine, so the problem lies in Simscape.
  8 Comments
Riccardo Capellino
Riccardo Capellino on 5 Dec 2024 at 10:14
Edited: Riccardo Capellino on 5 Dec 2024 at 10:16
AW169_EPP.008.stl and part.stl are the same file, just renamed. The cloud point was there to test if it worked (it did not), I left it there because I didn't need it anymore but maybe someone could have found it useful.
Can you tell me what Matlab version are you on? I've tested this model in both my 2 laptops with 2023a and it never worked.
Yifeng Tang
Yifeng Tang on 5 Dec 2024 at 13:48
MATLAB Version: 9.14.0.2674353 (R2023a) Update 7
The simulation works on my end with the ode23t solver you specified. If left to "auto", it'll choose ode45 and it works as well.

Sign in to comment.

Accepted Answer

Riccardo Capellino
Riccardo Capellino on 7 Dec 2024 at 13:28
After a clean installation of Matlab 2024b the problem seems to be gone.

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!