Skip to content

Commit 75f4c56

Browse files
committed
Initial commit R2023a
1 parent 0f9949e commit 75f4c56

95 files changed

Lines changed: 65 additions & 65 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Models/Bouncing_Ball/Overview/html/sm_contact_ball.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<!--
77
This HTML was auto-generated from MATLAB code.
88
To make changes, update the MATLAB code and republish this document.
9-
--><title>Bouncing Ball With Zero Crossings</title><meta name="generator" content="MATLAB 9.13"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-09-19"><meta name="DC.source" content="sm_contact_ball.m"><style type="text/css">
9+
--><title>Bouncing Ball With Zero Crossings</title><meta name="generator" content="MATLAB 9.14"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2023-03-17"><meta name="DC.source" content="sm_contact_ball.m"><style type="text/css">
1010
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
1111

1212
html { min-height:100%; margin-bottom:1px; }
@@ -67,7 +67,7 @@
6767

6868

6969

70-
</style></head><body><div class="content"><h1>Bouncing Ball With Zero Crossings</h1><!--introduction--><p>This example models a ball bouncing on a floor using the Spatial Contact Force block. MATLAB scripts explore the effect of enabling and disabling zero crossings and the effect of solver settings on the simulation results.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Model</a></li><li><a href="#2">Simulation Results from Simscape Logging</a></li><li><a href="#4">Simulation Results from Simscape Logging: Effect of Zero Crossings</a></li><li><a href="#6">Simulation Results from Simscape Logging: Thin Floor</a></li><li><a href="#8">Simulation Results from Simscape Logging: Thin Floor, Maximum Step Size</a></li></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="sm_contact_ball_01.png" alt=""> <h2 id="2">Simulation Results from Simscape Logging</h2><p>This plot shows the height of the ball with time.</p><img vspace="5" hspace="5" src="sm_contact_ball_02.png" alt=""> <h2 id="4">Simulation Results from Simscape Logging: Effect of Zero Crossings</h2><p>This plot shows the height of the ball with time with zero crossings enabled and disabled.</p><img vspace="5" hspace="5" src="sm_contact_ball_03.png" alt=""> <h2 id="6">Simulation Results from Simscape Logging: Thin Floor</h2><p>This plot shows the height of the ball with time if the test is conducted with a thin floor. If the step size is too large, the ball can pass through the floor between simulation steps. Enabling zero-crossings can help but may not guarantee the event of the ball hitting the floor will always be captured.</p><img vspace="5" hspace="5" src="sm_contact_ball_04.png" alt=""> <h2 id="8">Simulation Results from Simscape Logging: Thin Floor, Maximum Step Size</h2><p>This plot shows the height of the ball with time if the test is conducted with a thin floor. If the step size is too large, the ball can pass through the floor between simulation steps. Limiting the maximum step size is a better way to ensure the event will be captured.</p><img vspace="5" hspace="5" src="sm_contact_ball_05.png" alt=""> <p class="footer">Copyright 2019-2022 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022b</a><br></p></div><!--
70+
</style></head><body><div class="content"><h1>Bouncing Ball With Zero Crossings</h1><!--introduction--><p>This example models a ball bouncing on a floor using the Spatial Contact Force block. MATLAB scripts explore the effect of enabling and disabling zero crossings and the effect of solver settings on the simulation results.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Model</a></li><li><a href="#2">Simulation Results from Simscape Logging</a></li><li><a href="#4">Simulation Results from Simscape Logging: Effect of Zero Crossings</a></li><li><a href="#6">Simulation Results from Simscape Logging: Thin Floor</a></li><li><a href="#8">Simulation Results from Simscape Logging: Thin Floor, Maximum Step Size</a></li></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="sm_contact_ball_01.png" alt=""> <h2 id="2">Simulation Results from Simscape Logging</h2><p>This plot shows the height of the ball with time.</p><img vspace="5" hspace="5" src="sm_contact_ball_02.png" alt=""> <h2 id="4">Simulation Results from Simscape Logging: Effect of Zero Crossings</h2><p>This plot shows the height of the ball with time with zero crossings enabled and disabled.</p><img vspace="5" hspace="5" src="sm_contact_ball_03.png" alt=""> <h2 id="6">Simulation Results from Simscape Logging: Thin Floor</h2><p>This plot shows the height of the ball with time if the test is conducted with a thin floor. If the step size is too large, the ball can pass through the floor between simulation steps. Enabling zero-crossings can help but may not guarantee the event of the ball hitting the floor will always be captured.</p><img vspace="5" hspace="5" src="sm_contact_ball_04.png" alt=""> <h2 id="8">Simulation Results from Simscape Logging: Thin Floor, Maximum Step Size</h2><p>This plot shows the height of the ball with time if the test is conducted with a thin floor. If the step size is too large, the ball can pass through the floor between simulation steps. Limiting the maximum step size is a better way to ensure the event will be captured.</p><img vspace="5" hspace="5" src="sm_contact_ball_05.png" alt=""> <p class="footer">Copyright 2019-2023 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2023a</a><br></p></div><!--
7171
##### SOURCE BEGIN #####
7272
%% Bouncing Ball With Zero Crossings
7373
%
@@ -76,7 +76,7 @@
7676
% zero crossings and the effect of solver settings on the simulation
7777
% results.
7878
%
79-
% Copyright 2019-2022 The MathWorks, Inc.
79+
% Copyright 2019-2023 The MathWorks, Inc.
8080
8181
8282
0 Bytes
Loading
-327 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading

Models/Bouncing_Ball/Overview/sm_contact_ball.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
% zero crossings and the effect of solver settings on the simulation
66
% results.
77
%
8-
% Copyright 2019-2022 The MathWorks, Inc.
8+
% Copyright 2019-2023 The MathWorks, Inc.
99

1010

1111

-210 Bytes
Binary file not shown.

Models/Bouncing_Ball/sm_contact_ball_plot1time.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%
44
% This script plots the height of the ball over time.
55
%
6-
% Copyright 2019-2022 The MathWorks, Inc.
6+
% Copyright 2019-2023 The MathWorks, Inc.
77

88
% Reuse figure if it exists, else create new figure
99
if ~exist('h1_sm_contact_ball', 'var') || ...

0 commit comments

Comments
 (0)