Skip to content

Overflow error #28

Description

@jagoosw

Describe the bug
When running a stats model every few (approx 1/10) models gives an error like:
/home/jago/CamPyRoS/campyros/main.py:457: RuntimeWarning:overflow encountered in multiply

This line calculates the parachute force:

F_parachute_i = -0.5 * q * ref_area * CD * v_relative_wind_i / air_speed

I have also seen 'invalid division' errors from this line too so suspect that the issue is occurring when air_speed is close to zero.

To Reproduce
So far I do not know what particular combination of rail angles, wind etc. result in this situation occurring but it should not be hard to investigate. Logging parachute forces and initial conditions would hopefully show a pattern.

Expected behavior
We should never have a situation where we have near 'infinite' parachute force. I suspect that the error is occurring in intermediate time steps which will be thrown away by the integrator (the integrator attempts to minimise the timesteps and in doing so calculates intermediaries which it then checks are not too different from the previous step, otherwise it throws them away). If this is the case then we don't really have a problem, otherwise we have a major one.

Setup
Stock install

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions