Skip to content

Commit 3752743

Browse files
committed
Initial commit R2023b
1 parent 75f4c56 commit 3752743

194 files changed

Lines changed: 1923 additions & 666 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.
Lines changed: 118 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,120 @@
1-
2-
<!DOCTYPE html
3-
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4-
<html><head>
5-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6-
<!--
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2+
<html>
3+
<head>
4+
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
5+
<!--
76
This HTML was auto-generated from MATLAB code.
87
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.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">
10-
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}
11-
12-
html { min-height:100%; margin-bottom:1px; }
13-
html body { height:100%; margin:0px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000; line-height:140%; background:#fff none; overflow-y:scroll; }
14-
html body td { vertical-align:top; text-align:left; }
15-
16-
h1 { padding:0px; margin:0px 0px 25px; font-family:Arial, Helvetica, sans-serif; font-size:1.5em; color:#d55000; line-height:100%; font-weight:normal; }
17-
h2 { padding:0px; margin:0px 0px 8px; font-family:Arial, Helvetica, sans-serif; font-size:1.2em; color:#000; font-weight:bold; line-height:140%; border-bottom:1px solid #d6d4d4; display:block; }
18-
h3 { padding:0px; margin:0px 0px 5px; font-family:Arial, Helvetica, sans-serif; font-size:1.1em; color:#000; font-weight:bold; line-height:140%; }
19-
20-
a { color:#005fce; text-decoration:none; }
21-
a:hover { color:#005fce; text-decoration:underline; }
22-
a:visited { color:#004aa0; text-decoration:none; }
23-
24-
p { padding:0px; margin:0px 0px 20px; }
25-
img { padding:0px; margin:0px 0px 20px; border:none; }
26-
p img, pre img, tt img, li img, h1 img, h2 img { margin-bottom:0px; }
27-
28-
ul { padding:0px; margin:0px 0px 20px 23px; list-style:square; }
29-
ul li { padding:0px; margin:0px 0px 7px 0px; }
30-
ul li ul { padding:5px 0px 0px; margin:0px 0px 7px 23px; }
31-
ul li ol li { list-style:decimal; }
32-
ol { padding:0px; margin:0px 0px 20px 0px; list-style:decimal; }
33-
ol li { padding:0px; margin:0px 0px 7px 23px; list-style-type:decimal; }
34-
ol li ol { padding:5px 0px 0px; margin:0px 0px 7px 0px; }
35-
ol li ol li { list-style-type:lower-alpha; }
36-
ol li ul { padding-top:7px; }
37-
ol li ul li { list-style:square; }
38-
39-
.content { font-size:1.2em; line-height:140%; padding: 20px; }
40-
41-
pre, code { font-size:12px; }
42-
tt { font-size: 1.2em; }
43-
pre { margin:0px 0px 20px; }
44-
pre.codeinput { padding:10px; border:1px solid #d3d3d3; background:#f7f7f7; }
45-
pre.codeoutput { padding:10px 11px; margin:0px 0px 20px; color:#4c4c4c; }
46-
pre.error { color:red; }
47-
48-
@media print { pre.codeinput, pre.codeoutput { word-wrap:break-word; width:100%; } }
49-
50-
span.keyword { color:#0000FF }
51-
span.comment { color:#228B22 }
52-
span.string { color:#A020F0 }
53-
span.untermstring { color:#B20000 }
54-
span.syscmd { color:#B28C00 }
55-
span.typesection { color:#A0522D }
56-
57-
.footer { width:auto; padding:10px 0px; margin:25px 0px 0px; border-top:1px dotted #878787; font-size:0.8em; line-height:140%; font-style:italic; color:#878787; text-align:left; float:none; }
58-
.footer p { margin:0px; }
59-
.footer a { color:#878787; }
60-
.footer a:hover { color:#878787; text-decoration:underline; }
61-
.footer a:visited { color:#878787; }
62-
63-
table th { padding:7px 5px; text-align:left; vertical-align:middle; border: 1px solid #d6d4d4; font-weight:bold; }
64-
table td { padding:7px 5px; text-align:left; vertical-align:top; border:1px solid #d6d4d4; }
65-
66-
67-
68-
69-
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><!--
8+
-->
9+
<title>Bouncing Ball With Zero Crossings</title>
10+
<meta name="generator" content="MATLAB 23.2">
11+
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
12+
<meta name="DC.date" content="2023-09-15">
13+
<meta name="DC.source" content="sm_contact_ball.m">
14+
<style type="text/css">
15+
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}
16+
17+
html { min-height:100%; margin-bottom:1px; }
18+
html body { height:100%; margin:0px; font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#000; line-height:140%; background:#fff none; overflow-y:scroll; }
19+
html body td { vertical-align:top; text-align:left; }
20+
21+
h1 { padding:0px; margin:0px 0px 25px; font-family:Arial, Helvetica, sans-serif; font-size:1.5em; color:#d55000; line-height:100%; font-weight:normal; }
22+
h2 { padding:0px; margin:0px 0px 8px; font-family:Arial, Helvetica, sans-serif; font-size:1.2em; color:#000; font-weight:bold; line-height:140%; border-bottom:1px solid #d6d4d4; display:block; }
23+
h3 { padding:0px; margin:0px 0px 5px; font-family:Arial, Helvetica, sans-serif; font-size:1.1em; color:#000; font-weight:bold; line-height:140%; }
24+
25+
a { color:#005fce; text-decoration:none; }
26+
a:hover { color:#005fce; text-decoration:underline; }
27+
a:visited { color:#004aa0; text-decoration:none; }
28+
29+
p { padding:0px; margin:0px 0px 20px; }
30+
img { padding:0px; margin:0px 0px 20px; border:none; }
31+
p img, pre img, tt img, li img, h1 img, h2 img { margin-bottom:0px; }
32+
33+
ul { padding:0px; margin:0px 0px 20px 23px; list-style:square; }
34+
ul li { padding:0px; margin:0px 0px 7px 0px; }
35+
ul li ul { padding:5px 0px 0px; margin:0px 0px 7px 23px; }
36+
ul li ol li { list-style:decimal; }
37+
ol { padding:0px; margin:0px 0px 20px 0px; list-style:decimal; }
38+
ol li { padding:0px; margin:0px 0px 7px 23px; list-style-type:decimal; }
39+
ol li ol { padding:5px 0px 0px; margin:0px 0px 7px 0px; }
40+
ol li ol li { list-style-type:lower-alpha; }
41+
ol li ul { padding-top:7px; }
42+
ol li ul li { list-style:square; }
43+
44+
.content { font-size:1.2em; line-height:140%; padding: 20px; }
45+
46+
pre, code { font-size:12px; }
47+
tt { font-size: 1.2em; }
48+
pre { margin:0px 0px 20px; }
49+
pre.codeinput { padding:10px; border:1px solid #d3d3d3; background:#f7f7f7; }
50+
pre.codeoutput { padding:10px 11px; margin:0px 0px 20px; color:#4c4c4c; }
51+
pre.error { color:red; }
52+
53+
@media print { pre.codeinput, pre.codeoutput { word-wrap:break-word; width:100%; } }
54+
55+
span.keyword { color:#0000FF }
56+
span.comment { color:#228B22 }
57+
span.string { color:#A020F0 }
58+
span.untermstring { color:#B20000 }
59+
span.syscmd { color:#B28C00 }
60+
span.typesection { color:#A0522D }
61+
62+
.footer { width:auto; padding:10px 0px; margin:25px 0px 0px; border-top:1px dotted #878787; font-size:0.8em; line-height:140%; font-style:italic; color:#878787; text-align:left; float:none; }
63+
.footer p { margin:0px; }
64+
.footer a { color:#878787; }
65+
.footer a:hover { color:#878787; text-decoration:underline; }
66+
.footer a:visited { color:#878787; }
67+
68+
table th { padding:7px 5px; text-align:left; vertical-align:middle; border: 1px solid #d6d4d4; font-weight:bold; }
69+
table td { padding:7px 5px; text-align:left; vertical-align:top; border:1px solid #d6d4d4; }
70+
71+
72+
73+
74+
75+
</style>
76+
</head>
77+
<body>
78+
<div class="content">
79+
<h1>Bouncing Ball With Zero Crossings</h1>
80+
<!--introduction-->
81+
<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>
82+
<!--/introduction-->
83+
<h2>Contents</h2>
84+
<div>
85+
<ul>
86+
<li>
87+
<a href="#1">Model</a>
88+
</li>
89+
<li>
90+
<a href="#2">Simulation Results from Simscape Logging</a>
91+
</li>
92+
<li>
93+
<a href="#4">Simulation Results from Simscape Logging: Effect of Zero Crossings</a>
94+
</li>
95+
<li>
96+
<a href="#6">Simulation Results from Simscape Logging: Thin Floor</a>
97+
</li>
98+
<li>
99+
<a href="#8">Simulation Results from Simscape Logging: Thin Floor, Maximum Step Size</a>
100+
</li>
101+
</ul>
102+
</div>
103+
<h2 id="1">Model</h2>
104+
<img vspace="5" hspace="5" src="sm_contact_ball_01.png" alt=""> <h2 id="2">Simulation Results from Simscape Logging</h2>
105+
<p>This plot shows the height of the ball with time.</p>
106+
<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>
107+
<p>This plot shows the height of the ball with time with zero crossings enabled and disabled.</p>
108+
<img vspace="5" hspace="5" src="sm_contact_ball_03.png" alt=""> <h2 id="6">Simulation Results from Simscape Logging: Thin Floor</h2>
109+
<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>
110+
<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>
111+
<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>
112+
<img vspace="5" hspace="5" src="sm_contact_ball_05.png" alt=""> <p class="footer">Copyright 2019-2023 The MathWorks, Inc.<br>
113+
<a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2023b</a>
114+
<br>
115+
</p>
116+
</div>
117+
<!--
71118
##### SOURCE BEGIN #####
72119
%% Bouncing Ball With Zero Crossings
73120
%
@@ -144,4 +191,6 @@
144191
bdclose all
145192
146193
##### SOURCE END #####
147-
--></body></html>
194+
-->
195+
</body>
196+
</html>
0 Bytes
Loading
-19 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
-349 Bytes
Binary file not shown.
-591 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)