Coder Social home page Coder Social logo

Comments (7)

Gui-FernandesBR avatar Gui-FernandesBR commented on May 15, 2024 1

@Lucas-KB awesome comment. I think we should go for that, a generic function to export simulations data to .csv files may be very useful. It seems @aipla999 was creating similar things at #62

Just adding an idea: We could have (1) a standard set of data to be exported and also (2) the possibility of customizing what you want to export. What do you think?

from rocketpy.

Lucas-KB avatar Lucas-KB commented on May 15, 2024

I do agree with most of what @Gui-FernandesBR and @giovaniceotto suggested, but I am not sure if exportPressures fits here. I believe that one belongs in the Flight class, just like exportEng belongs in the SolidMotor class, does it make sense to you?

I suspect you might have thought of this because exportPressures feels a little weird in the sense that it is special for pressures, because it was created to help the electronics team at Projeto Jupiter. What may be a way around this is to implement a more generic function that exports any number of selected simulation results to a csv file (with all that time step thing that exists in exportPressures). What do you think?

from rocketpy.

giovaniceotto avatar giovaniceotto commented on May 15, 2024

@Lucas-KB, I completely agree with you.

from rocketpy.

Lucas-KB avatar Lucas-KB commented on May 15, 2024

@Gui-FernandesBR I did not know about #62, seems very interesting. Do you have any suggestion on what could be in the standard set of data? I believe the obvious answer would be to output everything, any different ideas?

from rocketpy.

Gui-FernandesBR avatar Gui-FernandesBR commented on May 15, 2024

Weel I think the u vector would be enough (time, x, y, z, vx, vy, vz, ax, ay, az, etc.)

Just for comparision reasons, OpenRocket currently can export all the following data when requested:

Time (s); Altitude (m); Vertical velocity (m/s); Vertical acceleration (m/s²); Total velocity (m/s); Total acceleration (m/s²);
Position East of launch (m); Position North of launch (m); Lateral distance (m); Lateral direction (°); Lateral velocity (m/s);
Lateral acceleration (m/s²); Latitude (°); Longitude (°); Gravitational acceleration (m/s²); Angle of attack (°); Roll rate (°/s);
Pitch rate (°/s); Yaw rate (°/s); Mass (g); Propellant mass (g); Longitudinal moment of inertia (kg·m²); Rotational moment of inertia (kg·m²); CP location (mm); CG location (mm); Stability margin calibers (?); Mach number (?); Reynolds number (?); Thrust (N); Drag force (N); Drag coefficient (?); Axial drag coefficient (?); Friction drag coefficient (?); Pressure drag coefficient (?); Base drag coefficient (?); Normal force coefficient (?); Pitch moment coefficient (?); Yaw moment coefficient (?); Side force coefficient (?); Roll moment coefficient (?); Roll forcing coefficient (?); Roll damping coefficient (?); Pitch damping coefficient (?); Coriolis acceleration (m/s²); Reference length (mm); Reference area (m²); Vertical orientation (zenith) (°); Lateral orientation (azimuth) (°); Wind velocity (m/s); Air temperature (°C); Air pressure (mbar); Speed of sound (m/s); Simulation time step (s); Computation time (s)

I don't think we need all these data at once, starting with simple ones would be fine for me.
But of course I'm open to suggestions as well.

from rocketpy.

Gui-FernandesBR avatar Gui-FernandesBR commented on May 15, 2024

Is that possible that the following functions be implemented on utility functions?

  • CompareRockets
  • ApogeeByMass
  • OutOfRailByMass

from rocketpy.

lucasfourier avatar lucasfourier commented on May 15, 2024

In my opinion, "CompareRockets" is the perfect candidate and would suit just fine in utilities.py. Regarding the other two, I am not so sure.

from rocketpy.

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.