EnginePowerVC - function

123apple
Posts: 180
Joined: Fri Jul 15, 2016 1:17 pm

EnginePowerVC - function

Postby 123apple » Sat Nov 26, 2016 12:41 pm

Hello,
I am looking at the ATR72.
It has this block in nasalEngine.xml:

Code: Select all

<table name="EnginePowerVC">
  <description> Engine power, function of airspeed and pressure </description>
  <independentVar lookup="row">atmosphere/P-sl-psf</independentVar>
  <independentVar lookup="column">velocities/ve-kts</independentVar>
  <tableData>
               0     50    100    150    200    250      270
     503   0.357  0.380  0.400  0.425  0.457  0.486      0.512
    1048   0.586  0.589  0.600  0.621  0.650  0.686      0.720
    1328   0.707  0.721  0.731  0.757  0.786  0.821      0.874
    1496   0.779  0.786  0.808  0.821  0.857  0.900      0.981
    1684   0.850  0.857  0.874  0.900  0.943  0.979      1.210
    1896   0.914  0.929  0.946  0.971  1      1.057      1.341
    2135   1      1.011  1.029  1.043  1.083  1.150      1.450
    2213   1.029  1.043  1.057  1.079  1.114  1.171      1.500
  </tableData>
</table>

which brings up the error:

Code: Select all

In file C:/Users/Redpath/Documents/GitHub/MY_FGDATA/Aircraft/ATR72/Engines/nasal
Engine.xml: line 60
Note: Using the EnginePowerVC without enclosed <function> tag is deprecated
Failed to tie property EnginePowerVC to object methods

In file C:/Users/Redpath/Documents/GitHub/MY_FGDATA/Aircraft/ATR72/Engines/nasal
Engine.xml: line 60
Note: Using the EnginePowerVC without enclosed <function> tag is deprecated
.

I will try and fix any other errors, but I'm no JSBsimmer, so I was wondering if someone could explain about the <function> tag, and where / how to put it in?

Best,
Legoboy

sanhozay
Posts: 167
Joined: Fri Sep 25, 2015 5:59 pm

Re: EnginePowerVC - function

Postby sanhozay » Sat Nov 26, 2016 12:54 pm

I haven't tried it but I think you'll just need to do something like:

Code: Select all

   <function name="EnginePowerVC">
       <table>
       ...
       </table>
   </function>

Obviously you'll need same for each table that is not wrapped in a function tag.

Look in the comments at the top of the file for examples.
https://github.com/FGMEMBERS/ATR72/blob ... Engine.xml

bomber
Posts: 1379
Joined: Mon Nov 30, 2015 3:40 pm

Re: EnginePowerVC - function

Postby bomber » Sat Nov 26, 2016 1:19 pm

What engine power vc supposed to do ?
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

123apple
Posts: 180
Joined: Fri Jul 15, 2016 1:17 pm

Re: EnginePowerVC - function

Postby 123apple » Sat Nov 26, 2016 1:30 pm

@sanhozay, I'll attempt that.
Many thanks.

@bomber, looks like it adjusts engine power according to airspeed and external air pressure. It's also in the wiki example for a turboprop engine. I suppose this might explain the sluggish climb, but the ATR is known for being economically underpowered.

Omega's FDMs are generally good but unrealistic.

123apple
Posts: 180
Joined: Fri Jul 15, 2016 1:17 pm

Re: EnginePowerVC - function

Postby 123apple » Sat Nov 26, 2016 1:33 pm

@sanhozay, the error disappeared, and I will test the flight model to see if it has affected engine power, or lack of thereof.


Return to “JSBsim”

Who is online

Users browsing this forum: No registered users and 44 guests