fast-aircraft-design / FAST-OAD

FAST-OAD: An open source framework for rapid Overall Aircraft Design
GNU General Public License v3.0
51 stars 25 forks source link

Options for propulsion model #376

Open vinx012 opened 3 years ago

vinx012 commented 3 years ago

Hello,

Is there a way to pass a variable from the configuration file to the propulsion module? Just to be more specific, imagine I want to pass the "bypass_ratio" variable of the "RubberEngine" class as an option of the perfomance module. Is this possible?

In my case I have a variable that triggers the choice of the fidelity level of the propeller model to be used in my turboprop_engine class. I'd like this variable to be an option in the configuration file.

Thanks, Vincenzo

christophe-david commented 3 years ago

Hello,

indeed, the mechanism of propulsion wrapper does not allow to pass options from configuration file, unlike the standard modules. That would be a nice feature to add, I guess. In the meantime, the workaround is to do the choice at compute() time, on the basis of variable values, but I understand it may be not satisfactory.

vinx012 commented 3 years ago

That is the workaround I've been using but I think being able to do it from the configuration file would make much more sense. I've tried to find a solution, but I couldn't find a nice and proper way to do it.