Memuat
Memuat
Stiff Systems with ode15s for Robotics and Mechatronics
0 views
Simulate the cylinder pressure using the ode15s solver and examine how the valve time constant and the fluid bulk modulus influence its behaviour. ode15s is a solver for stiff differential equation systems, whose widely different time scales force ordinary solvers to take very small steps. It is used in chemical kinetics, electronic circuits, and process models with fast and slow dynamics.

Simulate the cylinder pressure using the ode15s solver and examine how the valve time constant and the fluid bulk modulus influence its behaviour.
| Role | Variable | Unit |
|---|---|---|
| Main | Cylinder pressure | bar |
| Supporting 1 | Valve time constant | ms |
| Supporting 2 | Fluid bulk modulus | MPa |
For the stiff Cylinder pressure system (mu=68) ode15s needs only 680 steps versus 7716 for ode45 (a 11.3x ratio), with a mean solution difference of 0.001.
Computed from illustrative synthetic data, not from a real study.
ode15s is a solver for stiff differential equation systems, whose widely different time scales force ordinary solvers to take very small steps. It is used in chemical kinetics, electronic circuits, and process models with fast and slow dynamics.
Report the number of steps and run time of ode15s versus ode45 as evidence of stiffness. Explain the fast and slow time scales in the model.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
mu = 200; % Van der Pol stiffness parameter
f = @(t, y) [y(2); mu*(1 - y(1)^2)*y(2) - y(1)];
tspan = [0 400];
y0 = [2; 0];
opts = odeset('RelTol', 1e-6, 'AbsTol', 1e-8);
tic; [t15, y15] = ode15s(f, tspan, y0, opts); t15s = toc;
tic; [t45, y45] = ode45(f, tspan, y0, opts); t45s = toc;
fprintf('ode15s: %d steps, %.3f s\n', numel(t15) - 1, t15s);
fprintf('ode45 : %d steps, %.3f s\n', numel(t45) - 1, t45s);
valve_time_constant = t15; % time vector
cylinder_pressure = y15; % states
figure;
subplot(2,1,1);
plot(valve_time_constant, cylinder_pressure(:,1), 'LineWidth', 1.2); xlabel('Time'); ylabel('y_1');
subplot(2,1,2);
bar([numel(t15) - 1, numel(t45) - 1]);
set(gca, 'XTickLabel', {'ode15s', 'ode45'}); ylabel('Steps taken');Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$34
excl. 11% VAT
Duration: 7 working days
Output: MATLAB files + result figures
Deliverables
Package 2 · most chosen
US$103
excl. 11% VAT
Duration: 13 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$225
excl. 11% VAT
Duration: 18-21 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Stiff Systems with ode15s is commonly used at this level in Robotics and Mechatronics. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output MATLAB gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$34, Package 2 (your data analysis and interpretation) US$103 and Package 3 (full guidance) US$225, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. MATLAB is a trademark of The MathWorks, Inc.
Back to MATLAB portfolio