• 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 How do I code this equation in xml?

Messages
1,468
Country
italy
Or is it possible even?
I am combining two temperature flows in order to get a resultant temperature.
This is for my anti-ice system. The two temperature flows are from the high pressure system and low pressure cooling air. Different flow rates and different tempertures.
The formula is (HPxheat specific numberxHP temp+LPxheat specific numberxLP temp) / (HPxheat specific+LPxheat specific)
An example:- HP=0.1 LP=1 heat specific= 1.006 HP temp=595 LP temp=230

So the mixing formua would be (0.1x1.006x595+1x1.006x230) / (0.1x1.006x1x1.006) = 263.182

So two temperature flows both of different temperatures and flow rates combine to give a result of 263.

Obviously I can asign L:vars to each value but how do I calculate this equation in XML?
vololiberista
 
Try something like this:

Code:
( A B C * * D E F * * + G H I J * * * / )
 
Building on Bills response, I note that

(HPxheat specific numberxHP temp+LPxheat specific numberxLP temp) / (HPxheat specific+LPxheat specific)

isn't the same formula as

(0.1x1.006x595+1x1.006x230) / (0.1x1.006x1x1.006) = 263.182

For the first formula, you can use

Code:
(L:HP, number) (L:HeatSpecific, number) (L:HPTemp, number) * * (L:LP, number) (L:HeatSpecific, number) (L:LPTemp, number) * * + (L:HP, number) (L:HeatSpecific, number) * (L:LP, number) (L:HeatSpecific, number) *  + / (>L:Result, number)

which results in 263.18181818. It's the same format as Bill's reply, but just using the first equation you wrote.

Bob
 
Ok Chaps,
I've now got a working value, thanks. All I have to do now is recalculate the working temperature range so that the shut valves and warning lights work accordingly. For example if the LP rises above a certain value then the HP supply is cut off.
Compared to the modern single anti-ice switch this anti-ice panel is proving to be far more complex to model than originally thought. Valves are opened/closed depending on whether the requisite starter is running, if the igniters are on in bad weather, or to avoid engine surge etc etc. The magnetic indicators can therefore be cross-lined even if the adjacent valve switch is not shut.
The duct temperature gauges also show different temperatures to ambient whilst on the ground if it's sunny.
This image is prior to start-up.
vololiberista

attachment.php
 

Attachments

  • a-ice2.jpg
    a-ice2.jpg
    65.2 KB · Views: 595
Back
Top