Download data/Models/Vehicle/Overview/html/sm_wheel_loader_linkage.html from introvoyz041/Wheel-Loader-Simscape: direct link, hf CLI and curl.
- Browser
- Download file 27.1 kB
-
https://huggingface.co/datasets/introvoyz041/Wheel-Loader-Simscape/resolve/main/data/Models/Vehicle/Overview/html/sm_wheel_loader_linkage.html
- Command line
-
hf download hf://datasets/introvoyz041/Wheel-Loader-Simscape/data/Models/Vehicle/Overview/html/sm_wheel_loader_linkage.html
-
curl -L -o sm_wheel_loader_linkage.html https://huggingface.co/datasets/introvoyz041/Wheel-Loader-Simscape/resolve/main/data/Models/Vehicle/Overview/html/sm_wheel_loader_linkage.html
27.1 kB
| <html> | |
| <head> | |
| <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <!-- | |
| This HTML was auto-generated from MATLAB code. | |
| To make changes, update the MATLAB code and republish this document. | |
| --> | |
| <title>Wheel Loader Linkage</title> | |
| <meta name="generator" content="MATLAB 26.1"> | |
| <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"> | |
| <meta name="DC.date" content="2026-04-21"> | |
| <meta name="DC.source" content="sm_wheel_loader_linkage.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; } | |
| 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; } | |
| html body td { vertical-align:top; text-align:left; } | |
| 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; } | |
| 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; } | |
| 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%; } | |
| a { color:#005fce; text-decoration:none; } | |
| a:hover { color:#005fce; text-decoration:underline; } | |
| a:visited { color:#004aa0; text-decoration:none; } | |
| p { padding:0px; margin:0px 0px 20px; } | |
| img { padding:0px; margin:0px 0px 20px; border:none; } | |
| p img, pre img, tt img, li img, h1 img, h2 img { margin-bottom:0px; } | |
| ul { padding:0px; margin:0px 0px 20px 23px; list-style:square; } | |
| ul li { padding:0px; margin:0px 0px 7px 0px; } | |
| ul li ul { padding:5px 0px 0px; margin:0px 0px 7px 23px; } | |
| ul li ol li { list-style:decimal; } | |
| ol { padding:0px; margin:0px 0px 20px 0px; list-style:decimal; } | |
| ol li { padding:0px; margin:0px 0px 7px 23px; list-style-type:decimal; } | |
| ol li ol { padding:5px 0px 0px; margin:0px 0px 7px 0px; } | |
| ol li ol li { list-style-type:lower-alpha; } | |
| ol li ul { padding-top:7px; } | |
| ol li ul li { list-style:square; } | |
| .content { font-size:1.2em; line-height:140%; padding: 20px; } | |
| pre, code { font-size:12px; } | |
| tt { font-size: 1.2em; } | |
| pre { margin:0px 0px 20px; } | |
| pre.codeinput { padding:10px; border:1px solid #d3d3d3; background:#f7f7f7; } | |
| pre.codeoutput { padding:10px 11px; margin:0px 0px 20px; color:#4c4c4c; } | |
| pre.error { color:red; } | |
| @media print { pre.codeinput, pre.codeoutput { word-wrap:break-word; width:100%; } } | |
| span.keyword { color:#0000FF } | |
| span.comment { color:#228B22 } | |
| span.string { color:#A020F0 } | |
| span.untermstring { color:#B20000 } | |
| span.syscmd { color:#B28C00 } | |
| span.typesection { color:#A0522D } | |
| .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; } | |
| .footer p { margin:0px; } | |
| .footer a { color:#878787; } | |
| .footer a:hover { color:#878787; text-decoration:underline; } | |
| .footer a:visited { color:#878787; } | |
| table th { padding:7px 5px; text-align:left; vertical-align:middle; border: 1px solid #d6d4d4; font-weight:bold; } | |
| table td { padding:7px 5px; text-align:left; vertical-align:top; border:1px solid #d6d4d4; } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="content"> | |
| <h1>Wheel Loader Linkage</h1> | |
| <!--introduction--> | |
| <p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_Overview.png" alt=""> </p> | |
| <p>(<a href="matlab:web('Wheel_Loader_Design_Overview.html')">return to Wheel Loader Design with Simscape Overview</a>)</p> | |
| <p>This example models a wheel loader linkage with two interchangeable implements (bucket, grapple). The actuation system can be modeled with an ideal actuator or a hydraulic network.</p> | |
| <!--/introduction--> | |
| <h2>Contents</h2> | |
| <div> | |
| <ul> | |
| <li> | |
| <a href="#1">Model</a> | |
| </li> | |
| <li> | |
| <a href="#2">Linkage Subsystem</a> | |
| </li> | |
| <li> | |
| <a href="#3">Bucket Subsystem</a> | |
| </li> | |
| <li> | |
| <a href="#4">Grapple Subsystem</a> | |
| </li> | |
| <li> | |
| <a href="#5">Actuator Subsystem: Hydraulic</a> | |
| </li> | |
| <li> | |
| <a href="#6">Valves Linkage Subsystem</a> | |
| </li> | |
| <li> | |
| <a href="#7">Actuator Linkage Subsystem</a> | |
| </li> | |
| <li> | |
| <a href="#8">Lift Actuator: Shaft</a> | |
| </li> | |
| <li> | |
| <a href="#9">Actuator Subsystem: Ideal</a> | |
| </li> | |
| <li> | |
| <a href="#10">Lift Actuator: Ideal</a> | |
| </li> | |
| <li> | |
| <a href="#11">Simulation Results: Bucket, Ideal</a> | |
| </li> | |
| <li> | |
| <a href="#12">Simulation Results: Grapple, Ideal</a> | |
| </li> | |
| <li> | |
| <a href="#13">Simulation Results: Bucket, Hydraulic</a> | |
| </li> | |
| <li> | |
| <a href="#14">Simulation Results: Grapple, Hydraulic</a> | |
| </li> | |
| </ul> | |
| </div> | |
| <h2 id="1">Model</h2> | |
| <p>This example models a wheel loader linkage.</p> | |
| <p>The actuation model for the linkage and implements can be configured to use the following options</p> | |
| <div> | |
| <ul> | |
| <li> | |
| <b>Ideal</b>: Cylinder positions are set using prescribed motion. Simulation runs very quickly. Used to determine actuator requirements.</li> | |
| <li> | |
| <b>Hydraulic</b>: Hydraulic pumps, valves, and cylinders are used to model the actuation system. Used to select hydraulic components and set pressure levels.</li> | |
| </ul> | |
| </div> | |
| <p> | |
| <a href="matlab:open_system('sm_wheel_loader_linkage');">Open Model</a> | |
| </p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_01.png" alt=""> <h2 id="2">Linkage Subsystem</h2> | |
| <p>The wheel loader linkage has a lift and tilt actuator. The implement can be configured to be a bucket or a grapple.</p> | |
| <p> | |
| <a href="matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Linkage','force');">Open Subsystem</a> | |
| </p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_02.png" alt=""> <h2 id="3">Bucket Subsystem</h2> | |
| <p>The bucket subsystem contains only a model of the bucket. The interface to this mechanical model is composed of three frames. Two are connection points to the linkage and one is the location where the inertial load is added to represent the load it digs up and dumps out. The frame that interfaces to the load is placed in a Simscape bus. This is because the subsystem interface for all implements must be the same, and other implements need more connections than the bucket does.</p> | |
| <p> | |
| <a href="matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Linkage/Implement/Bucket','force');">Open Subsystem</a> | |
| </p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_03.png" alt=""> <h2 id="4">Grapple Subsystem</h2> | |
| <p>The grapple subsystem contains the rake and two toothbars. Each toothbar can be raised or lowered by an actuator. The interface to this mechanical model is composed of two frames and a bus with connections to contact geometry. The frames are connection points to the linkage. The three point clouds are assembled in to a Simscape bus. The point clouds are used to detect contact with objects, such as a log, so that the grapple can pick them up and move them.</p> | |
| <p> | |
| <a href="matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Linkage/Implement/Grapple','force');">Open Subsystem</a> | |
| </p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_04.png" alt=""> <h2 id="5">Actuator Subsystem: Hydraulic</h2> | |
| <p>In this configuration the cylinders are actuated by a hydraulic system. Pumps are driven by the PTO shaft, one for the linkage and implements and another for the steering system. Valves control the flow of hydraulic fluid to the actuators which extend and contract to the desired position.</p> | |
| <p>The steering hydraulic system is included but in this model it is not connected to the chassis.</p> | |
| <p>The interface from this 1D model of the hydromechanical system and the 3D multibody of the linkage is a 1D mechanical connection for the rod of each cylinder.</p> | |
| <p> | |
| <a href="matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Actuators/Hydraulic','force');">Open Subsystem</a> | |
| </p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_05.png" alt=""> <h2 id="6">Valves Linkage Subsystem</h2> | |
| <p>Directional valves control the flow of fluid to the hydraulic cylinders. Flow from the pump can be directed to the head or rod side of the cylinder. A pressure relief valve protects the system from providing too much pressure to the cylinders.</p> | |
| <p>A flow divider splits the pump flow between the tilt and flow valves. It measures the pressure differential between the two functions and controls the flow accordingly. This is used to maintain consistent actuator velocity whether one or both functions are active.</p> | |
| <p> | |
| <a href="matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Actuators/Hydraulic/Valves%20Linkage','force');">Open Subsystem</a> | |
| </p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_06.png" alt=""> <h2 id="7">Actuator Linkage Subsystem</h2> | |
| <p>Two hydraulic cylinders lift the wheel loader linkage and a third cylinder is used to tilt the implement. The A and B ports are connected to the hydraulic network. The R port represents a 1D mechanical connection. This shaft connections are the interface to the 3D multibody model of the wheel loader linkage.</p> | |
| <p> | |
| <a href="matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Actuators/Hydraulic/Actuator%20Linkage','force');">Open Subsystem</a> | |
| </p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_07.png" alt=""> <h2 id="8">Lift Actuator: Shaft</h2> | |
| <p>The lift actuator can be modeled as an hydraulic actuator. In this configuration, the interface between the actuator model and the multibody joint between the cylinder and the rod is a 1D mechanical connection representing a shaft. Force and velocity information is exchanged between the 1D and 3D models to ensure consistent kinematic and dynamic behavior. This interface is suitable for any actuator model with a mechanical connection, including a lead screw or other electrical actuator.</p> | |
| <p> | |
| <a href="matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Linkage/Lift%20Actuator%20L/Actuator/Hydraulic','force');">Open Subsystem</a> | |
| </p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_08.png" alt=""> <h2 id="9">Actuator Subsystem: Ideal</h2> | |
| <p>In this configuration the cylinders are motion actuated. The extension of the cylinder is prescribed by a time-based profile. The force required to actuate the cylinder is calculated by the simulation.</p> | |
| <p>The actuator subsystem has no actuation models in it. It only contains a model to apply a countertorque to the power take-off (PTO) shaft that is commensurate with the amount of power it takes for the actuators to follow the prescribed motion.</p> | |
| <p> | |
| <a href="matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Actuators/Ideal','force');">Open Subsystem</a> | |
| </p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_09.png" alt=""> <h2 id="10">Lift Actuator: Ideal</h2> | |
| <p>The lift actuator can be modeled as an ideal actuator. In this configuration, the translational motion of the joint between the cylinder and the rod accepts position as an input signal. The force required to follow this trajectory is calculated by the Simscape model.</p> | |
| <p> | |
| <a href="matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Linkage/Lift%20Actuator%20L/Actuator/Position','force');">Open Subsystem</a> | |
| </p> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_10.png" alt=""> <h2 id="11">Simulation Results: Bucket, Ideal</h2> | |
| <p>Run test with bucket. The load added to the bucket is a variable mass whose mass and size changes based on an input signal. Cylinder extension is specified as a time-based input and the force required to achieve the motion is calculated.</p> | |
| <pre class="codeoutput">Elapsed Sim Time = 2.1079 | |
| </pre> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_11.png" alt=""> <h2 id="12">Simulation Results: Grapple, Ideal</h2> | |
| <p>Run test with grapple. The load is a log that is resting on a base. Contact forces are modeled between the log and the base, grapple, and bin. Cylinder extension is specified as a time-based input and the force required to achieve the motion is calculated.</p> | |
| <pre class="codeoutput">Elapsed Sim Time = 5.6965 | |
| </pre> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_12.png" alt=""> <h2 id="13">Simulation Results: Bucket, Hydraulic</h2> | |
| <p>Run test with bucket. The load added to the bucket is a variable mass whose mass and size changes based on an input signal. The hydraulic system is modeled with pumps, valves, and cylinders and the valves are controlled by operator inputs specified in time.</p> | |
| <pre class="codeoutput">Elapsed Sim Time = 62.1221 | |
| </pre> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_13.png" alt=""> <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_14.png" alt=""> <h2 id="14">Simulation Results: Grapple, Hydraulic</h2> | |
| <p>Run test with grapple. The load is a log that is resting on a base. Contact forces are modeled between the log and the base, grapple, and bin. The hydraulic system is modeled with pumps, valves, and cylinders and the valves are controlled by operator inputs specified in time.</p> | |
| <pre class="codeoutput">Elapsed Sim Time = 133.3141 | |
| </pre> | |
| <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_15.png" alt=""> <img vspace="5" hspace="5" src="sm_wheel_loader_linkage_16.png" alt=""> <p class="footer">Copyright 2023-2026 The MathWorks, Inc.<br> | |
| <a href="https://www.mathworks.com/products/matlab/">Published with MATLAB® R2026a</a> | |
| <br> | |
| </p> | |
| </div> | |
| <!-- | |
| ##### SOURCE BEGIN ##### | |
| %% Wheel Loader Linkage | |
| % | |
| % <<sm_wheel_loader_linkage_Overview.png>> | |
| % | |
| % (<matlab:web('Wheel_Loader_Design_Overview.html') return to Wheel Loader Design with Simscape Overview>) | |
| % | |
| % This example models a wheel loader linkage with two interchangeable | |
| % implements (bucket, grapple). The actuation system can be modeled | |
| % with an ideal actuator or a hydraulic network. | |
| % | |
| % | |
| % Copyright 2023-2026 The MathWorks, Inc. | |
| %% Model | |
| % | |
| % This example models a wheel loader linkage. | |
| % | |
| % The actuation model for the linkage and implements can be | |
| % configured to use the following options | |
| % | |
| % * *Ideal*: Cylinder positions are set using prescribed motion. | |
| % Simulation runs very quickly. Used to determine actuator requirements. | |
| % * *Hydraulic*: Hydraulic pumps, valves, and cylinders are used to | |
| % model the actuation system. Used to select hydraulic components and set | |
| % pressure levels. | |
| % | |
| % <matlab:open_system('sm_wheel_loader_linkage'); Open Model> | |
| open_system('sm_wheel_loader_linkage') | |
| set_param([bdroot '/Actuators'],'LabelModeActiveChoice','Hydraulic'); | |
| set_param([bdroot '/Linkage'],'popup_actuator_model','Shaft'); | |
| set_param([bdroot '/Linkage'],'popup_impl','Bucket') | |
| set_param([bdroot '/Actuator Inputs'],'popup_impl','Bucket') | |
| set_param([bdroot '/Load'],'LabelModeActiveChoice','Inertia') | |
| set_param(find_system('sm_wheel_loader_linkage','MatchFilter',@Simulink.match.allVariants,'FindAll', 'on','type','annotation','Tag','ModelFeatures'),'Interpreter','off') | |
| %% Linkage Subsystem | |
| % | |
| % The wheel loader linkage has a lift and tilt actuator. The implement can | |
| % be configured to be a bucket or a grapple. | |
| % | |
| % <matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Linkage','force'); Open Subsystem> | |
| set_param('sm_wheel_loader_linkage/Linkage','LinkStatus','none') | |
| open_system('sm_wheel_loader_linkage/Linkage','force') | |
| %% Bucket Subsystem | |
| % | |
| % The bucket subsystem contains only a model of the bucket. The interface | |
| % to this mechanical model is composed of three frames. Two are connection | |
| % points to the linkage and one is the location where the inertial load is | |
| % added to represent the load it digs up and dumps out. The frame that | |
| % interfaces to the load is placed in a Simscape bus. This is because the | |
| % subsystem interface for all implements must be the same, and other | |
| % implements need more connections than the bucket does. | |
| % | |
| % <matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Linkage/Implement/Bucket','force'); Open Subsystem> | |
| set_param('sm_wheel_loader_linkage/Linkage/Implement/Bucket','LinkStatus','none') | |
| open_system('sm_wheel_loader_linkage/Linkage/Implement/Bucket','force') | |
| %% Grapple Subsystem | |
| % | |
| % The grapple subsystem contains the rake and two toothbars. Each toothbar | |
| % can be raised or lowered by an actuator. The interface to this | |
| % mechanical model is composed of two frames and a bus with connections to | |
| % contact geometry. The frames are connection points to the linkage. The | |
| % three point clouds are assembled in to a Simscape bus. The point clouds | |
| % are used to detect contact with objects, such as a log, so that the | |
| % grapple can pick them up and move them. | |
| % | |
| % <matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Linkage/Implement/Grapple','force'); Open Subsystem> | |
| set_param([bdroot '/Linkage'],'popup_impl','Grapple') | |
| set_param([bdroot '/Actuator Inputs'],'popup_impl','Grapple') | |
| set_param([bdroot '/Load'],'LabelModeActiveChoice','Log') | |
| set_param(bdroot,'SimulationCommand','update') | |
| set_param('sm_wheel_loader_linkage/Linkage/Implement/Grapple','LinkStatus','none') | |
| open_system('sm_wheel_loader_linkage/Linkage/Implement/Grapple','force') | |
| %% Actuator Subsystem: Hydraulic | |
| % | |
| % In this configuration the cylinders are actuated by a hydraulic system. | |
| % Pumps are driven by the PTO shaft, one for the linkage and implements and | |
| % another for the steering system. Valves control the flow of hydraulic | |
| % fluid to the actuators which extend and contract to the desired position. | |
| % | |
| % The steering hydraulic system is included but in this model it is not | |
| % connected to the chassis. | |
| % | |
| % The interface from this 1D model of the hydromechanical system and the 3D | |
| % multibody of the linkage is a 1D mechanical connection for the rod of | |
| % each cylinder. | |
| % | |
| % <matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Actuators/Hydraulic','force'); Open Subsystem> | |
| set_param('sm_wheel_loader_linkage/Actuators/Hydraulic','LinkStatus','none') | |
| open_system('sm_wheel_loader_linkage/Actuators/Hydraulic','force') | |
| %% Valves Linkage Subsystem | |
| % | |
| % Directional valves control the flow of fluid to the hydraulic cylinders. | |
| % Flow from the pump can be directed to the head or rod side of the | |
| % cylinder. A pressure relief valve protects the system from providing too | |
| % much pressure to the cylinders. | |
| % | |
| % A flow divider splits the pump flow between the tilt and flow valves. It | |
| % measures the pressure differential between the two functions and controls | |
| % the flow accordingly. This is used to maintain consistent actuator | |
| % velocity whether one or both functions are active. | |
| % | |
| % <matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Actuators/Hydraulic/Valves%20Linkage','force'); Open Subsystem> | |
| set_param('sm_wheel_loader_linkage/Actuators/Hydraulic/Valves Linkage','LinkStatus','none') | |
| open_system('sm_wheel_loader_linkage/Actuators/Hydraulic/Valves Linkage','force') | |
| %% Actuator Linkage Subsystem | |
| % | |
| % Two hydraulic cylinders lift the wheel loader linkage and a third | |
| % cylinder is used to tilt the implement. The A and B ports are connected | |
| % to the hydraulic network. The R port represents a 1D mechanical | |
| % connection. This shaft connections are the interface to the 3D multibody model of the | |
| % wheel loader linkage. | |
| % | |
| % <matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Actuators/Hydraulic/Actuator%20Linkage','force'); Open Subsystem> | |
| set_param('sm_wheel_loader_linkage/Actuators/Hydraulic/Actuator Linkage','LinkStatus','none') | |
| open_system('sm_wheel_loader_linkage/Actuators/Hydraulic/Actuator Linkage','force') | |
| %% Lift Actuator: Shaft | |
| % | |
| % The lift actuator can be modeled as an hydraulic actuator. In this | |
| % configuration, the interface between the actuator model and the multibody | |
| % joint between the cylinder and the rod is a 1D mechanical connection | |
| % representing a shaft. Force and velocity information is exchanged between | |
| % the 1D and 3D models to ensure consistent kinematic and dynamic behavior. | |
| % This interface is suitable for any actuator model with a mechanical | |
| % connection, including a lead screw or other electrical actuator. | |
| % | |
| % <matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Linkage/Lift%20Actuator%20L/Actuator/Hydraulic','force'); Open Subsystem> | |
| set_param('sm_wheel_loader_linkage/Linkage/Lift Actuator L/Actuator/Shaft','LinkStatus','none') | |
| open_system('sm_wheel_loader_linkage/Linkage/Lift Actuator L/Actuator/Shaft','force') | |
| %% Actuator Subsystem: Ideal | |
| % | |
| % In this configuration the cylinders are motion actuated. The extension | |
| % of the cylinder is prescribed by a time-based profile. The force | |
| % required to actuate the cylinder is calculated by the simulation. | |
| % | |
| % The actuator subsystem has no actuation models in it. It only contains a | |
| % model to apply a countertorque to the power take-off (PTO) shaft that is | |
| % commensurate with the amount of power it takes for the actuators to | |
| % follow the prescribed motion. | |
| % | |
| % <matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Actuators/Ideal','force'); Open Subsystem> | |
| set_param([bdroot '/Actuators'],'LabelModeActiveChoice','Ideal') | |
| set_param([bdroot '/Linkage'],'popup_actuator_model','Position') | |
| set_param(bdroot,'SimulationCommand','update') | |
| set_param('sm_wheel_loader_linkage/Actuators/Ideal','LinkStatus','none') | |
| open_system('sm_wheel_loader_linkage/Actuators/Ideal','force') | |
| %% Lift Actuator: Ideal | |
| % | |
| % The lift actuator can be modeled as an ideal actuator. In this | |
| % configuration, the translational motion of the joint between the cylinder | |
| % and the rod accepts position as an input signal. The force required to | |
| % follow this trajectory is calculated by the Simscape model. | |
| % | |
| % <matlab:open_system('sm_wheel_loader_linkage');open_system('sm_wheel_loader_linkage/Linkage/Lift%20Actuator%20L/Actuator/Position','force'); Open Subsystem> | |
| set_param([bdroot '/Actuators'],'LabelModeActiveChoice','Ideal') | |
| set_param([bdroot '/Linkage'],'popup_actuator_model','Position') | |
| set_param('sm_wheel_loader_linkage/Linkage/Lift Actuator L/Actuator/Position','LinkStatus','none') | |
| open_system('sm_wheel_loader_linkage/Linkage/Lift Actuator L/Actuator/Position','force') | |
| %% Simulation Results: Bucket, Ideal | |
| % | |
| % Run test with bucket. The load added to the bucket is a variable mass | |
| % whose mass and size changes based on an input signal. Cylinder extension | |
| % is specified as a time-based input and the force required to achieve the | |
| % motion is calculated. | |
| % | |
| set_param([bdroot '/Actuators'],'LabelModeActiveChoice','Ideal') | |
| set_param([bdroot '/Linkage'],'popup_actuator_model','Position') | |
| set_param([bdroot '/Actuators'],'popup_impl','Bucket') | |
| set_param([bdroot '/Linkage'],'popup_impl','Bucket') | |
| set_param([bdroot '/Actuator Inputs'],'popup_impl','Bucket') | |
| set_param([bdroot '/Load'],'LabelModeActiveChoice','Inertia') | |
| testInput.Active = testInput.BucketYCycle; | |
| sim('sm_wheel_loader_linkage'); | |
| sm_wheel_loader_plot4linkage(logsout_sm_wheel_loader_linkage.get('mVehicle').Values) | |
| %% Simulation Results: Grapple, Ideal | |
| % | |
| % Run test with grapple. The load is a log that is resting on a base. | |
| % Contact forces are modeled between the log and the base, grapple, and | |
| % bin. Cylinder extension is specified as a time-based input and the force | |
| % required to achieve the motion is calculated. | |
| % | |
| set_param([bdroot '/Actuators'],'LabelModeActiveChoice','Ideal') | |
| set_param([bdroot '/Linkage'],'popup_actuator_model','Position') | |
| set_param([bdroot '/Actuators'],'popup_impl','Grapple') | |
| set_param([bdroot '/Linkage'],'popup_impl','Grapple') | |
| set_param([bdroot '/Actuator Inputs'],'popup_impl','Grapple') | |
| set_param([bdroot '/Load'],'LabelModeActiveChoice','Log') | |
| testInput.Active = testInput.GrappleLogCycle; | |
| sim('sm_wheel_loader_linkage'); | |
| sm_wheel_loader_plot4linkage(logsout_sm_wheel_loader_linkage.get('mVehicle').Values) | |
| %% Simulation Results: Bucket, Hydraulic | |
| % | |
| % Run test with bucket. The load added to the bucket is a variable mass | |
| % whose mass and size changes based on an input signal. The hydraulic | |
| % system is modeled with pumps, valves, and cylinders and the valves are | |
| % controlled by operator inputs specified in time. | |
| % | |
| set_param([bdroot '/Actuators'],'LabelModeActiveChoice','Hydraulic') | |
| set_param([bdroot '/Linkage'],'popup_actuator_model','Shaft') | |
| set_param([bdroot '/Actuators'],'popup_impl','Bucket') | |
| set_param([bdroot '/Actuator Inputs'],'popup_impl','Bucket') | |
| set_param([bdroot '/Linkage'],'popup_impl','Bucket') | |
| set_param([bdroot '/Load'],'LabelModeActiveChoice','Inertia') | |
| testInput.Active = testInput.BucketYCycle; | |
| sim('sm_wheel_loader_linkage'); | |
| sm_wheel_loader_plot4linkage(logsout_sm_wheel_loader_linkage.get('mVehicle').Values) | |
| sm_wheel_loader_plot6linkagehydr(simlog_sm_wheel_loader_linkage.Actuators.Hydraulic) | |
| %% Simulation Results: Grapple, Hydraulic | |
| % | |
| % Run test with grapple. The load is a log that is resting on a base. | |
| % Contact forces are modeled between the log and the base, grapple, and | |
| % bin. The hydraulic system is modeled with pumps, valves, and cylinders | |
| % and the valves are controlled by operator inputs specified in time. | |
| % | |
| set_param([bdroot '/Actuators'],'LabelModeActiveChoice','Hydraulic') | |
| set_param([bdroot '/Linkage'],'popup_actuator_model','Shaft') | |
| set_param([bdroot '/Actuators'],'popup_impl','Grapple') | |
| set_param([bdroot '/Actuator Inputs'],'popup_impl','Grapple') | |
| set_param([bdroot '/Linkage'],'popup_impl','Grapple') | |
| set_param([bdroot '/Load'],'LabelModeActiveChoice','Log') | |
| testInput.Active = testInput.GrappleLogCycle; | |
| sim('sm_wheel_loader_linkage'); | |
| sm_wheel_loader_plot4linkage(logsout_sm_wheel_loader_linkage.get('mVehicle').Values) | |
| sm_wheel_loader_plot6linkagehydr(simlog_sm_wheel_loader_linkage.Actuators.Hydraulic) | |
| %% | |
| close all | |
| bdclose('sm_wheel_loader_linkage'); | |
| ##### SOURCE END ##### | |
| --> | |
| </body> | |
| </html> | |