Comments (7)
@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.
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.
@Lucas-KB, I completely agree with you.
from rocketpy.
@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.
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.
Is that possible that the following functions be implemented on utility functions?
- CompareRockets
- ApogeeByMass
- OutOfRailByMass
from rocketpy.
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)
- ENH: automatically gets inputs and outputs from csv file
- Error during build & install rocketpy using setuptools HOT 1
- BUG: KeyError: 'I_11' and AttributeError: 'NoneType' object has no attribute 'reset' HOT 1
- ENH: Support for Open Meteo API
- ENH: make rocketpy classes json serializable
- ENH: adds an 3D animation of flight trajectory
- DOC: Software in a Loop (SIL) example with parachute ejection systems
- DOC: update badges on our README
- DOC: stop cloning the whole repository just for examples HOT 1
- ENH: plot inertia tensor components in a single plot
- ENH: display both power_off_drag and power_on_drag in a single plot
- ENH: adds `axial_acceleration` attribute to the Flight class HOT 2
- MNT: EmptyMotor class inherits from Motor(ABC)
- MNT: delete tools.cached_property
- DOC: convert notebooks to .rst files in the documentation
- ENH: Support for Meteomatics API
- ENH: give me a scissor or apply `Function.clip` and `Function.crop`
- BUG: Invalid Center of Pressure for Rockets with Variable Diameter
- Incorrect/incomplete docstring in environment.py HOT 4
- MNT: save ref_factor value when adding aero surfaces to a Rocket
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocketpy.