Skip to content

Commit 864271e

Browse files
Initial commit for R2024b
1 parent dbee2b5 commit 864271e

24 files changed

+170
-24
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# For details about the syntax of this file, see
1010
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
1111

12-
# Copyright 2024 The MathWorks, Inc.
12+
# Copyright 2024 - 2025 The MathWorks, Inc.
1313

1414
name: CI using MATLAB
1515

@@ -42,14 +42,21 @@ jobs:
4242
steps:
4343

4444
- name: Check out repository
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4646

4747
- name: Setup MATLAB
48-
uses: matlab-actions/setup-matlab@v1
48+
uses: matlab-actions/setup-matlab@v2
4949
with:
50-
release: R2024a
50+
release: R2024b
51+
cache: true
52+
products: |
53+
Simulink
54+
Simscape
55+
Simscape_Driveline
56+
Simscape_Fluids
57+
MATLAB_Test
5158
5259
- name: Run tests
53-
uses: matlab-actions/run-command@v1
60+
uses: matlab-actions/run-command@v2
5461
with:
5562
command: openProject(pwd); TestRunner;
-1.75 KB
Binary file not shown.

Model/TractorEnergyComputation.slx

3.22 KB
Binary file not shown.

Overview/TractorModelOverview.m

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
% visualize energy charts for a tractor.
66
%
77

8-
% Copyright 2024 The MathWorks, Inc.
8+
% Copyright 2024 - 2025 The MathWorks, Inc.
99

1010
%% Tractor For Tillage Operation
1111
%
@@ -75,10 +75,24 @@
7575
% <<TransmissionEnergySankeyDiagram.png>>
7676
%
7777

78+
%%
79+
%
80+
% 4. *Perform Transmission Trade-Off Study for a Tractor:* You can
81+
% select transmission hydraulic components from available options that
82+
% minimize energy consumption for a specific agricultural drive cycle.
83+
%
84+
85+
%%
86+
%
87+
% <<TransmissionTradeOffHeatmap.png>>
88+
%
89+
7890
%% Workflows
7991
%
8092
% * <matlab:open('TransmissionEnergyChartingWorkflow.mlx') Create Transmission
8193
% Energy Charting for a Tractor>
94+
% * <matlab:open('TransmissionTradeOffStudyWorkflow.mlx') Perform
95+
% Transmission Trade-Off Study for a Tractor>
8296
%
8397
%% Model
8498
%
11.5 KB
Loading

Overview/html/TractorModelOverview.html

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
To make changes, update the MATLAB code and republish this document.
88
-->
99
<title>Tractor Model with Simscape</title>
10-
<meta name="generator" content="MATLAB 24.1">
10+
<meta name="generator" content="MATLAB 24.2">
1111
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
12-
<meta name="DC.date" content="2024-07-11">
12+
<meta name="DC.date" content="2025-02-18">
1313
<meta name="DC.source" content="TractorModelOverview.m">
1414
<style type="text/css">
1515
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}
@@ -87,10 +87,10 @@ <h2>Contents</h2>
8787
<a href="#1">Tractor For Tillage Operation</a>
8888
</li>
8989
<li>
90-
<a href="#3">Workflows</a>
90+
<a href="#5">Workflows</a>
9191
</li>
9292
<li>
93-
<a href="#4">Model</a>
93+
<a href="#6">Model</a>
9494
</li>
9595
</ul>
9696
</div>
@@ -124,24 +124,30 @@ <h2 id="1">Tractor For Tillage Operation</h2>
124124
<p>3. <b>Create Transmission Energy Charting for a Tractor:</b> After you create the tractor energy computation model, you can compute the transmission losses and visualize the energy flow from the engine to the wheels. To create the transmission energy charting for a tractor, see <a href="matlab:open('TransmissionEnergyChartingWorkflow.mlx')">Create Transmission Energy Charting for a Tractor</a>. This figure shows the energy flow of the tractor and was generated using the Create Transmission Energy Charting for a Tractor workflow.</p>
125125
<p>
126126
<img vspace="5" hspace="5" src="TransmissionEnergySankeyDiagram.png" alt=""> </p>
127-
<h2 id="3">Workflows</h2>
127+
<p>4. <b>Perform Transmission Trade-Off Study for a Tractor:</b> You can select transmission hydraulic components from available options that minimize energy consumption for a specific agricultural drive cycle.</p>
128+
<p>
129+
<img vspace="5" hspace="5" src="TransmissionTradeOffHeatmap.png" alt=""> </p>
130+
<h2 id="5">Workflows</h2>
128131
<div>
129132
<ul>
130133
<li>
131134
<a href="matlab:open('TransmissionEnergyChartingWorkflow.mlx')">Create Transmission Energy Charting for a Tractor</a>
132135
</li>
136+
<li>
137+
<a href="matlab:open('TransmissionTradeOffStudyWorkflow.mlx')">Perform Transmission Trade-Off Study for a Tractor</a>
138+
</li>
133139
</ul>
134140
</div>
135-
<h2 id="4">Model</h2>
141+
<h2 id="6">Model</h2>
136142
<div>
137143
<ul>
138144
<li>
139145
<a href="matlab:open_system('TractorEnergyComputation.slx')">Tractor Energy Computation Model</a>
140146
</li>
141147
</ul>
142148
</div>
143-
<p class="footer">Copyright 2024 The MathWorks, Inc.<br>
144-
<a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2024a</a>
149+
<p class="footer">Copyright 2024 - 2025 The MathWorks, Inc.<br>
150+
<a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2024b</a>
145151
<br>
146152
</p>
147153
</div>
@@ -154,7 +160,7 @@ <h2 id="4">Model</h2>
154160
% visualize energy charts for a tractor.
155161
%
156162
157-
% Copyright 2024 The MathWorks, Inc.
163+
% Copyright 2024 - 2025 The MathWorks, Inc.
158164
159165
%% Tractor For Tillage Operation
160166
%
@@ -224,10 +230,24 @@ <h2 id="4">Model</h2>
224230
% <<TransmissionEnergySankeyDiagram.png>>
225231
%
226232
233+
%%
234+
%
235+
% 4. *Perform Transmission Trade-Off Study for a Tractor:* You can
236+
% select transmission hydraulic components from available options that
237+
% minimize energy consumption for a specific agricultural drive cycle.
238+
%
239+
240+
%%
241+
%
242+
% <<TransmissionTradeOffHeatmap.png>>
243+
%
244+
227245
%% Workflows
228246
%
229247
% * <matlab:open('TransmissionEnergyChartingWorkflow.mlx') Create Transmission
230248
% Energy Charting for a Tractor>
249+
% * <matlab:open('TransmissionTradeOffStudyWorkflow.mlx') Perform
250+
% Transmission Trade-Off Study for a Tractor>
231251
%
232252
%% Model
233253
%
51.1 KB
Loading

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,15 @@ the engine to the wheels.
3636

3737
![](Overview/html/TransmissionEnergySankeyDiagram.png)
3838

39+
4. Perform Transmission Trade-Off Study for a Tractor for a given
40+
agricultural drive cycle.
41+
42+
![](Overview/html/TransmissionTradeOffHeatmap.png)
43+
3944

4045
## Setup
4146
* Clone the project repository.
4247
* Open TractorSimscape.prj to get started with the project.
43-
* Requires MATLAB&reg; release R2024a or newer.
48+
* Requires MATLAB&reg; release R2024b or newer.
4449

45-
Copyright 2024 The MathWorks, Inc.
50+
Copyright 2024 - 2025 The MathWorks, Inc.

Scripts/OpenTractorModelSimscape.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
% Copyright 2024 The MathWorks, Inc.
44

55
web('TractorModelOverview.html')
6-
open_system('TractorEnergyComputation')
6+
open_system('TractorEnergyComputation')
7+
run TractorEnergyComputationInput

Scripts/TractorEnergyComputationInput.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Code to initialize parameters for TractorEnergyComputation
22

3-
% Copyright 2024 The MathWorks, Inc.
3+
% Copyright 2024 - 2025 The MathWorks, Inc.
44

55
%% Tractor Parameters
66

@@ -70,7 +70,7 @@
7070
finalDrive.gearRatioRear = 4; % (1) Carrier to drive shaft teeth ratio
7171
finalDrive.gearRatioFront = 2; % (1) Carrier to drive shaft teeth ratio
7272
finalDrive.gearRatioFinalDrive = 1; % (1) Follower to base teeth ratio
73-
finalDrive.inertiaDriveshaft = 15; % (kg-m^2) Drive shaft inertia
73+
finalDrive.inertiaDriveshaft = 1; % (kg-m^2) Drive shaft inertia
7474

7575
%% Hydrostatic Transmission Parameters
7676
% Pump and Motor Parameters
@@ -110,6 +110,7 @@
110110

111111
implement.depth1Tillage = 9; % (cm) Tillage depth 1
112112
implement.depth2Tillage = 10; % (cm) Tillage depth 2
113+
implement.depth3Tillage = 8; % (cm) Tillage depth for transmission trade-off study
113114
implement.angleRake = 55; % (deg) Rake angle of implement tool
114115
implement.numberTools = 5; % (1) Number of tools for a narrow implement
115116

0 commit comments

Comments
 (0)