-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
EngineEnvironment.bak-mo
85 lines (73 loc) · 2.57 KB
/
EngineEnvironment.bak-mo
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
within PropulsionSystem;
model EngineEnvironment
//********** Package **********
//##### none #####
//********** Type definitions, only valid in this class **********
//##### none #####
//********** Parameters **********
parameter Modelica.SIunits.Temperature Tstd= PropulsionSystem.Constants.constants_earth.Tstd
""
annotation(
Dialog(group = "System-wide constants"));
parameter Modelica.SIunits.Pressure pStd= PropulsionSystem.Constants.constants_earth.pStd
""
annotation(
Dialog(group = "System-wide constants"));
parameter Modelica.SIunits.Acceleration gravity= PropulsionSystem.Constants.constants_earth.gravity
""
annotation(
Dialog(group = "System-wide constants"));
//----- switches -----
/********************************************************
Graphics
********************************************************/
annotation (
defaultComponentName="environment",
defaultComponentPrefixes="inner",
missingInnerMessage="
Your model is using an outer \"environment\" component but
an inner \"environment\" component is not defined.
For simulation drag Modelica.Fluid.System into your model
to specify system properties.",
Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,
100}}), graphics={
Rectangle(
extent={{-100,100},{100,-100}},
lineColor={0,0,255},
fillColor={255,255,255},
fillPattern=FillPattern.Solid),
Text(
extent={{-150,150},{150,110}},
lineColor={0,0,255},
textString="%name"),
Line(points={{-86,-30},{82,-30}}),
Line(points={{-82,-68},{-52,-30}}),
Line(points={{-48,-68},{-18,-30}}),
Line(points={{-14,-68},{16,-30}}),
Line(points={{22,-68},{52,-30}}),
Line(points={{74,84},{74,14}}),
Polygon(
points={{60,14},{88,14},{74,-18},{60,14}},
lineColor={0,0,0},
fillColor={0,0,0},
fillPattern=FillPattern.Solid),
Text(
extent={{16,20},{60,-18}},
lineColor={0,0,0},
textString="g"),
Text(
extent={{-90,82},{74,50}},
lineColor={0,0,0},
textString="defaults"),
Line(
points={{-82,14},{-42,-20},{2,30}},
thickness=0.5),
Ellipse(
extent={{-10,40},{12,18}},
pattern=LinePattern.None,
lineColor={0,0,0},
fillColor={255,0,0},
fillPattern=FillPattern.Solid)}),
Documentation(info="<html>
</html>"));
end EngineEnvironment;