Debian Codegraph @

Aircraft/c172p/Systems/external-heat.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3 <!-- c182s external heater
4
5 Accoring to POH (4-33) one should use an external heater below 20°F / -6°C).
6 The heater is implemented here as simple system:
7 - once activated, the heat is applied slowly until reaching a maximum
8 - once deactivated, additional heat cools down to 0°F.
9 - the calculated difference is then applied as offset to outside-air-temperature and engine oil temperature.
10 - these values are used by the priming code in fuel.xml to determine the correct priming value.
11
12 Copyright (C) 2017 Benedikt Hallinger
13
14 This program is free software; you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation; either version 2 of the License, or
17 (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 -->
28 <system name="external-heat">
29 <channel name="External Heat">
30 <kinematic name="External Heater"> <!-- simulates heat slowly raising once heater applied -->
31 <input>/engines/active-engine/external-heat/enabled</input>
32 <traverse>
33 <setting>
34 <position>0</position>
35 <time>0</time>
36 </setting>
37 <setting>
38 <!-- time to raise to maximum applied heat -->
39 <position>1</position>
40 <time>300</time> <!-- reach max output at 5 minutes (=300s) -->
41 </setting>
42 </traverse>
43 <output>/engines/active-engine/external-heat/applied-norm</output>
44 </kinematic>
45 <aerosurface_scale name="Heat degF applied"> <!-- define heat applied in degF -->
46 <input>/engines/active-engine/external-heat/applied-norm</input>
47 <gain>1.0</gain>
48 <zero_centered>false</zero_centered>
49 <domain>
50 <min>0</min>
51 <max>1</max>
52 </domain>
53 <range>
54 <min>0</min>
55 <max>77</max> <!-- 68°F = 20°C --> <!-- TODO: I currently don't know how much heat the heater outputs! currently this gives a limit of -40°C after which priming gets really hard -->
56 </range>
57 <output>/engines/active-engine/external-heat/applied-degF</output>
58 </aerosurface_scale>
59 <fcs_function name="Oil temp plus external heat">
60 <function>
61 <sum>
62 <property>/engines/active-engine/external-heat/applied-degF</property>
63 <property>/engines/active-engine/oil-compensated-temperature-degf</property> <!-- compensated for env-temp and low oil, see engine.xml -->
64 </sum>
65 </function>
66 <output>/engines/active-engine/oil-final-temperature-degf</output>
67 </fcs_function>
68
69 <!-- todo: could be modelled more realistical, since engine radiation should also have a little effect -->
70 <fcs_function name="Cowling environment air Temperature">
71 <function>
72 <sum>
73 <property>/environment/temperature-degf</property>
74 <property>/engines/active-engine/external-heat/applied-degF</property>
75 </sum>
76 </function>
77 <output>/engines/active-engine/cowling-air-temperature-degf</output>
78 </fcs_function>
79
80 <!-- todo: should be better placed in engine.xml, but is not active there... -->
81 <summer name="Engine Oil compensated environment Temperature">
82 <input>/engines/active-engine/oil-temperature-degf</input>
83 <input>-/engines/active-engine/oil-temperature-env-diff</input>
84 <output>/engines/active-engine/oil-compensated-temperature-degf</output>
85 </summer>
86 </channel>
87
88 </system>