Memuat
Memuat
Stiff Systems with ode15s for Chemistry and Materials
0 views
Simulate intermediate species concentration in a stiff system with ode15s and assess the influence of fast rate parameter and slow rate parameter. 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 intermediate species concentration in a stiff system with ode15s and assess the influence of fast rate parameter and slow rate parameter.
| Role | Variable | Unit |
|---|---|---|
| Main | Intermediate species concentration | mol/L |
| Supporting 1 | Fast rate parameter | 1/s |
| Supporting 2 | Slow rate parameter | 1/s |
For the stiff Intermediate species concentration system (mu=58) ode15s needs only 678 steps versus 5645 for ode45 (a 8.3x ratio), with a mean solution difference of 0.002.
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);
fast_rate_parameter = t15; % time vector
intermediate_species_concent = y15; % states
figure;
subplot(2,1,1);
plot(fast_rate_parameter, intermediate_species_concent(:,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$41
excl. 11% VAT
Duration: 7 working days
Output: MATLAB files + result figures
Deliverables
Package 2 · most chosen
US$116
excl. 11% VAT
Duration: 13 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$253
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 Chemistry and Materials. 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$41, Package 2 (your data analysis and interpretation) US$116 and Package 3 (full guidance) US$253, 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