Skip to content

Commit

Permalink
Initial commit R2022a
Browse files Browse the repository at this point in the history
  • Loading branch information
smiller01985 committed Apr 4, 2022
1 parent 3aa8cfe commit bb3169b
Show file tree
Hide file tree
Showing 678 changed files with 707 additions and 707 deletions.
2 changes: 1 addition & 1 deletion CAD/Import/CAT_Pump_1051_DataFile_imported.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
% You can modify numerical values, but avoid any other changes to this file.
% Do not add code to this file. Do not edit the physical units shown in comments.
%
% Copyright 2017-2021 The MathWorks, Inc.
% Copyright 2017-2022 The MathWorks, Inc.

%%%VariableName:smiData

Expand Down
Binary file modified CAD/Import/CAT_Pump_1051_imported.slx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ component PS_force_hydraulic_chamber_trans_comp
% of the output member. Output port f is the force acting on the output
% member.

% Copyright 2016-2021 The MathWorks, Inc.
% Copyright 2016-2022 The MathWorks, Inc.

nodes
A = foundation.hydraulic.hydraulic; % A:right
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ component PS_force_hydraulic_chamber_trans_incomp
% energy into mechanical energy in the form of translational motion of the
% converter output member.

% Copyright 2016-2021 The MathWorks, Inc.
% Copyright 2016-2022 The MathWorks, Inc.

nodes
A = foundation.hydraulic.hydraulic; % A:right
Expand Down
2 changes: 1 addition & 1 deletion Libraries/MML_Core/Libraries/+forcesPS/+hydraulic/lib.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function lib( libInfo )
% Customize library
% Copyright 2005-2021 The MathWorks, Inc
% Copyright 2005-2022 The MathWorks, Inc

libInfo.Name = 'Hydraulic';
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ component PS_q_axs_to_qz
% This block calculates the rotational angle about the z axis using Angle
% and Axis outputs of the Transform Sensor block

% Copyright 2016-2021 The MathWorks, Inc.
% Copyright 2016-2022 The MathWorks, Inc.

inputs
q = {0, 'rad'}; % q:left
Expand Down
2 changes: 1 addition & 1 deletion Libraries/MML_Core/Libraries/+forcesPS/+math/lib.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function lib( libInfo )
% Customize library
% Copyright 2005-2021 The MathWorks, Inc
% Copyright 2005-2022 The MathWorks, Inc

libInfo.Name = 'Math';
end
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ component PS_force_friction_rot
% sum of the Coulomb and Stribeck frictions at zero velocity is often
% referred to as the breakaway friction.

% Copyright 2016-2021 The MathWorks, Inc.
% Copyright 2016-2022 The MathWorks, Inc.

inputs
w = {0, 'rad/s'}; % w:left
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ component PS_force_friction_trans
% sum of the Coulomb and Stribeck frictions at zero velocity is often
% referred to as the breakaway friction.

% Copyright 2016-2021 The MathWorks, Inc.
% Copyright 2016-2022 The MathWorks, Inc.

inputs
v = {0, 'm/s'}; % v:left
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ component PS_force_hardstop_rot
% is implemented as a spring and damper that comes into contact with the
% slider as the gap closes.

% Copyright 2016-2021 The MathWorks, Inc.
% Copyright 2016-2022 The MathWorks, Inc.

inputs
w = {0, 'rad/s' }; % w:left
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ component PS_force_hardstop_trans
% is implemented as a spring and damper that comes into contact with the
% slider as the gap closes.

% Copyright 2016-2021 The MathWorks, Inc.
% Copyright 2016-2022 The MathWorks, Inc.

parameters
upper_bnd = {0.1 , 'm' }; % Upper bound
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
classdef hardstop_model < int32
% Enumeration class for hardstop model options.

% Copyright 2017-2021 The MathWorks, Inc.
% Copyright 2017-2022 The MathWorks, Inc.

enumeration
full_damped_rebound(0)
Expand Down
2 changes: 1 addition & 1 deletion Libraries/MML_Core/Libraries/+forcesPS/+mechanical/lib.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function lib( libInfo )
% Customize library
% Copyright 2005-2021 The MathWorks, Inc
% Copyright 2005-2022 The MathWorks, Inc

libInfo.Name = 'Mechanical';
end
2 changes: 1 addition & 1 deletion Libraries/MML_Core/Libraries/+forcesPS/lib.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function lib( libInfo )
% Customize library
% Copyright 2005-2021 The MathWorks, Inc
% Copyright 2005-2022 The MathWorks, Inc

libInfo.Name = 'Simscape Forces Library';
CurrentDate = date;
Expand Down
Binary file modified Libraries/MML_Core/Libraries/Multibody_Multiphysics_Lib.slx
Binary file not shown.
2 changes: 1 addition & 1 deletion Libraries/MML_Core/Libraries/slblocks.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
% blkStruct.Browser(2).Name = 'Simulink Extras';
%

% Copyright 1990-2021 The MathWorks, Inc.
% Copyright 1990-2022 The MathWorks, Inc.

%
% Name of the subsystem which will show up in the Simulink Blocksets
Expand Down
2 changes: 1 addition & 1 deletion Libraries/MML_Core/README_multibody_multiphysics_core.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ rules:
the position from Simscape Multibody to the Simscape network. The examples in this submission
show how to do that.

Copyright 2013-2021 The MathWorks, Inc.
Copyright 2013-2022 The MathWorks, Inc.

######### Release History #########
v 4.1 (R2021a) May 2021 Removed hardstops from single acting pump examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>Simscape Multibody Multiphysics Library - Core</title><meta name="generator" content="MATLAB 9.11"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2021-09-11"><meta name="DC.source" content="Multibody_Multiphysics_Core_Demo_Script.m"><style type="text/css">
--><title>Simscape Multibody Multiphysics Library - Core</title><meta name="generator" content="MATLAB 9.12"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-03-10"><meta name="DC.source" content="Multibody_Multiphysics_Core_Demo_Script.m"><style type="text/css">
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}

html { min-height:100%; margin-bottom:1px; }
Expand Down Expand Up @@ -77,7 +77,7 @@
<tr>2. Slider Crank Mechanism with Friction: <a href="matlab:open_system('sm_ssci_01_slider_crank.slx');">Model</a>, <a href="matlab:web('sm_ssci_01_slider_crank.html');">Documentation</a><br>
<tr>3. Single Piston Pump: <a href="matlab:open_system('sm_ssci_03_cylinder_sa_pump_flib.slx');">Model</a>, <a href="matlab:web('sm_ssci_03_cylinder_sa_pump_flib.html');">Documentation</a><br>
<tr>4. Single Piston Pump, Custom: <a href="matlab:open_system('sm_ssci_02_cylinder_sa_pump.slx');">Model</a>, <a href="matlab:web('sm_ssci_02_cylinder_sa_pump.html');">Documentation</a><br>
</p><p>Copyright 2016-2021 The MathWorks&#8482;, Inc.</p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2021b</a><br></p></div><!--
</p><p>Copyright 2016-2022 The MathWorks&#8482;, Inc.</p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022a</a><br></p></div><!--
##### SOURCE BEGIN #####
%% Simscape Multibody Multiphysics Library - Core
%
Expand All @@ -97,7 +97,7 @@
% <tr>4. Single Piston Pump, Custom: <a href="matlab:open_system('sm_ssci_02_cylinder_sa_pump.slx');">Model</a>, <a href="matlab:web('sm_ssci_02_cylinder_sa_pump.html');">Documentation</a><br>
% </html>
%
% Copyright 2016-2021 The MathWorks(TM), Inc.
% Copyright 2016-2022 The MathWorks(TM), Inc.
##### SOURCE END #####
--></body></html>
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
% <tr>4. Single Piston Pump, Custom: <a href="matlab:open_system('sm_ssci_02_cylinder_sa_pump.slx');">Model</a>, <a href="matlab:web('sm_ssci_02_cylinder_sa_pump.html');">Documentation</a><br>
% </html>
%
% Copyright 2016-2021 The MathWorks(TM), Inc.
% Copyright 2016-2022 The MathWorks(TM), Inc.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function shutdown_Multibody_Multiphysics_Core
% Copyright 2016-2021 The MathWorks, Inc.
% Copyright 2016-2022 The MathWorks, Inc.

curr_proj = simulinkproject;
cd(curr_proj.RootFolder);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function startup_Multibody_Multiphysics_Core
% Copyright 2016-2021 The MathWorks, Inc.
% Copyright 2016-2022 The MathWorks, Inc.

curr_proj = simulinkproject;
cd(curr_proj.RootFolder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>Slider-Crank Mechanism with Friction</title><meta name="generator" content="MATLAB 9.11"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2021-09-11"><meta name="DC.source" content="sm_ssci_01_slider_crank.m"><style type="text/css">
--><title>Slider-Crank Mechanism with Friction</title><meta name="generator" content="MATLAB 9.12"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-03-10"><meta name="DC.source" content="sm_ssci_01_slider_crank.m"><style type="text/css">
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}

html { min-height:100%; margin-bottom:1px; }
Expand Down Expand Up @@ -67,7 +67,7 @@



</style></head><body><div class="content"><h1>Slider-Crank Mechanism with Friction</h1><!--introduction--><p>This example shows a torque-driven slider-crank mechanism driven with friction applied at the slider. The rotational and translational Simscape Multibody interface elements provide the connection between the 3D mechanical model in Simscape Multibody and the 1D mechanical elements in Simscape</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></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="sm_ssci_01_slider_crank_01.png" alt=""> <h2 id="2">Simulation Results from Simscape Logging</h2><p>The plot below shows the speed of the crank and slider as the crank is driven with a constant torque.</p><img vspace="5" hspace="5" src="sm_ssci_01_slider_crank_02.png" alt=""> <p class="footer">Copyright 2017-2021 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2021b</a><br></p></div><!--
</style></head><body><div class="content"><h1>Slider-Crank Mechanism with Friction</h1><!--introduction--><p>This example shows a torque-driven slider-crank mechanism driven with friction applied at the slider. The rotational and translational Simscape Multibody interface elements provide the connection between the 3D mechanical model in Simscape Multibody and the 1D mechanical elements in Simscape</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></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="sm_ssci_01_slider_crank_01.png" alt=""> <h2 id="2">Simulation Results from Simscape Logging</h2><p>The plot below shows the speed of the crank and slider as the crank is driven with a constant torque.</p><img vspace="5" hspace="5" src="sm_ssci_01_slider_crank_02.png" alt=""> <p class="footer">Copyright 2017-2022 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022a</a><br></p></div><!--
##### SOURCE BEGIN #####
%% Slider-Crank Mechanism with Friction
%
Expand All @@ -77,7 +77,7 @@
% 3D mechanical model in Simscape Multibody and the 1D mechanical elements
% in Simscape
%
% Copyright 2017-2021 The MathWorks, Inc.
% Copyright 2017-2022 The MathWorks, Inc.
%% Model
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--
This HTML was auto-generated from MATLAB code.
To make changes, update the MATLAB code and republish this document.
--><title>Single Piston Pump, Custom Piston</title><meta name="generator" content="MATLAB 9.11"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2021-09-11"><meta name="DC.source" content="sm_ssci_02_cylinder_sa_pump.m"><style type="text/css">
--><title>Single Piston Pump, Custom Piston</title><meta name="generator" content="MATLAB 9.12"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-03-10"><meta name="DC.source" content="sm_ssci_02_cylinder_sa_pump.m"><style type="text/css">
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}

html { min-height:100%; margin-bottom:1px; }
Expand Down Expand Up @@ -67,7 +67,7 @@



</style></head><body><div class="content"><h1>Single Piston Pump, Custom Piston</h1><!--introduction--><p>This example models a single piston pump. The rotation of the pump crankshaft slides the piston back and forth. During half of the rotation, fluid is drawn through the inlet check valve and out of the tank. During the other half of the rotation, fluid is pushed through the outlet check valve and exits the pump.</p><p>The piston chamber is modeled with a single-acting hydraulic cylinder. The force, position, and velocity are held consistent between the hydraulic and mechanical models using physical signal connections. This version uses a custom Simscape language implementation.</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></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="sm_ssci_02_cylinder_sa_pump_01.png" alt=""> <h2 id="2">Simulation Results from Simscape Logging</h2><p>The plot below shows the flow rate into and out of the pump.</p><img vspace="5" hspace="5" src="sm_ssci_02_cylinder_sa_pump_02.png" alt=""> <p>The plot below shows the volume of the tank. It decreases with each revolution of the pump shaft as fluid is drawn through the inlet check valve.</p><img vspace="5" hspace="5" src="sm_ssci_02_cylinder_sa_pump_03.png" alt=""> <p>The plot below shows the speed of the piston and the torque applied at the crank. The required torque varies primarily with the speed of the piston due to friction and force required to move the fluid into and out of the piston chamber.</p><img vspace="5" hspace="5" src="sm_ssci_02_cylinder_sa_pump_04.png" alt=""> <p class="footer">Copyright 2017-2021 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2021b</a><br></p></div><!--
</style></head><body><div class="content"><h1>Single Piston Pump, Custom Piston</h1><!--introduction--><p>This example models a single piston pump. The rotation of the pump crankshaft slides the piston back and forth. During half of the rotation, fluid is drawn through the inlet check valve and out of the tank. During the other half of the rotation, fluid is pushed through the outlet check valve and exits the pump.</p><p>The piston chamber is modeled with a single-acting hydraulic cylinder. The force, position, and velocity are held consistent between the hydraulic and mechanical models using physical signal connections. This version uses a custom Simscape language implementation.</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></ul></div><h2 id="1">Model</h2><img vspace="5" hspace="5" src="sm_ssci_02_cylinder_sa_pump_01.png" alt=""> <h2 id="2">Simulation Results from Simscape Logging</h2><p>The plot below shows the flow rate into and out of the pump.</p><img vspace="5" hspace="5" src="sm_ssci_02_cylinder_sa_pump_02.png" alt=""> <p>The plot below shows the volume of the tank. It decreases with each revolution of the pump shaft as fluid is drawn through the inlet check valve.</p><img vspace="5" hspace="5" src="sm_ssci_02_cylinder_sa_pump_03.png" alt=""> <p>The plot below shows the speed of the piston and the torque applied at the crank. The required torque varies primarily with the speed of the piston due to friction and force required to move the fluid into and out of the piston chamber.</p><img vspace="5" hspace="5" src="sm_ssci_02_cylinder_sa_pump_04.png" alt=""> <p class="footer">Copyright 2017-2022 The MathWorks, Inc.<br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2022a</a><br></p></div><!--
##### SOURCE BEGIN #####
%% Single Piston Pump, Custom Piston
%
Expand All @@ -83,7 +83,7 @@
% version uses a custom Simscape language implementation.
%
%
% Copyright 2017-2021 The MathWorks, Inc.
% Copyright 2017-2022 The MathWorks, Inc.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bb3169b

Please sign in to comment.