I am trying to simulated the gear change behavior in a vehicle transmission using Simulink and Simscape driveline The gearbox itself is modeled with Simscape driveline but the clutch is based on Simulink model. The below picture shows the driveline clutch element but I will replace it with simulink model.
I am not sure how I can interface both Simulink clutch model and the driveline loop. The model contains the rotational dynamics of both clutch sides and the conditon for engagement. So, the sum of torques on each side can be cacluted as well as the individual rotational speed.