• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Complex Graph.

Ahh, the polynomial you were working on in your earlier thread ...

(267.4242424238*D15^4-2602.7777777738*D15^3+9399.5833333178*D15^2-14868.2979797705*D15)+8711.6903030121 =

267.4242424238*D15^4
-2602.7777777738*D15^3
+9399.5833333178*D15^2
-14868.2979797705*D15
+8711.6903030121


XML:
D15 4 pow 267.4242424238 *
D15 3 pow 2602.7777777738 * -
D15 2 pow 9399.5833333178 * +
D15 14868.2979797705 * -
8711.6903030121 +


or

D15 4 pow 267.4242424238 * D15 3 pow 2602.7777777738 * - D15 2 pow 9399.5833333178 * + D15 14868.2979797705 * - 8711.6903030121 +

If you plan to do more work with tables, I believe it is good to check out Tom Aguilo's XMLTools and read about his XMLTables class. But, if you're comfortable with your polynomial curve fit, then just stay with that for now.

Bob
 
D15 4 pow 267.4242424238 * D15 3 pow 2602.7777777738 * - D15 2 pow 9399.5833333178 * + D15 14868.2979797705 * - 8711.6903030121 +
Code:
   <Element>
      <Select>
         <Value>(A:Turb eng1 pressure ratio, ratio) 4 pow 267.4242424238 * (A:Turb eng1 pressure ratio, ratio) 3 pow 2602.7777777738 * - (A:Turb eng1 pressure ratio, ratio) 2 pow 9399.5833333178 * + (A:Turb eng1 pressure ratio, ratio) 14868.2979797705 * - 8711.6903030121 + (>L:eng1_P7_curve,number)</Value>
      </Select>
   </Element>

   <Element>
      <Select>
         <Value>(L:eng1_P7_curve,number) (A:AMBIENT PRESSURE,inHg) &lt; if{ (A:AMBIENT PRESSURE,inHg) (>L:Eng_1_P7,number) } els{ (L:eng1_P7_curve,number) (>L:Eng_1_P7,number) }</Value>
      </Select>
   </Element>

works nicely thanks. But there is an anomaly in that its start value is 907!!!! As the engine spools up it runs down to the correct value of about 34 thereafter behaving normaly acording to the throttle position. So the P7 needle races around the dial as fast as it dares until the idle value is reached.
Should it not compute the initial value correctly? Or is there a way to stop the needle getting dizzy?

PS Or is there a way to stop the needle getting dizzy? I've put a stop to that but if you could throw any light on why it starts at a too high value I'd be happy to know. The initial value of (A:Turb eng1 pressure ratio, ratio) is 1.
 
Last edited:
This seems now to be working more or less.
Code:
  This element adds in an adjustment factor for the ambient temperature. (less than ISA hasn't been done yet)
<Element>
  <Select>
  <Value>(A:Ambient Temperature, celsius) 15 &gt; if{ 15 A:Ambient Temperature, celsius) - (>L:gradient,number) (L:gradient,number) 100 / (>L:gradient,number) (L:gradient,number) 0.01 + (>L:gradient,number)</Value>
  </Select>
  </Element>

These elements control the needle on the P7 gauge
  <Element>
  <Select>
  <Value>(A:Turb eng1 pressure ratio, ratio) 2 &gt; if{ (A:Turb eng1 pressure ratio, ratio) (L:gradient,number) + 4 pow 267.4242424238 * (A:Turb eng1 pressure ratio, ratio) (L:gradient,number) + 3 pow 2602.7777777738 * - (A:Turb eng1 pressure ratio, ratio) (L:gradient,number) + 2 pow 9399.5833333178 * + (A:Turb eng1 pressure ratio, ratio) (L:gradient,number) + 14868.2979797705 * - 8711.6903030121 + (>L:eng1_P7_curve,number) }</Value>
  </Select>
  </Element>
<Element>
  <Select>
  <Value>(L:eng4_P7_curve,number) (A:AMBIENT PRESSURE,inHg) &lt; if{ (A:AMBIENT PRESSURE,inHg) (>L:Eng_1_P7,number) }
      els{ (L:eng1_P7_curve,number) (>L:Eng_1_P7,number) }</Value>
  </Select>
  </Element>

This element sets the target. i.e. P7 max (This is still for ISA and hasn't had a temperature adjustment yet)
 
  <Element>
  <Select>
  <Value>288.15 (A:Indicated Altitude,feet) 1000 / 1.98 * - 288.15 / 5.11 pow 73.8 * (>L:P7_limit, number)</Value>
  </Select>
  </Element>

(A:Turb eng1 pressure ratio, ratio) kicks off at 2 but at higher ambient temps the gauge doesn't start to move until the throttle is applied. So that needs a bit more work.
 
Last edited:
Hi Volo,

I don't know how your P7 should properly behave as a function of ambient pressure or throttle, but I can shed a little light on your use of the polynomial equation in this situation.

Here's what your 4th degree poly is doing and explains why you get 907 with the initial pressure ratio of 1.00. I doubt this looks like any table from the Conway handbook. Polynomial curves are useful but you should not extrapolate very far outside of the range of X values that were used in the curve fit. I am guessing that the lowest X value used in the fit for this polynomial was around 2.5 to 3.0.

Maybe your solution should be to place a lower limit on A:Turb eng1 pressure ratio when it is used to calculate P7. The max operator can do this for you.

Alternatively, I suggest taking a look at XMLTables from Tom, especially if you make use of a lot of tables from the VC10 or Conway Pilots Operating Manuals in your project.

Bob

upload_2015-8-15_14-51-54.png
 
Thanks Bob for your explanation and illustration. I can see now why it does that. To get around it I delayed the calculation until
(A:Turb eng1 pressure ratio, ratio) rises above 2. Its minimum is always 1 and its max is 2.8. I might adjust it slightly. The downside though is that at high ambient temps the needle on the dial doesn't move until throttle application.
The current model for the P7 dial is below.
curvexx.jpg


This will make you smile though. At the end of the day the placarded P7 max is always a whole number so the accuracy in theory only needs to be within half a point. But it's nice to get the dial to behave correctly. and makes the job of calculating the P7 max a bit easier too!
 
That one would be modeled as two straight lines, not a polynomial.
 
Last edited:
Back
Top