Documentation Home Page ◇ HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
Winding File Example
Annex 2 Winding file example
% Commentaries are preceded by % % Generic turbo-alternator parameters % Number of parallel circuits per phase a = 2; % Number of stator slots slot = 60; % Number of conductors per slot conductor = 2; % polarity = 0 for bipolar windings % polarity = 1 if WF_X2 is only negative % polarity = 2 if WF_X2 is only positive. For other configurations, all WF are required. polarity = 2; % Sign of first conductor currentConvention = -1; % All winding function vectors starts with WF_. % They must be defined in the following order: whole phase A, B et C WF_A = [ 2.5 2.5 2.5 2.5 2 1.5 1 0 -1 -1.5 -2 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2 -1.5 -1 0 1 1.5 2 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2 1.5 1 0 -1 -1.5 -2 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2 -1.5 -1 0 1 1.5 2 2.5 2.5 2.5 2.5]; WF_B = [-1.5 -1 0 1 1.5 2 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2 1.5 1 0 -1 -1.5 -2 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2 -1.5 -1 0 1 1.5 2 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2 1.5 1 0 -1 -1.5 -2 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2]; WF_C = [ -2 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2 -1.5 -1 0 1 1.5 2 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2 1.5 1 0 -1 -1.5 -2 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2.5 -2 -1.5 -1 0 1 1.5 2 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2.5 2 1.5 1 0 -1 -1.5]; % then individual winding of each phase. WF_A1 = [0 0 0 0 0 0 0 -1 -2 -3 -4 -5 -5 -5 -5 -5 -5 -5 -5 -4 -3 -2 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -2 -3 -4 -5 -5 -5 -5 -5 -5 -5 -5 -4 -3 -2 -1 0 0 0 0 0 0 0]; WF_A2 = [5 5 5 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 5 5 5 5 5 5 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 5 5 5]; WF_B1 = [-3 -2 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -2 -3 -4 -5 -5 -5 -5 -5 -5 -5 -5 -4 -3 -2 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -2 -3 -4 -5 -5 -5 -5 -5 -5 -5 -5 -4]; WF_B2 = [0 0 1 2 3 4 5 5 5 5 5 5 5 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 5 5 5 5 5 5 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0]; WF_C1 = [-4 -5 -5 -5 -5 -5 -5 -5 -5 -4 -3 -2 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -2 -3 -4 -5 -5 -5 -5 -5 -5 -5 -5 -4 -3 -2 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -2 -3]; WF_C2 = [0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 5 5 5 5 5 5 5 4 3 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 4 5 5 5 5 5 5 5 5 4 3 2 1 0 0]; % Finally, the winding orders of winding A1, A2, B2 and C2 are required. % Their names must begin with WO_. WO_A1 = [ 8 20 09 21 10 22 11 23 12 24 38 50 39 51 40 52 41 53 42 54]; WO_A2 = [ 9 57 08 56 07 55 06 54 05 53 39 27 38 26 37 25 36 24 35 23]; WO_B2 = [49 37 48 36 47 35 46 34 45 33 19 07 18 06 17 05 16 04 15 03]; WO_C2 = [59 47 58 46 57 45 56 44 55 43 29 17 28 16 27 15 26 14 25 13]; % Alternatively, one can provide only the winding orders for all windings. % The parameter generator computes the required winding functions. WO_A1 = [ 8 20 09 21 10 22 11 23 12 24 38 50 39 51 40 52 41 53 42 54]; WO_A2 = [ 9 57 08 56 07 55 06 54 05 53 39 27 38 26 37 25 36 24 35 23]; WO_B1 = [18 30 19 31 20 32 21 33 22 34 48 60 49 01 50 02 51 03 52 04]; WO_B2 = [49 37 48 36 47 35 46 34 45 33 19 07 18 06 17 05 16 04 15 03]; WO_C1 = [58 10 59 11 60 12 01 13 02 14 28 40 29 41 30 42 31 43 32 44]; WO_C2 = [59 47 58 46 57 45 56 44 55 43 29 17 28 16 27 15 26 14 25 13];
The parameter generator verify the length of all vector as well as the content of the winding orders. These error detection mechanism are rudimentary, extra care must be taken in order to provide correct winding data.
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter