Inquiry about Data File Format - Multiple Independent Variables (Mach, Re, AoA, AR) #696
Replies: 2 comments 4 replies
-
Hey, Oscar Thank you for the question. I think you are on the right track here, in that build_data_interpolator should let you choose an arbitrary set of input and output variables corresponding to your columns in the CSV file. We have used it for a few different tables including one with flap deflection as an input. You can see the main ones here: Note that the Height Energy equations of motion for mission do not supply an Angle of Attack, but you can compute it with a solver that varies alpha to drive lift to equal weight. We have a built-in group that does that, which might be a good starting point for yours: There is also an example of a very simple builder that replaces the aviary aero with a custom calculation. https://github.com/OpenMDAO/Aviary/blob/main/aviary/examples/external_subsystems/custom_aero/custom_aero_builder.py I think these are all good starting points, and I should be able to provide further assistance if you run into anything tricky, like getting variables to connect or promote where they are supposed to. |
Beta Was this translation helpful? Give feedback.
-
The Another thing to keep in mind is that Aviary's flight physics wants overall forces on the vehicle (so for aerodynamics that is total drag). You will want to add a component to calculate that, the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Aviary Development Team,
I'm working on integrating an aerodynamic model with OpenMDAO using Aviary's interpolation capabilities. I'm seeking clarification on the correct data file format and the handling of multiple independent variables.
My aerodynamic model calculates the following aerodynamic coefficients directly from:
The model does not use a traditional drag polar decomposition (Cd_0 + k*Cl^2). It directly outputs the total coefficients. The coefficients calculated are:
Based on my understanding of the Aviary documentation, specifically the sections on "External Data Files" and "User Specified Tabular Drag Polars," I believe the most efficient approach is to use a single CSV data file with a structured grid format. The proposed structure is:
The data would represent a multi-dimensional grid covering my flight envelope, with discrete values for Mach, Reynolds number, angle of attack, and aspect ratio. I would then use
build_data_interpolator
withstructured=True
, passing the path to this single file, and defininginterpolator_outputs
as follows:Can you please confirm that this single-file, structured grid approach, with four independent variables (Mach, Re, aoa, AR), is correct and supported by Aviary for my described use case? Specifically, I want to ensure that
build_data_interpolator
can handle more than two independent variables when using theMetaModelStructuredComp
. Are there any restrictions, changes, or suggestions regarding the number of independent variables or the overall approach?Thank you for your time and assistance.
Sincerely,
Oscar
Beta Was this translation helpful? Give feedback.
All reactions