1+ ## \file OptimalPropeller.py
2+ # \brief Python script for generating the ActuatorDisk.dat file.
3+ # \author E. Saetta, L. Russo, R. Tognaccini
4+ # \version 7.0.7 "Blackbird"
5+ #
6+ # SU2 Project Website: https://su2code.github.io
7+ #
8+ # The SU2 Project is maintained by the SU2 Foundation
9+ # (http://su2foundation.org)
10+ #
11+ # Copyright 2012-2020, SU2 Contributors (cf. AUTHORS.md)
12+ #
13+ # SU2 is free software; you can redistribute it and/or
14+ # modify it under the terms of the GNU Lesser General Public
15+ # License as published by the Free Software Foundation; either
16+ # version 2.1 of the License, or (at your option) any later version.
17+ #
18+ # SU2 is distributed in the hope that it will be useful,
19+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
20+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21+ # Lesser General Public License for more details.
22+ #
23+ # You should have received a copy of the GNU Lesser General Public
24+ # License along with SU2. If not, see <http://www.gnu.org/licenses/>.
125# ==============================================================================================
226# Name : OptimalPropeller
327# Author : Ettore Saetta, Lorenzo Russo, Renato Tognaccini
@@ -64,7 +88,7 @@ def Print_external_file(CTrs, CPrs):
6488### Main ###
6589##########################
6690# Screen output
67- print ('------------------ Optimal Propeller vsn 1 .0.0 ------------------' )
91+ print ('------------------ Optimal Propeller vsn 7 .0.7 ------------------' )
6892print ('| Computation of the optimal dCT/dr and dCP/dr distributions. |' )
6993print ('| Based on the inviscid theory of the optimal propeller. |' )
7094print ('| |' )
@@ -88,22 +112,22 @@ def Print_external_file(CTrs, CPrs):
88112dStations = float (Stations )
89113
90114# Resize the vectors using the number of radial stations.
91- r = [ None ] * Stations
92- chi = [ None ] * Stations
93- dCp = [ None ] * Stations
94- w = [ None ] * Stations
95- a_new = [ None ] * Stations
96- a_old = [ None ] * Stations
97- a_0 = [ None ] * Stations
98- ap_old = [ None ] * Stations
99- dCt_new = [ None ] * Stations
100- dCt_old = [ None ] * Stations
101- dCt_0 = [ None ] * Stations
102- DeltaP = [ None ] * Stations
103- F = [ None ] * Stations
104- a_optimal = [ None ] * Stations
105- ap_optimal = [ None ] * Stations
106- dCt_optimal = [ None ] * Stations
115+ r = np . empty ( Stations )
116+ chi = np . empty ( Stations )
117+ dCp = np . empty ( Stations )
118+ w = np . empty ( Stations )
119+ a_new = np . empty ( Stations )
120+ a_old = np . empty ( Stations )
121+ a_0 = np . empty ( Stations )
122+ ap_old = np . empty ( Stations )
123+ dCt_new = np . empty ( Stations )
124+ dCt_old = np . empty ( Stations )
125+ dCt_0 = np . empty ( Stations )
126+ DeltaP = np . empty ( Stations )
127+ F = np . empty ( Stations )
128+ a_optimal = np . empty ( Stations )
129+ ap_optimal = np . empty ( Stations )
130+ dCt_optimal = np . empty ( Stations )
107131
108132# Thrust coefficient in input.
109133Ct = float (input ('CT (Renard definition): ' ))
0 commit comments