Giter VIP home page Giter VIP logo

Comments (1)

seanmcleod avatar seanmcleod commented on June 19, 2024

You haven't given enough context. At what point are you executing:

Clp = fdm['aero/coefficient/Clp']

While the aircraft is flying or while it's standing still on the ground?

Now I presume you've seen this function in c172p.xml right?

<function name="aero/coefficient/Clp">
<description>Roll_moment_due_to_roll_rate_(roll_damping)</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/p-aero-rad_sec</property>
<value>-0.4840</value>
</product>
</function>

Now the first thing you need to realise is that the name of the function can be anything that the FDM author feels like using, but typically people include coefficient names in the function but there is no requirement, you could name this aaa for example.

Now it turns out that functions using this sort of naming convention can be misleading, the description field gives it away, this isn't a function which returns a coefficient, it's a function that calculates and returns a moment, in this particular case by multiplying a number of fields and values together.

Now I'm guessing you're trying to retrieve the coefficient in particular, i.e. -0.4840 in this example?

If so, remember that coefficients in general aren't static figures. For example take a look at this example:

jsbsim/aircraft/737/737.xml

Lines 770 to 785 in ebb770e

<function name="aero/coefficient/Cmde">
<description>Pitch_moment_due_to_elevator</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>fcs/elevator-pos-rad</property>
<table>
<independentVar>velocities/mach</independentVar>
<tableData>
0.0 -1.20
2.0 -0.30
</tableData>
</table>
</product>
</function>

The coefficient in the above case is dependent on Mach.

What exactly are you trying to do?

from jsbsim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.