View into a Simscapeblock

조회 수: 4 (최근 30일)
Florian
Florian 2025년 1월 29일
댓글: Florian 2025년 2월 11일
Hi all,
I have a question about Simscape blocks. In particular, I am interested in the block “Spark Ignition Engine”.
It performs various calculations related to the operation of a four-stroke engine with external ignition.
I would like to know what formulas are behind the block's calculations so that I can better interpret the results.
The “Description” submenu allows you to access the block's source code.
However, this code only shows what you see in Simulink's graphical interface.
Is there a way to access the mathematical formulas that the block uses to perform its calculations?
The following command takes you to the example project in question:
openExample('sdl/SingleCylinderSparkIgnitionEngineExample')
I would be very happy to receive a reply.
Kind regards,
Florian

채택된 답변

Shivam Gothi
Shivam Gothi 2025년 1월 30일
As per my understanding, you are trying to understand the mathematical model of "Spark Ignition Engine", but the mathematical equatons describing its dynamics are not stated in the documentation.
"Spark Ignition Engine" block is a composite block that uses a subcomponent implementation of these blocks:
Each of the above documentation explains the mathematical equations that are used to model the perticular sub component.
I analysed the equations of each sub-blocks, and summarising them for your reference.
"SI Combustion Cylinder" block calculates the instantaneous cylinder volume as a function of the crank position. It then finds the time derivative of V(θ), which scales the instantaneous power that the cylinder generates. This documentation explains the valve timing digram.
"Crankshaft" block computes the torque, based upon the crank position "θ".
"Ignition trigger" block takes the spark angle as input at port SA and generates an asynchronous event trigger output at port Trig when the crank position crosses the spark angle
The "Air Intake" block represents an abstract air intake system that computes lumped-parameter air flow dynamics.
The documentation above outlines the mathematical equations that dictate the behavior of a specific sub-component. By connecting these insights, you can derive the comprehensive mathematical framework that governs the entire "Spark Ignition Engine."
I hope you find the information usefull !
  댓글 수: 4
Florian
Florian 2025년 1월 31일
이동: Walter Roberson 2025년 1월 31일
Yes, sure. The reference can be found in the source code of the “The SI Combustion Cylinder” component.
I will give you an example in which reference is made to the literature:
You can find this in line 460 and 461:
% Ideal Otto cycle pressures. See Figure 5.5 in [EN14] for where the '2'
% and '3' are in the cycle.
or this, which can be found in line 479 and 480:
V_23 = EngineCombustionCylinderVolume(cpos, V_c, Rcrk, conrod, bore);
dTcomb = q_LHV * min(1, afr_ivc/AFR_s) / ((afr_ivc + 1)*Cv_c); % EN14-(7.44)
I hope you can find this in the source code.
Kind regards
Florian
Florian
Florian 2025년 2월 11일
Can anyone tell me where this source can be found?
Kind regards
Florian Bendel

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Engines & Motors에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by