学习SysML空调例子
标签:
杂谈 |
分类: 论文后记 |
TemperatureRegulationLoop系统的包含的模块有:
TemperatureRegulationContext<<System
Context Block>>,
TemperatureRegulation<<System
block>>,ControlPanel
<<block>>,
Regulator
<<block>>,
AllOrNothingRegulator
<<block>>,
CoolingSystem
<<block>>,
HeatingSystem
<<block>>,TemperatureSensor
<<block>>,
Room
<<block>>,
Air
<<block>>,
Settings
<<block>>
, iSettings
<<interface>>,
User
<<actor>>,
在这些模块里面, 具体也包含了一些具体的关键词,
-<<actuator>>-:
categorize the actuator devices。
温度调节循环的IBD为:
BDD中包含的ValueTypes and DataTypes 有: Electricity
<<ValueType>>,
TemkperatureSignal, Temperature, Volume, Heat, Time, Actions ,
ActuatorSignal , ActuatorState, all of these is in
TemperatureRegulationDomain.
接下来, 我们讨论系统的逻辑运算部分,即约束部分, Subtraction
<<constraint>>
{ o = ct -it}:
parameters ct:Real, o: Real, it:Real. another constraint is :
uation
<<constraint>>,
if i > 0 then heating = 1 and
cooling = 0 if i < 0 then heating
= 0 and cooling = 1 if i = 0
heating = 0 and cooling = 0
parameters must also satisfy: i: Real cooling:Real heating :
Real
Actually , the AllOrNothingRegulator is composed of one
ution ConstraintBlock and one Subtraction
ConstraintBlock.
Block Definition Diagram is :
得到了BDD, 接下来 an internal block diagram will be created in the
TemperatureRegulation , which shows how the different blocks
constituting the system are interconnected. This diagram shows
what really flows through the different Flow
Ports of the system.
接下来是在不同的diagram之间进行navigation(导航链接):
Block Definition Diagram of the Java classes simulating the
SysML blocks:
模拟最后要用到公式为 Q = Pair * CPair * Vair * 'q ;

加载中…