Repository navigation
Expand file tree
/
Copy pathsystem.sysml
More file actions
68 lines (68 loc) · 3.2 KB
/
Copy pathsystem.sysml
File metadata and controls
68 lines (68 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package CompressorSystem {
private import ScalarValues::*;
private import CompressorTypes::*;
private import CompressorComponents::*;
private import CompressorBehavior::*;
part def Compressor :> CompressorInterface {
doc /* Smart compressor: electrical control, air storage and cooling.
These are authored connections and constraints, not a simulation. */
part electrical : ElectricalAssembly;
part pneumatic : PneumaticAssembly;
part cooling : CoolingAssembly;
part serviceConsole : ServiceConsole;
connection pressureFeedback connect pneumatic.pressureSensor.reading
to electrical.controller.pressure;
connection temperatureSample connect pneumatic.pump.temperature
to cooling.temperature.sample;
connection temperatureFeedback connect cooling.temperature.reading
to electrical.controller.temperature;
connection fanControl connect electrical.controller.fanCommand to cooling.fan.command;
connection maintenanceRequest connect serviceConsole.request to electrical.controller.service;
connection faultAlarm connect electrical.controller.alarm to serviceConsole.alarm;
constraint powerBudget {
electrical.motor.ratedPower + cooling.fan.ratedPower <= electrical.supply.ratedPower
}
action startup : CompressAir;
action service : ServiceCompressor;
state operatingMode : OperatingMode;
}
part def ElectricalAssembly {
part supply : PowerSupply;
part controller : Controller;
part motor : Motor;
connection motorPower connect supply.supply to motor.power;
connection motorControl connect controller.command to motor.command;
}
part def PneumaticAssembly {
part pump : Pump;
part tank : Tank;
part regulator : CheckValve;
part relief : ReliefValve;
part pressureSensor : PressureSensor;
connection chargingLine connect pump.outlet to tank.inlet;
connection regulatedDelivery connect tank.delivery to regulator.inlet;
connection pressureProtection connect tank.relief to relief.inlet;
connection pressureSample connect tank.pressureReading to pressureSensor.sample;
}
part def Workshop {
part compressor : Compressor;
part spareCompressor : Compressor;
part tool : AirTool;
part blowGun : AirTool;
part operator : Operator;
part technician : Technician;
connection deliveryLine connect compressor.pneumatic.regulator.outlet to tool.inlet;
connection spareDelivery connect spareCompressor.pneumatic.regulator.outlet to blowGun.inlet;
}
part def WorkshopContext {
doc /* A black-box system context. The two compressor roles share the
interface specialized by the detailed Compressor definition. */
part mains : PowerSupply;
part compressor : CompressorInterface;
part tool : AirTool;
part serviceConsole : ServiceConsole;
connection electricalSupply connect mains.supply to compressor.power;
connection usableAir connect compressor.air to tool.inlet;
}
part workshop : Workshop;
}