RCAIDE.Library.Methods.Powertrain.Converters.Ducted_Fan.Performance.Blade_Element_Momentum_Theory.run_dfdc_analysis
run_dfdc_analysis#
- run_dfdc_analysis(dfdc_object, print_output)[source]#
Executes the DFDC (Ducted Fan Design Code) executable with the specified input deck.
- Parameters:
dfdc_object (DFDCAnalysis) –
- Analysis object containing the following attributes:
- settingsData
- Configuration settings
- new_regression_resultsbool
Flag to use existing results instead of running analysis
- filenamesData
- File path information
- log_filenamestr
Path to log file for stdout
- err_filenamestr
Path to error file for stderr
- dfdc_bin_namestr
Path to DFDC executable
- casestr
Case name for DFDC
- current_statusData
- Current analysis state
- deck_filestr
Path to input deck file with DFDC commands
print_output (bool) – Flag to control whether DFDC console output is displayed
- Returns:
exit_status – Return code from the DFDC process 0 indicates successful execution Non-zero values indicate errors
- Return type:
int
Notes
- This function handles the execution of the DFDC executable by:
Purging any existing log and error files
Opening the input deck file and feeding commands to DFDC
Capturing and redirecting stdout/stderr to specified files
Returning the process exit code
This function requires the third party DFDC executable to be installed. More information on the DFDC executable from Drela and Youngrencan be found at: https://web.mit.edu/drela/Public/web/dfdc/
If new_regression_results is True, the function will skip execution and return a success code (0) without running DFDC.
See also
RCAIDE.Library.Methods.Powertrain.Converters.Ducted_Fan.purge_files
,RCAIDE.Framework.Core.redirect