-
Notifications
You must be signed in to change notification settings - Fork 5
/
FAST_IO.f90
7596 lines (4656 loc) · 312 KB
/
FAST_IO.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
MODULE FAST_IO_Subs
USE NWTC_Library
CONTAINS
!====================================================================================================
SUBROUTINE AeroInput()
! This subroutine sets up the information needed to initialize AeroDyn, then initializes AeroDyn
!----------------------------------------------------------------------------------------------------
USE AeroElem !, ONLY: ADAeroMarkers, NumADBldNodes, ADCurrentOutputs, ADIntrfaceOptions, ADFirstLoop, Prev_Aero_t
USE General, ONLY: RootName, ADFile, SumPrint
USE TurbConf, ONLY: NumBl, TipRad, HubRad, SinPreC, CosPreC
USE Output, ONLY: WrEcho
USE AeroDyn
IMPLICIT NONE
! Local variables
TYPE(AD_InitOptions) :: ADOptions ! Options for AeroDyn
INTEGER :: ErrStat
! Set up the AeroDyn parameters
ADOptions%ADInputFile = ADFile
ADOptions%OutRootName = RootName
ADOptions%WrSumFile = SumPrint
! Hub position and orientation (relative here, but does not need to be)
ADInterfaceComponents%Hub%Position(:) = 0.0
ADInterfaceComponents%Hub%Orientation(1,1) = 0.0
ADInterfaceComponents%Hub%Orientation(1,1) = 1.0
ADInterfaceComponents%Hub%Orientation(2,2) = 1.0
ADInterfaceComponents%Hub%Orientation(3,3) = 1.0
! Blade root position and orientation (relative here, but does not need to be)
IF (.NOT. ALLOCATED( ADInterfaceComponents%Blade ) ) THEN
ALLOCATE( ADInterfaceComponents%Blade( NumBl ), STAT = ErrStat )
IF ( ErrStat /= 0 ) THEN
CALL ProgAbort( ' Error allocating space for ADInterfaceComponents%Blade.' )
END IF
END IF
ADInterfaceComponents%Blade(:)%Position(1) = HubRad*SinPreC(:)
ADInterfaceComponents%Blade(:)%Position(2) = 0.0
ADInterfaceComponents%Blade(:)%Position(3) = HubRad*CosPreC(:)
ADInterfaceComponents%Blade(:)%Orientation(1,1) = CosPreC(:)
ADInterfaceComponents%Blade(:)%Orientation(2,1) = 0.0
ADInterfaceComponents%Blade(:)%Orientation(3,1) = 1.0 * SinPreC(:)
ADInterfaceComponents%Blade(:)%Orientation(1,2) = 0.0
ADInterfaceComponents%Blade(:)%Orientation(2,2) = 1.0
ADInterfaceComponents%Blade(:)%Orientation(3,2) = 0.0
ADInterfaceComponents%Blade(:)%Orientation(1,3) = -1.0 * SinPreC(:)
ADInterfaceComponents%Blade(:)%Orientation(2,3) = 0.0
ADInterfaceComponents%Blade(:)%Orientation(3,3) = CosPreC(:)
! Blade length
ADInterfaceComponents%BladeLength = TipRad - HubRad
! Initialize AeroDyn
ADAeroMarkers = AD_Init(ADOptions, ADInterfaceComponents, ErrStat) ! relative markers are returned
! get the number of blade nodes from the returned data structure'
IF (.NOT. ALLOCATED( ADAeroMarkers%Blade ) ) THEN
CALL ProgAbort( 'AeroDyn blade nodes are required to calculate aerodynamic loads.' )
ELSE
NumADBldNodes = SIZE( ADAeroMarkers%Blade, 1 )
END IF
! allocate variables for aerodyn forces
IF (.NOT. ALLOCATED(ADIntrfaceOptions%SetMulTabLoc)) THEN
ALLOCATE( ADIntrfaceOptions%SetMulTabLoc(NumADBldNodes, NumBl), STAT = ErrStat )
IF ( ErrStat /= 0 ) CALL ProgAbort ( ' Error allocating memory for ADIntrfaceOptions%SetMulTabLoc array.' )
END IF
ADIntrfaceOptions%SetMulTabLoc(:,:) = .FALSE.
ADIntrfaceOptions%LinearizeFlag = .FALSE.
! bjj: we don't use this, so don't allocate it
!
! IF (.NOT. ALLOCATED(ADIntrfaceOptions%MulTabLoc)) THEN
! ALLOCATE(ADIntrfaceOptions%MulTabLoc(NumADBldNodes, NumBl), STAT = Sttus )
! IF ( Sttus /= 0 ) CALL ProgAbort ( ' Error allocating memory for ADIntrfaceOptions%MulTabLoc array.' )
! END IF
CALL Set_FAST_Params()
RETURN
END SUBROUTINE AeroInput
!====================================================================================================
SUBROUTINE FAST_Begin()
! This subroutine Prints out the name and version of the program, checks for
! command-line arguments, and creates the names of the output files.
USE General
USE TurbConf
IMPLICIT NONE
! Local variables.
INTEGER :: Stat ! The status of the call to GET_CWD
CHARACTER(1024) :: DirName ! A CHARACTER string containing the path of the current working directory.
! Check for command line arguments. Maybe the user specified an input file name.
! Don't perform this check when interfaced with Simulink:
IF ( .NOT. Cmpl4SFun ) CALL CheckArgs( PriFile )
CALL GetRoot( PriFile, RootName )
! Let's create a root file name variable, DirRoot, which includes the full
! path to the current working directory.
IF ( PathIsRelative(RootName) ) THEN
CALL Get_CWD ( DirName, Stat )
IF (Stat /= 0) CALL ProgAbort('Error retreiving current working directory.')
DirRoot = TRIM( DirName )//PathSep//TRIM( RootName )
ELSE
DirRoot = RootName
END IF
! Let's create the name of the output file.
IF ( Cmpl4SFun ) RootName = TRIM( RootName )//'_SFunc'
RETURN
END SUBROUTINE FAST_Begin
!=======================================================================
SUBROUTINE ChckOutLst
! This routine checks to see if any inputted output channels (stored
! in the OutList(:)) are ill-conditioned (and if so, FAST Aborts)
! and assigns the settings for OutInd(:) and OutParam(:) (i.e, the
! index, name, and units of the output channels, OutData(:)).
USE Features
USE General
USE Output
USE Platform
USE TurbConf
IMPLICIT NONE
! Local variables.
INTEGER :: I ! Generic loop-counting index.
INTEGER :: J ! Generic loop-counting index.
INTEGER :: INDX ! Index for valid arrays.
INTEGER :: Sttus ! Status returned from an allocation request.
CHARACTER(10) :: OutListTmp ! A string to temporarily hold OutList(I).
CHARACTER(28) :: OutPFmt = "( I4, 3X,A 10,1 X, A10 )" ! Output format parameter output list.
! NOTE: The following lines of code were generated by a Matlab script called "Write_ChckOutLst.m"
! using the parameters listed in the "OutListParameters.xlsx" Excel file. Any changes to these
! lines should be modified in the Matlab script and/or Excel worksheet as necessary.
! This code was generated by Write_ChckOutLst.m at 30-Jan-2012 12:30:08.
CHARACTER( 9),PARAMETER :: ValidParamAry(1110) = (/ & ! This lists the names of the allowed parameters, which must be sorted alphabetically
"ANCH1ANG ","ANCH1TEN ","ANCH2ANG ","ANCH2TEN ","ANCH3ANG ","ANCH3TEN ","ANCH4ANG ", &
"ANCH4TEN ","ANCH5ANG ","ANCH5TEN ","ANCH6ANG ","ANCH6TEN ","ANCH7ANG ","ANCH7TEN ", &
"ANCH8ANG ","ANCH8TEN ","ANCH9ANG ","ANCH9TEN ","AZIMUTH ","BLDPITCH1","BLDPITCH2", &
"BLDPITCH3","BLPITCH1 ","BLPITCH2 ","BLPITCH3 ","CTHRSTARM","CTHRSTAZM","CTHRSTRAD", &
"FAIR1ANG ","FAIR1TEN ","FAIR2ANG ","FAIR2TEN ","FAIR3ANG ","FAIR3TEN ","FAIR4ANG ", &
"FAIR4TEN ","FAIR5ANG ","FAIR5TEN ","FAIR6ANG ","FAIR6TEN ","FAIR7ANG ","FAIR7TEN ", &
"FAIR8ANG ","FAIR8TEN ","FAIR9ANG ","FAIR9TEN ","GENACCEL ","GENCP ","GENCQ ", &
"GENPWR ","GENSPEED ","GENTQ ","HORWINDV ","HORWNDDIR","HSSBRTQ ","HSSHFTA ", &
"HSSHFTCP ","HSSHFTCQ ","HSSHFTPWR","HSSHFTTQ ","HSSHFTV ","IPDEFL1 ","IPDEFL2 ", &
"IPDEFL3 ","LSSGAGA ","LSSGAGAXA","LSSGAGAXS","LSSGAGFXA","LSSGAGFXS","LSSGAGFYA", &
"LSSGAGFYS","LSSGAGFZA","LSSGAGFZS","LSSGAGMXA","LSSGAGMXS","LSSGAGMYA","LSSGAGMYS", &
"LSSGAGMZA","LSSGAGMZS","LSSGAGP ","LSSGAGPXA","LSSGAGPXS","LSSGAGV ","LSSGAGVXA", &
"LSSGAGVXS","LSSHFTCP ","LSSHFTCQ ","LSSHFTCT ","LSSHFTFXA","LSSHFTFXS","LSSHFTFYA", &
"LSSHFTFYS","LSSHFTFZA","LSSHFTFZS","LSSHFTMXA","LSSHFTMXS","LSSHFTPWR","LSSHFTTQ ", &
"LSSTIPA ","LSSTIPAXA","LSSTIPAXS","LSSTIPMYA","LSSTIPMYS","LSSTIPMZA","LSSTIPMZS", &
"LSSTIPP ","LSSTIPPXA","LSSTIPPXS","LSSTIPV ","LSSTIPVXA","LSSTIPVXS","NACYAW ", &
"NACYAWA ","NACYAWERR","NACYAWP ","NACYAWV ","NCIMURAXS","NCIMURAYS","NCIMURAZS", &
"NCIMURVXS","NCIMURVYS","NCIMURVZS","NCIMUTAXS","NCIMUTAYS","NCIMUTAZS","NCIMUTVXS", &
"NCIMUTVYS","NCIMUTVZS","OOPDEFL1 ","OOPDEFL2 ","OOPDEFL3 ","PTCHDEFL1","PTCHDEFL2", &
"PTCHDEFL3","PTCHPMZB1","PTCHPMZB2","PTCHPMZB3","PTCHPMZC1","PTCHPMZC2","PTCHPMZC3", &
"PTFMFXI ","PTFMFXT ","PTFMFYI ","PTFMFYT ","PTFMFZI ","PTFMFZT ","PTFMHEAVE", &
"PTFMMXI ","PTFMMXT ","PTFMMYI ","PTFMMYT ","PTFMMZI ","PTFMMZT ","PTFMPITCH", &
"PTFMRAXI ","PTFMRAXT ","PTFMRAYI ","PTFMRAYT ","PTFMRAZI ","PTFMRAZT ","PTFMRDXI ", &
"PTFMRDYI ","PTFMRDZI ","PTFMROLL ","PTFMRVXI ","PTFMRVXT ","PTFMRVYI ","PTFMRVYT ", &
"PTFMRVZI ","PTFMRVZT ","PTFMSURGE","PTFMSWAY ","PTFMTAXI ","PTFMTAXT ","PTFMTAYI ", &
"PTFMTAYT ","PTFMTAZI ","PTFMTAZT ","PTFMTDXI ","PTFMTDXT ","PTFMTDYI ","PTFMTDYT ", &
"PTFMTDZI ","PTFMTDZT ","PTFMTVXI ","PTFMTVXT ","PTFMTVYI ","PTFMTVYT ","PTFMTVZI ", &
"PTFMTVZT ","PTFMYAW ","QD2_B1E1 ","QD2_B1F1 ","QD2_B1F2 ","QD2_B2E1 ","QD2_B2F1 ", &
"QD2_B2F2 ","QD2_B3E1 ","QD2_B3F1 ","QD2_B3F2 ","QD2_DRTR ","QD2_GEAZ ","QD2_HV ", &
"QD2_P ","QD2_R ","QD2_RFRL ","QD2_SG ","QD2_SW ","QD2_TEET ","QD2_TFA1 ", &
"QD2_TFA2 ","QD2_TFRL ","QD2_TSS1 ","QD2_TSS2 ","QD2_Y ","QD2_YAW ","QD_B1E1 ", &
"QD_B1F1 ","QD_B1F2 ","QD_B2E1 ","QD_B2F1 ","QD_B2F2 ","QD_B3E1 ","QD_B3F1 ", &
"QD_B3F2 ","QD_DRTR ","QD_GEAZ ","QD_HV ","QD_P ","QD_R ","QD_RFRL ", &
"QD_SG ","QD_SW ","QD_TEET ","QD_TFA1 ","QD_TFA2 ","QD_TFRL ","QD_TSS1 ", &
"QD_TSS2 ","QD_Y ","QD_YAW ","Q_B1E1 ","Q_B1F1 ","Q_B1F2 ","Q_B2E1 ", &
"Q_B2F1 ","Q_B2F2 ","Q_B3E1 ","Q_B3F1 ","Q_B3F2 ","Q_DRTR ","Q_GEAZ ", &
"Q_HV ","Q_P ","Q_R ","Q_RFRL ","Q_SG ","Q_SW ","Q_TEET ", &
"Q_TFA1 ","Q_TFA2 ","Q_TFRL ","Q_TSS1 ","Q_TSS2 ","Q_Y ","Q_YAW ", &
"RFRLBRM ","ROLLDEFL1","ROLLDEFL2","ROLLDEFL3","ROOTFXB1 ","ROOTFXB2 ","ROOTFXB3 ", &
"ROOTFXC1 ","ROOTFXC2 ","ROOTFXC3 ","ROOTFYB1 ","ROOTFYB2 ","ROOTFYB3 ","ROOTFYC1 ", &
"ROOTFYC2 ","ROOTFYC3 ","ROOTFZB1 ","ROOTFZB2 ","ROOTFZB3 ","ROOTFZC1 ","ROOTFZC2 ", &
"ROOTFZC3 ","ROOTMEDG1","ROOTMEDG2","ROOTMEDG3","ROOTMFLP1","ROOTMFLP2","ROOTMFLP3", &
"ROOTMIP1 ","ROOTMIP2 ","ROOTMIP3 ","ROOTMOOP1","ROOTMOOP2","ROOTMOOP3","ROOTMXB1 ", &
"ROOTMXB2 ","ROOTMXB3 ","ROOTMXC1 ","ROOTMXC2 ","ROOTMXC3 ","ROOTMYB1 ","ROOTMYB2 ", &
"ROOTMYB3 ","ROOTMYC1 ","ROOTMYC2 ","ROOTMYC3 ","ROOTMZB1 ","ROOTMZB2 ","ROOTMZB3 ", &
"ROOTMZC1 ","ROOTMZC2 ","ROOTMZC3 ","ROTACCEL ","ROTCP ","ROTCQ ","ROTCT ", &
"ROTFURL ","ROTFURLA ","ROTFURLP ","ROTFURLV ","ROTPWR ","ROTSPEED ","ROTTEETA ", &
"ROTTEETP ","ROTTEETV ","ROTTHRUST","ROTTORQ ","SPN1ALXB1","SPN1ALXB2","SPN1ALXB3", &
"SPN1ALYB1","SPN1ALYB2","SPN1ALYB3","SPN1ALZB1","SPN1ALZB2","SPN1ALZB3","SPN1FLXB1", &
"SPN1FLXB2","SPN1FLXB3","SPN1FLYB1","SPN1FLYB2","SPN1FLYB3","SPN1FLZB1","SPN1FLZB2", &
"SPN1FLZB3","SPN1MLXB1","SPN1MLXB2","SPN1MLXB3","SPN1MLYB1","SPN1MLYB2","SPN1MLYB3", &
"SPN1MLZB1","SPN1MLZB2","SPN1MLZB3","SPN1RDXB1","SPN1RDXB2","SPN1RDXB3","SPN1RDYB1", &
"SPN1RDYB2","SPN1RDYB3","SPN1RDZB1","SPN1RDZB2","SPN1RDZB3","SPN1TDXB1","SPN1TDXB2", &
"SPN1TDXB3","SPN1TDYB1","SPN1TDYB2","SPN1TDYB3","SPN1TDZB1","SPN1TDZB2","SPN1TDZB3", &
"SPN2ALXB1","SPN2ALXB2","SPN2ALXB3","SPN2ALYB1","SPN2ALYB2","SPN2ALYB3","SPN2ALZB1", &
"SPN2ALZB2","SPN2ALZB3","SPN2FLXB1","SPN2FLXB2","SPN2FLXB3","SPN2FLYB1","SPN2FLYB2", &
"SPN2FLYB3","SPN2FLZB1","SPN2FLZB2","SPN2FLZB3","SPN2MLXB1","SPN2MLXB2","SPN2MLXB3", &
"SPN2MLYB1","SPN2MLYB2","SPN2MLYB3","SPN2MLZB1","SPN2MLZB2","SPN2MLZB3","SPN2RDXB1", &
"SPN2RDXB2","SPN2RDXB3","SPN2RDYB1","SPN2RDYB2","SPN2RDYB3","SPN2RDZB1","SPN2RDZB2", &
"SPN2RDZB3","SPN2TDXB1","SPN2TDXB2","SPN2TDXB3","SPN2TDYB1","SPN2TDYB2","SPN2TDYB3", &
"SPN2TDZB1","SPN2TDZB2","SPN2TDZB3","SPN3ALXB1","SPN3ALXB2","SPN3ALXB3","SPN3ALYB1", &
"SPN3ALYB2","SPN3ALYB3","SPN3ALZB1","SPN3ALZB2","SPN3ALZB3","SPN3FLXB1","SPN3FLXB2", &
"SPN3FLXB3","SPN3FLYB1","SPN3FLYB2","SPN3FLYB3","SPN3FLZB1","SPN3FLZB2","SPN3FLZB3", &
"SPN3MLXB1","SPN3MLXB2","SPN3MLXB3","SPN3MLYB1","SPN3MLYB2","SPN3MLYB3","SPN3MLZB1", &
"SPN3MLZB2","SPN3MLZB3","SPN3RDXB1","SPN3RDXB2","SPN3RDXB3","SPN3RDYB1","SPN3RDYB2", &
"SPN3RDYB3","SPN3RDZB1","SPN3RDZB2","SPN3RDZB3","SPN3TDXB1","SPN3TDXB2","SPN3TDXB3", &
"SPN3TDYB1","SPN3TDYB2","SPN3TDYB3","SPN3TDZB1","SPN3TDZB2","SPN3TDZB3","SPN4ALXB1", &
"SPN4ALXB2","SPN4ALXB3","SPN4ALYB1","SPN4ALYB2","SPN4ALYB3","SPN4ALZB1","SPN4ALZB2", &
"SPN4ALZB3","SPN4FLXB1","SPN4FLXB2","SPN4FLXB3","SPN4FLYB1","SPN4FLYB2","SPN4FLYB3", &
"SPN4FLZB1","SPN4FLZB2","SPN4FLZB3","SPN4MLXB1","SPN4MLXB2","SPN4MLXB3","SPN4MLYB1", &
"SPN4MLYB2","SPN4MLYB3","SPN4MLZB1","SPN4MLZB2","SPN4MLZB3","SPN4RDXB1","SPN4RDXB2", &
"SPN4RDXB3","SPN4RDYB1","SPN4RDYB2","SPN4RDYB3","SPN4RDZB1","SPN4RDZB2","SPN4RDZB3", &
"SPN4TDXB1","SPN4TDXB2","SPN4TDXB3","SPN4TDYB1","SPN4TDYB2","SPN4TDYB3","SPN4TDZB1", &
"SPN4TDZB2","SPN4TDZB3","SPN5ALXB1","SPN5ALXB2","SPN5ALXB3","SPN5ALYB1","SPN5ALYB2", &
"SPN5ALYB3","SPN5ALZB1","SPN5ALZB2","SPN5ALZB3","SPN5FLXB1","SPN5FLXB2","SPN5FLXB3", &
"SPN5FLYB1","SPN5FLYB2","SPN5FLYB3","SPN5FLZB1","SPN5FLZB2","SPN5FLZB3","SPN5MLXB1", &
"SPN5MLXB2","SPN5MLXB3","SPN5MLYB1","SPN5MLYB2","SPN5MLYB3","SPN5MLZB1","SPN5MLZB2", &
"SPN5MLZB3","SPN5RDXB1","SPN5RDXB2","SPN5RDXB3","SPN5RDYB1","SPN5RDYB2","SPN5RDYB3", &
"SPN5RDZB1","SPN5RDZB2","SPN5RDZB3","SPN5TDXB1","SPN5TDXB2","SPN5TDXB3","SPN5TDYB1", &
"SPN5TDYB2","SPN5TDYB3","SPN5TDZB1","SPN5TDZB2","SPN5TDZB3","SPN6ALXB1","SPN6ALXB2", &
"SPN6ALXB3","SPN6ALYB1","SPN6ALYB2","SPN6ALYB3","SPN6ALZB1","SPN6ALZB2","SPN6ALZB3", &
"SPN6FLXB1","SPN6FLXB2","SPN6FLXB3","SPN6FLYB1","SPN6FLYB2","SPN6FLYB3","SPN6FLZB1", &
"SPN6FLZB2","SPN6FLZB3","SPN6MLXB1","SPN6MLXB2","SPN6MLXB3","SPN6MLYB1","SPN6MLYB2", &
"SPN6MLYB3","SPN6MLZB1","SPN6MLZB2","SPN6MLZB3","SPN6RDXB1","SPN6RDXB2","SPN6RDXB3", &
"SPN6RDYB1","SPN6RDYB2","SPN6RDYB3","SPN6RDZB1","SPN6RDZB2","SPN6RDZB3","SPN6TDXB1", &
"SPN6TDXB2","SPN6TDXB3","SPN6TDYB1","SPN6TDYB2","SPN6TDYB3","SPN6TDZB1","SPN6TDZB2", &
"SPN6TDZB3","SPN7ALXB1","SPN7ALXB2","SPN7ALXB3","SPN7ALYB1","SPN7ALYB2","SPN7ALYB3", &
"SPN7ALZB1","SPN7ALZB2","SPN7ALZB3","SPN7FLXB1","SPN7FLXB2","SPN7FLXB3","SPN7FLYB1", &
"SPN7FLYB2","SPN7FLYB3","SPN7FLZB1","SPN7FLZB2","SPN7FLZB3","SPN7MLXB1","SPN7MLXB2", &
"SPN7MLXB3","SPN7MLYB1","SPN7MLYB2","SPN7MLYB3","SPN7MLZB1","SPN7MLZB2","SPN7MLZB3", &
"SPN7RDXB1","SPN7RDXB2","SPN7RDXB3","SPN7RDYB1","SPN7RDYB2","SPN7RDYB3","SPN7RDZB1", &
"SPN7RDZB2","SPN7RDZB3","SPN7TDXB1","SPN7TDXB2","SPN7TDXB3","SPN7TDYB1","SPN7TDYB2", &
"SPN7TDYB3","SPN7TDZB1","SPN7TDZB2","SPN7TDZB3","SPN8ALXB1","SPN8ALXB2","SPN8ALXB3", &
"SPN8ALYB1","SPN8ALYB2","SPN8ALYB3","SPN8ALZB1","SPN8ALZB2","SPN8ALZB3","SPN8FLXB1", &
"SPN8FLXB2","SPN8FLXB3","SPN8FLYB1","SPN8FLYB2","SPN8FLYB3","SPN8FLZB1","SPN8FLZB2", &
"SPN8FLZB3","SPN8MLXB1","SPN8MLXB2","SPN8MLXB3","SPN8MLYB1","SPN8MLYB2","SPN8MLYB3", &
"SPN8MLZB1","SPN8MLZB2","SPN8MLZB3","SPN8RDXB1","SPN8RDXB2","SPN8RDXB3","SPN8RDYB1", &
"SPN8RDYB2","SPN8RDYB3","SPN8RDZB1","SPN8RDZB2","SPN8RDZB3","SPN8TDXB1","SPN8TDXB2", &
"SPN8TDXB3","SPN8TDYB1","SPN8TDYB2","SPN8TDYB3","SPN8TDZB1","SPN8TDZB2","SPN8TDZB3", &
"SPN9ALXB1","SPN9ALXB2","SPN9ALXB3","SPN9ALYB1","SPN9ALYB2","SPN9ALYB3","SPN9ALZB1", &
"SPN9ALZB2","SPN9ALZB3","SPN9FLXB1","SPN9FLXB2","SPN9FLXB3","SPN9FLYB1","SPN9FLYB2", &
"SPN9FLYB3","SPN9FLZB1","SPN9FLZB2","SPN9FLZB3","SPN9MLXB1","SPN9MLXB2","SPN9MLXB3", &
"SPN9MLYB1","SPN9MLYB2","SPN9MLYB3","SPN9MLZB1","SPN9MLZB2","SPN9MLZB3","SPN9RDXB1", &
"SPN9RDXB2","SPN9RDXB3","SPN9RDYB1","SPN9RDYB2","SPN9RDYB3","SPN9RDZB1","SPN9RDZB2", &
"SPN9RDZB3","SPN9TDXB1","SPN9TDXB2","SPN9TDXB3","SPN9TDYB1","SPN9TDYB2","SPN9TDYB3", &
"SPN9TDZB1","SPN9TDZB2","SPN9TDZB3","TAILFURL ","TAILFURLA","TAILFURLP","TAILFURLV", &
"TEETAYA ","TEETDEFL ","TEETPYA ","TEETVYA ","TFINALPHA","TFINCDRAG","TFINCLIFT", &
"TFINCPFX ","TFINCPFY ","TFINDNPRS","TFRLBRM ","TIP2TWR1 ","TIP2TWR2 ","TIP2TWR3 ", &
"TIPALXB1 ","TIPALXB2 ","TIPALXB3 ","TIPALYB1 ","TIPALYB2 ","TIPALYB3 ","TIPALZB1 ", &
"TIPALZB2 ","TIPALZB3 ","TIPCLRNC1","TIPCLRNC2","TIPCLRNC3","TIPDXB1 ","TIPDXB2 ", &
"TIPDXB3 ","TIPDXC1 ","TIPDXC2 ","TIPDXC3 ","TIPDYB1 ","TIPDYB2 ","TIPDYB3 ", &
"TIPDYC1 ","TIPDYC2 ","TIPDYC3 ","TIPDZB1 ","TIPDZB2 ","TIPDZB3 ","TIPDZC1 ", &
"TIPDZC2 ","TIPDZC3 ","TIPRDXB1 ","TIPRDXB2 ","TIPRDXB3 ","TIPRDYB1 ","TIPRDYB2 ", &
"TIPRDYB3 ","TIPRDZB1 ","TIPRDZB2 ","TIPRDZB3 ","TIPRDZC1 ","TIPRDZC2 ","TIPRDZC3 ", &
"TIPSPDRAT","TOTWINDV ","TSR ","TTDSPAX ","TTDSPFA ","TTDSPPTCH","TTDSPROLL", &
"TTDSPSS ","TTDSPTWST","TWHT1ALXT","TWHT1ALYT","TWHT1ALZT","TWHT1FLXT","TWHT1FLYT", &
"TWHT1FLZT","TWHT1MLXT","TWHT1MLYT","TWHT1MLZT","TWHT1RDXT","TWHT1RDYT","TWHT1RDZT", &
"TWHT1RPXI","TWHT1RPYI","TWHT1RPZI","TWHT1TDXT","TWHT1TDYT","TWHT1TDZT","TWHT1TPXI", &
"TWHT1TPYI","TWHT1TPZI","TWHT2ALXT","TWHT2ALYT","TWHT2ALZT","TWHT2FLXT","TWHT2FLYT", &
"TWHT2FLZT","TWHT2MLXT","TWHT2MLYT","TWHT2MLZT","TWHT2RDXT","TWHT2RDYT","TWHT2RDZT", &
"TWHT2RPXI","TWHT2RPYI","TWHT2RPZI","TWHT2TDXT","TWHT2TDYT","TWHT2TDZT","TWHT2TPXI", &
"TWHT2TPYI","TWHT2TPZI","TWHT3ALXT","TWHT3ALYT","TWHT3ALZT","TWHT3FLXT","TWHT3FLYT", &
"TWHT3FLZT","TWHT3MLXT","TWHT3MLYT","TWHT3MLZT","TWHT3RDXT","TWHT3RDYT","TWHT3RDZT", &
"TWHT3RPXI","TWHT3RPYI","TWHT3RPZI","TWHT3TDXT","TWHT3TDYT","TWHT3TDZT","TWHT3TPXI", &
"TWHT3TPYI","TWHT3TPZI","TWHT4ALXT","TWHT4ALYT","TWHT4ALZT","TWHT4FLXT","TWHT4FLYT", &
"TWHT4FLZT","TWHT4MLXT","TWHT4MLYT","TWHT4MLZT","TWHT4RDXT","TWHT4RDYT","TWHT4RDZT", &
"TWHT4RPXI","TWHT4RPYI","TWHT4RPZI","TWHT4TDXT","TWHT4TDYT","TWHT4TDZT","TWHT4TPXI", &
"TWHT4TPYI","TWHT4TPZI","TWHT5ALXT","TWHT5ALYT","TWHT5ALZT","TWHT5FLXT","TWHT5FLYT", &
"TWHT5FLZT","TWHT5MLXT","TWHT5MLYT","TWHT5MLZT","TWHT5RDXT","TWHT5RDYT","TWHT5RDZT", &
"TWHT5RPXI","TWHT5RPYI","TWHT5RPZI","TWHT5TDXT","TWHT5TDYT","TWHT5TDZT","TWHT5TPXI", &
"TWHT5TPYI","TWHT5TPZI","TWHT6ALXT","TWHT6ALYT","TWHT6ALZT","TWHT6FLXT","TWHT6FLYT", &
"TWHT6FLZT","TWHT6MLXT","TWHT6MLYT","TWHT6MLZT","TWHT6RDXT","TWHT6RDYT","TWHT6RDZT", &
"TWHT6RPXI","TWHT6RPYI","TWHT6RPZI","TWHT6TDXT","TWHT6TDYT","TWHT6TDZT","TWHT6TPXI", &
"TWHT6TPYI","TWHT6TPZI","TWHT7ALXT","TWHT7ALYT","TWHT7ALZT","TWHT7FLXT","TWHT7FLYT", &
"TWHT7FLZT","TWHT7MLXT","TWHT7MLYT","TWHT7MLZT","TWHT7RDXT","TWHT7RDYT","TWHT7RDZT", &
"TWHT7RPXI","TWHT7RPYI","TWHT7RPZI","TWHT7TDXT","TWHT7TDYT","TWHT7TDZT","TWHT7TPXI", &
"TWHT7TPYI","TWHT7TPZI","TWHT8ALXT","TWHT8ALYT","TWHT8ALZT","TWHT8FLXT","TWHT8FLYT", &
"TWHT8FLZT","TWHT8MLXT","TWHT8MLYT","TWHT8MLZT","TWHT8RDXT","TWHT8RDYT","TWHT8RDZT", &
"TWHT8RPXI","TWHT8RPYI","TWHT8RPZI","TWHT8TDXT","TWHT8TDYT","TWHT8TDZT","TWHT8TPXI", &
"TWHT8TPYI","TWHT8TPZI","TWHT9ALXT","TWHT9ALYT","TWHT9ALZT","TWHT9FLXT","TWHT9FLYT", &
"TWHT9FLZT","TWHT9MLXT","TWHT9MLYT","TWHT9MLZT","TWHT9RDXT","TWHT9RDYT","TWHT9RDZT", &
"TWHT9RPXI","TWHT9RPYI","TWHT9RPZI","TWHT9TDXT","TWHT9TDYT","TWHT9TDZT","TWHT9TPXI", &
"TWHT9TPYI","TWHT9TPZI","TWRBSFXT ","TWRBSFYT ","TWRBSFZT ","TWRBSMXT ","TWRBSMYT ", &
"TWRBSMZT ","TWRCLRNC1","TWRCLRNC2","TWRCLRNC3","TWSTDEFL1","TWSTDEFL2","TWSTDEFL3", &
"UWIND ","VERWNDDIR","VWIND ","WAVE1AXI ","WAVE1AYI ","WAVE1AZI ","WAVE1VXI ", &
"WAVE1VYI ","WAVE1VZI ","WAVE2AXI ","WAVE2AYI ","WAVE2AZI ","WAVE2VXI ","WAVE2VYI ", &
"WAVE2VZI ","WAVE3AXI ","WAVE3AYI ","WAVE3AZI ","WAVE3VXI ","WAVE3VYI ","WAVE3VZI ", &
"WAVE4AXI ","WAVE4AYI ","WAVE4AZI ","WAVE4VXI ","WAVE4VYI ","WAVE4VZI ","WAVE5AXI ", &
"WAVE5AYI ","WAVE5AZI ","WAVE5VXI ","WAVE5VYI ","WAVE5VZI ","WAVE6AXI ","WAVE6AYI ", &
"WAVE6AZI ","WAVE6VXI ","WAVE6VYI ","WAVE6VZI ","WAVE7AXI ","WAVE7AYI ","WAVE7AZI ", &
"WAVE7VXI ","WAVE7VYI ","WAVE7VZI ","WAVE8AXI ","WAVE8AYI ","WAVE8AZI ","WAVE8VXI ", &
"WAVE8VYI ","WAVE8VZI ","WAVE9AXI ","WAVE9AYI ","WAVE9AZI ","WAVE9VXI ","WAVE9VYI ", &
"WAVE9VZI ","WAVEELEV ","WINDVXI ","WINDVYI ","WINDVZI ","WWIND ","YAWACCEL ", &
"YAWAZN ","YAWAZP ","YAWBRFXN ","YAWBRFXP ","YAWBRFYN ","YAWBRFYP ","YAWBRFZN ", &
"YAWBRFZP ","YAWBRMXN ","YAWBRMXP ","YAWBRMYN ","YAWBRMYP ","YAWBRMZN ","YAWBRMZP ", &
"YAWBRRAXP","YAWBRRAYP","YAWBRRAZP","YAWBRRDXT","YAWBRRDYT","YAWBRRDZT","YAWBRRVXP", &
"YAWBRRVYP","YAWBRRVZP","YAWBRTAXP","YAWBRTAYP","YAWBRTAZP","YAWBRTDXP","YAWBRTDXT", &
"YAWBRTDYP","YAWBRTDYT","YAWBRTDZP","YAWBRTDZT","YAWMOM ","YAWPOS ","YAWPZN ", &
"YAWPZP ","YAWRATE ","YAWVZN ","YAWVZP "/)
INTEGER, PARAMETER :: ParamIndxAry(1110) = (/ & ! This lists the index into AllOuts(:) of the allowed parameters ValidParamAry(:)
Anch1Ang , Anch1Ten , Anch2Ang , Anch2Ten , Anch3Ang , Anch3Ten , Anch4Ang , &
Anch4Ten , Anch5Ang , Anch5Ten , Anch6Ang , Anch6Ten , Anch7Ang , Anch7Ten , &
Anch8Ang , Anch8Ten , Anch9Ang , Anch9Ten , LSSTipPxa , PtchPMzc1 , PtchPMzc2 , &
PtchPMzc3 , PtchPMzc1 , PtchPMzc2 , PtchPMzc3 , CThrstRad , CThrstAzm , CThrstRad , &
Fair1Ang , Fair1Ten , Fair2Ang , Fair2Ten , Fair3Ang , Fair3Ten , Fair4Ang , &
Fair4Ten , Fair5Ang , Fair5Ten , Fair6Ang , Fair6Ten , Fair7Ang , Fair7Ten , &
Fair8Ang , Fair8Ten , Fair9Ang , Fair9Ten , HSShftA , GenCp , GenCq , &
GenPwr , HSShftV , GenTq , HorWindV , HorWndDir , HSSBrTq , HSShftA , &
HSShftCp , HSShftCq , HSShftPwr , HSShftTq , HSShftV , TipDyc1 , TipDyc2 , &
TipDyc3 , LSSGagAxa , LSSGagAxa , LSSGagAxa , LSShftFxa , LSShftFxa , LSShftFya , &
LSShftFys , LSShftFza , LSShftFzs , LSShftMxa , LSShftMxa , LSSGagMya , LSSGagMys , &
LSSGagMza , LSSGagMzs , LSSGagPxa , LSSGagPxa , LSSGagPxa , LSSGagVxa , LSSGagVxa , &
LSSGagVxa , RotCp , RotCq , RotCt , LSShftFxa , LSShftFxa , LSShftFya , &
LSShftFys , LSShftFza , LSShftFzs , LSShftMxa , LSShftMxa , RotPwr , LSShftMxa , &
LSSTipAxa , LSSTipAxa , LSSTipAxa , LSSTipMya , LSSTipMys , LSSTipMza , LSSTipMzs , &
LSSTipPxa , LSSTipPxa , LSSTipPxa , LSSTipVxa , LSSTipVxa , LSSTipVxa , YawPzn , &
YawAzn , NacYawErr , YawPzn , YawVzn , NcIMURAxs , NcIMURAys , NcIMURAzs , &
NcIMURVxs , NcIMURVys , NcIMURVzs , NcIMUTAxs , NcIMUTAys , NcIMUTAzs , NcIMUTVxs , &
NcIMUTVys , NcIMUTVzs , TipDxc1 , TipDxc2 , TipDxc3 , TipRDyb1 , TipRDyb2 , &
TipRDyb3 , PtchPMzc1 , PtchPMzc2 , PtchPMzc3 , PtchPMzc1 , PtchPMzc2 , PtchPMzc3 , &
PtfmFxi , PtfmFxt , PtfmFyi , PtfmFyt , PtfmFzi , PtfmFzt , PtfmTDzi , &
PtfmMxi , PtfmMxt , PtfmMyi , PtfmMyt , PtfmMzi , PtfmMzt , PtfmRDyi , &
PtfmRAxi , PtfmRAxt , PtfmRAyi , PtfmRAyt , PtfmRAzi , PtfmRAzt , PtfmRDxi , &
PtfmRDyi , PtfmRDzi , PtfmRDxi , PtfmRVxi , PtfmRVxt , PtfmRVyi , PtfmRVyt , &
PtfmRVzi , PtfmRVzt , PtfmTDxi , PtfmTDyi , PtfmTAxi , PtfmTAxt , PtfmTAyi , &
PtfmTAyt , PtfmTAzi , PtfmTAzt , PtfmTDxi , PtfmTDxt , PtfmTDyi , PtfmTDyt , &
PtfmTDzi , PtfmTDzt , PtfmTVxi , PtfmTVxt , PtfmTVyi , PtfmTVyt , PtfmTVzi , &
PtfmTVzt , PtfmRDzi , QD2_B1E1 , QD2_B1F1 , QD2_B1F2 , QD2_B2E1 , QD2_B2F1 , &
QD2_B2F2 , QD2_B3E1 , QD2_B3F1 , QD2_B3F2 , QD2_DrTr , QD2_GeAz , QD2_Hv , &
QD2_P , QD2_R , QD2_RFrl , QD2_Sg , QD2_Sw , QD2_Teet , QD2_TFA1 , &
QD2_TFA2 , QD2_TFrl , QD2_TSS1 , QD2_TSS2 , QD2_Y , QD2_Yaw , QD_B1E1 , &
QD_B1F1 , QD_B1F2 , QD_B2E1 , QD_B2F1 , QD_B2F2 , QD_B3E1 , QD_B3F1 , &
QD_B3F2 , QD_DrTr , QD_GeAz , QD_Hv , QD_P , QD_R , QD_RFrl , &
QD_Sg , QD_Sw , QD_Teet , QD_TFA1 , QD_TFA2 , QD_TFrl , QD_TSS1 , &
QD_TSS2 , QD_Y , QD_Yaw , Q_B1E1 , Q_B1F1 , Q_B1F2 , Q_B2E1 , &
Q_B2F1 , Q_B2F2 , Q_B3E1 , Q_B3F1 , Q_B3F2 , Q_DrTr , Q_GeAz , &
Q_Hv , Q_P , Q_R , Q_RFrl , Q_Sg , Q_Sw , Q_Teet , &
Q_TFA1 , Q_TFA2 , Q_TFrl , Q_TSS1 , Q_TSS2 , Q_Y , Q_Yaw , &
RFrlBrM , TipRDxb1 , TipRDxb2 , TipRDxb3 , RootFxb1 , RootFxb2 , RootFxb3 , &
RootFxc1 , RootFxc2 , RootFxc3 , RootFyb1 , RootFyb2 , RootFyb3 , RootFyc1 , &
RootFyc2 , RootFyc3 , RootFzc1 , RootFzc2 , RootFzc3 , RootFzc1 , RootFzc2 , &
RootFzc3 , RootMxb1 , RootMxb2 , RootMxb3 , RootMyb1 , RootMyb2 , RootMyb3 , &
RootMxc1 , RootMxc2 , RootMxc3 , RootMyc1 , RootMyc2 , RootMyc3 , RootMxb1 , &
RootMxb2 , RootMxb3 , RootMxc1 , RootMxc2 , RootMxc3 , RootMyb1 , RootMyb2 , &
RootMyb3 , RootMyc1 , RootMyc2 , RootMyc3 , RootMzc1 , RootMzc2 , RootMzc3 , &
RootMzc1 , RootMzc2 , RootMzc3 , LSSTipAxa , RotCp , RotCq , RotCt , &
RotFurlP , RotFurlA , RotFurlP , RotFurlV , RotPwr , LSSTipVxa , TeetAya , &
TeetPya , TeetVya , LSShftFxa , LSShftMxa , Spn1ALxb1 , Spn1ALxb2 , Spn1ALxb3 , &
Spn1ALyb1 , Spn1ALyb2 , Spn1ALyb3 , Spn1ALzb1 , Spn1ALzb2 , Spn1ALzb3 , Spn1FLxb1 , &
Spn1FLxb2 , Spn1FLxb3 , Spn1FLyb1 , Spn1FLyb2 , Spn1FLyb3 , Spn1FLzb1 , Spn1FLzb2 , &
Spn1FLzb3 , Spn1MLxb1 , Spn1MLxb2 , Spn1MLxb3 , Spn1MLyb1 , Spn1MLyb2 , Spn1MLyb3 , &
Spn1MLzb1 , Spn1MLzb2 , Spn1MLzb3 , Spn1RDxb1 , Spn1RDxb2 , Spn1RDxb3 , Spn1RDyb1 , &
Spn1RDyb2 , Spn1RDyb3 , Spn1RDzb1 , Spn1RDzb2 , Spn1RDzb3 , Spn1TDxb1 , Spn1TDxb2 , &
Spn1TDxb3 , Spn1TDyb1 , Spn1TDyb2 , Spn1TDyb3 , Spn1TDzb1 , Spn1TDzb2 , Spn1TDzb3 , &
Spn2ALxb1 , Spn2ALxb2 , Spn2ALxb3 , Spn2ALyb1 , Spn2ALyb2 , Spn2ALyb3 , Spn2ALzb1 , &
Spn2ALzb2 , Spn2ALzb3 , Spn2FLxb1 , Spn2FLxb2 , Spn2FLxb3 , Spn2FLyb1 , Spn2FLyb2 , &
Spn2FLyb3 , Spn2FLzb1 , Spn2FLzb2 , Spn2FLzb3 , Spn2MLxb1 , Spn2MLxb2 , Spn2MLxb3 , &
Spn2MLyb1 , Spn2MLyb2 , Spn2MLyb3 , Spn2MLzb1 , Spn2MLzb2 , Spn2MLzb3 , Spn2RDxb1 , &
Spn2RDxb2 , Spn2RDxb3 , Spn2RDyb1 , Spn2RDyb2 , Spn2RDyb3 , Spn2RDzb1 , Spn2RDzb2 , &
Spn2RDzb3 , Spn2TDxb1 , Spn2TDxb2 , Spn2TDxb3 , Spn2TDyb1 , Spn2TDyb2 , Spn2TDyb3 , &
Spn2TDzb1 , Spn2TDzb2 , Spn2TDzb3 , Spn3ALxb1 , Spn3ALxb2 , Spn3ALxb3 , Spn3ALyb1 , &
Spn3ALyb2 , Spn3ALyb3 , Spn3ALzb1 , Spn3ALzb2 , Spn3ALzb3 , Spn3FLxb1 , Spn3FLxb2 , &
Spn3FLxb3 , Spn3FLyb1 , Spn3FLyb2 , Spn3FLyb3 , Spn3FLzb1 , Spn3FLzb2 , Spn3FLzb3 , &
Spn3MLxb1 , Spn3MLxb2 , Spn3MLxb3 , Spn3MLyb1 , Spn3MLyb2 , Spn3MLyb3 , Spn3MLzb1 , &
Spn3MLzb2 , Spn3MLzb3 , Spn3RDxb1 , Spn3RDxb2 , Spn3RDxb3 , Spn3RDyb1 , Spn3RDyb2 , &
Spn3RDyb3 , Spn3RDzb1 , Spn3RDzb2 , Spn3RDzb3 , Spn3TDxb1 , Spn3TDxb2 , Spn3TDxb3 , &
Spn3TDyb1 , Spn3TDyb2 , Spn3TDyb3 , Spn3TDzb1 , Spn3TDzb2 , Spn3TDzb3 , Spn4ALxb1 , &
Spn4ALxb2 , Spn4ALxb3 , Spn4ALyb1 , Spn4ALyb2 , Spn4ALyb3 , Spn4ALzb1 , Spn4ALzb2 , &
Spn4ALzb3 , Spn4FLxb1 , Spn4FLxb2 , Spn4FLxb3 , Spn4FLyb1 , Spn4FLyb2 , Spn4FLyb3 , &
Spn4FLzb1 , Spn4FLzb2 , Spn4FLzb3 , Spn4MLxb1 , Spn4MLxb2 , Spn4MLxb3 , Spn4MLyb1 , &
Spn4MLyb2 , Spn4MLyb3 , Spn4MLzb1 , Spn4MLzb2 , Spn4MLzb3 , Spn4RDxb1 , Spn4RDxb2 , &
Spn4RDxb3 , Spn4RDyb1 , Spn4RDyb2 , Spn4RDyb3 , Spn4RDzb1 , Spn4RDzb2 , Spn4RDzb3 , &
Spn4TDxb1 , Spn4TDxb2 , Spn4TDxb3 , Spn4TDyb1 , Spn4TDyb2 , Spn4TDyb3 , Spn4TDzb1 , &
Spn4TDzb2 , Spn4TDzb3 , Spn5ALxb1 , Spn5ALxb2 , Spn5ALxb3 , Spn5ALyb1 , Spn5ALyb2 , &
Spn5ALyb3 , Spn5ALzb1 , Spn5ALzb2 , Spn5ALzb3 , Spn5FLxb1 , Spn5FLxb2 , Spn5FLxb3 , &
Spn5FLyb1 , Spn5FLyb2 , Spn5FLyb3 , Spn5FLzb1 , Spn5FLzb2 , Spn5FLzb3 , Spn5MLxb1 , &
Spn5MLxb2 , Spn5MLxb3 , Spn5MLyb1 , Spn5MLyb2 , Spn5MLyb3 , Spn5MLzb1 , Spn5MLzb2 , &
Spn5MLzb3 , Spn5RDxb1 , Spn5RDxb2 , Spn5RDxb3 , Spn5RDyb1 , Spn5RDyb2 , Spn5RDyb3 , &
Spn5RDzb1 , Spn5RDzb2 , Spn5RDzb3 , Spn5TDxb1 , Spn5TDxb2 , Spn5TDxb3 , Spn5TDyb1 , &
Spn5TDyb2 , Spn5TDyb3 , Spn5TDzb1 , Spn5TDzb2 , Spn5TDzb3 , Spn6ALxb1 , Spn6ALxb2 , &
Spn6ALxb3 , Spn6ALyb1 , Spn6ALyb2 , Spn6ALyb3 , Spn6ALzb1 , Spn6ALzb2 , Spn6ALzb3 , &
Spn6FLxb1 , Spn6FLxb2 , Spn6FLxb3 , Spn6FLyb1 , Spn6FLyb2 , Spn6FLyb3 , Spn6FLzb1 , &
Spn6FLzb2 , Spn6FLzb3 , Spn6MLxb1 , Spn6MLxb2 , Spn6MLxb3 , Spn6MLyb1 , Spn6MLyb2 , &
Spn6MLyb3 , Spn6MLzb1 , Spn6MLzb2 , Spn6MLzb3 , Spn6RDxb1 , Spn6RDxb2 , Spn6RDxb3 , &
Spn6RDyb1 , Spn6RDyb2 , Spn6RDyb3 , Spn6RDzb1 , Spn6RDzb2 , Spn6RDzb3 , Spn6TDxb1 , &
Spn6TDxb2 , Spn6TDxb3 , Spn6TDyb1 , Spn6TDyb2 , Spn6TDyb3 , Spn6TDzb1 , Spn6TDzb2 , &
Spn6TDzb3 , Spn7ALxb1 , Spn7ALxb2 , Spn7ALxb3 , Spn7ALyb1 , Spn7ALyb2 , Spn7ALyb3 , &
Spn7ALzb1 , Spn7ALzb2 , Spn7ALzb3 , Spn7FLxb1 , Spn7FLxb2 , Spn7FLxb3 , Spn7FLyb1 , &
Spn7FLyb2 , Spn7FLyb3 , Spn7FLzb1 , Spn7FLzb2 , Spn7FLzb3 , Spn7MLxb1 , Spn7MLxb2 , &
Spn7MLxb3 , Spn7MLyb1 , Spn7MLyb2 , Spn7MLyb3 , Spn7MLzb1 , Spn7MLzb2 , Spn7MLzb3 , &
Spn7RDxb1 , Spn7RDxb2 , Spn7RDxb3 , Spn7RDyb1 , Spn7RDyb2 , Spn7RDyb3 , Spn7RDzb1 , &
Spn7RDzb2 , Spn7RDzb3 , Spn7TDxb1 , Spn7TDxb2 , Spn7TDxb3 , Spn7TDyb1 , Spn7TDyb2 , &
Spn7TDyb3 , Spn7TDzb1 , Spn7TDzb2 , Spn7TDzb3 , Spn8ALxb1 , Spn8ALxb2 , Spn8ALxb3 , &
Spn8ALyb1 , Spn8ALyb2 , Spn8ALyb3 , Spn8ALzb1 , Spn8ALzb2 , Spn8ALzb3 , Spn8FLxb1 , &
Spn8FLxb2 , Spn8FLxb3 , Spn8FLyb1 , Spn8FLyb2 , Spn8FLyb3 , Spn8FLzb1 , Spn8FLzb2 , &
Spn8FLzb3 , Spn8MLxb1 , Spn8MLxb2 , Spn8MLxb3 , Spn8MLyb1 , Spn8MLyb2 , Spn8MLyb3 , &
Spn8MLzb1 , Spn8MLzb2 , Spn8MLzb3 , Spn8RDxb1 , Spn8RDxb2 , Spn8RDxb3 , Spn8RDyb1 , &
Spn8RDyb2 , Spn8RDyb3 , Spn8RDzb1 , Spn8RDzb2 , Spn8RDzb3 , Spn8TDxb1 , Spn8TDxb2 , &
Spn8TDxb3 , Spn8TDyb1 , Spn8TDyb2 , Spn8TDyb3 , Spn8TDzb1 , Spn8TDzb2 , Spn8TDzb3 , &
Spn9ALxb1 , Spn9ALxb2 , Spn9ALxb3 , Spn9ALyb1 , Spn9ALyb2 , Spn9ALyb3 , Spn9ALzb1 , &
Spn9ALzb2 , Spn9ALzb3 , Spn9FLxb1 , Spn9FLxb2 , Spn9FLxb3 , Spn9FLyb1 , Spn9FLyb2 , &
Spn9FLyb3 , Spn9FLzb1 , Spn9FLzb2 , Spn9FLzb3 , Spn9MLxb1 , Spn9MLxb2 , Spn9MLxb3 , &
Spn9MLyb1 , Spn9MLyb2 , Spn9MLyb3 , Spn9MLzb1 , Spn9MLzb2 , Spn9MLzb3 , Spn9RDxb1 , &
Spn9RDxb2 , Spn9RDxb3 , Spn9RDyb1 , Spn9RDyb2 , Spn9RDyb3 , Spn9RDzb1 , Spn9RDzb2 , &
Spn9RDzb3 , Spn9TDxb1 , Spn9TDxb2 , Spn9TDxb3 , Spn9TDyb1 , Spn9TDyb2 , Spn9TDyb3 , &
Spn9TDzb1 , Spn9TDzb2 , Spn9TDzb3 , TailFurlP , TailFurlA , TailFurlP , TailFurlV , &
TeetAya , TeetPya , TeetPya , TeetVya , TFinAlpha , TFinCDrag , TFinCLift , &
TFinCPFx , TFinCPFy , TFinDnPrs , TFrlBrM , TipClrnc1 , TipClrnc2 , TipClrnc3 , &
TipALxb1 , TipALxb2 , TipALxb3 , TipALyb1 , TipALyb2 , TipALyb3 , TipALzb1 , &
TipALzb2 , TipALzb3 , TipClrnc1 , TipClrnc2 , TipClrnc3 , TipDxb1 , TipDxb2 , &
TipDxb3 , TipDxc1 , TipDxc2 , TipDxc3 , TipDyb1 , TipDyb2 , TipDyb3 , &
TipDyc1 , TipDyc2 , TipDyc3 , TipDzc1 , TipDzc2 , TipDzc3 , TipDzc1 , &
TipDzc2 , TipDzc3 , TipRDxb1 , TipRDxb2 , TipRDxb3 , TipRDyb1 , TipRDyb2 , &
TipRDyb3 , TipRDzc1 , TipRDzc2 , TipRDzc3 , TipRDzc1 , TipRDzc2 , TipRDzc3 , &
TipSpdRat , TotWindV , TipSpdRat , YawBrTDzt , YawBrTDxt , YawBrRDyt , YawBrRDxt , &
YawBrTDyt , YawBrRDzt , TwHt1ALxt , TwHt1ALyt , TwHt1ALzt , TwHt1FLxt , TwHt1FLyt , &
TwHt1FLzt , TwHt1MLxt , TwHt1MLyt , TwHt1MLzt , TwHt1RDxt , TwHt1RDyt , TwHt1RDzt , &
TwHt1RPxi , TwHt1RPyi , TwHt1RPzi , TwHt1TDxt , TwHt1TDyt , TwHt1TDzt , TwHt1TPxi , &
TwHt1TPyi , TwHt1TPzi , TwHt2ALxt , TwHt2ALyt , TwHt2ALzt , TwHt2FLxt , TwHt2FLyt , &
TwHt2FLzt , TwHt2MLxt , TwHt2MLyt , TwHt2MLzt , TwHt2RDxt , TwHt2RDyt , TwHt2RDzt , &
TwHt2RPxi , TwHt2RPyi , TwHt2RPzi , TwHt2TDxt , TwHt2TDyt , TwHt2TDzt , TwHt2TPxi , &
TwHt2TPyi , TwHt2TPzi , TwHt3ALxt , TwHt3ALyt , TwHt3ALzt , TwHt3FLxt , TwHt3FLyt , &
TwHt3FLzt , TwHt3MLxt , TwHt3MLyt , TwHt3MLzt , TwHt3RDxt , TwHt3RDyt , TwHt3RDzt , &
TwHt3RPxi , TwHt3RPyi , TwHt3RPzi , TwHt3TDxt , TwHt3TDyt , TwHt3TDzt , TwHt3TPxi , &
TwHt3TPyi , TwHt3TPzi , TwHt4ALxt , TwHt4ALyt , TwHt4ALzt , TwHt4FLxt , TwHt4FLyt , &
TwHt4FLzt , TwHt4MLxt , TwHt4MLyt , TwHt4MLzt , TwHt4RDxt , TwHt4RDyt , TwHt4RDzt , &
TwHt4RPxi , TwHt4RPyi , TwHt4RPzi , TwHt4TDxt , TwHt4TDyt , TwHt4TDzt , TwHt4TPxi , &
TwHt4TPyi , TwHt4TPzi , TwHt5ALxt , TwHt5ALyt , TwHt5ALzt , TwHt5FLxt , TwHt5FLyt , &
TwHt5FLzt , TwHt5MLxt , TwHt5MLyt , TwHt5MLzt , TwHt5RDxt , TwHt5RDyt , TwHt5RDzt , &
TwHt5RPxi , TwHt5RPyi , TwHt5RPzi , TwHt5TDxt , TwHt5TDyt , TwHt5TDzt , TwHt5TPxi , &
TwHt5TPyi , TwHt5TPzi , TwHt6ALxt , TwHt6ALyt , TwHt6ALzt , TwHt6FLxt , TwHt6FLyt , &
TwHt6FLzt , TwHt6MLxt , TwHt6MLyt , TwHt6MLzt , TwHt6RDxt , TwHt6RDyt , TwHt6RDzt , &
TwHt6RPxi , TwHt6RPyi , TwHt6RPzi , TwHt6TDxt , TwHt6TDyt , TwHt6TDzt , TwHt6TPxi , &
TwHt6TPyi , TwHt6TPzi , TwHt7ALxt , TwHt7ALyt , TwHt7ALzt , TwHt7FLxt , TwHt7FLyt , &
TwHt7FLzt , TwHt7MLxt , TwHt7MLyt , TwHt7MLzt , TwHt7RDxt , TwHt7RDyt , TwHt7RDzt , &
TwHt7RPxi , TwHt7RPyi , TwHt7RPzi , TwHt7TDxt , TwHt7TDyt , TwHt7TDzt , TwHt7TPxi , &
TwHt7TPyi , TwHt7TPzi , TwHt8ALxt , TwHt8ALyt , TwHt8ALzt , TwHt8FLxt , TwHt8FLyt , &
TwHt8FLzt , TwHt8MLxt , TwHt8MLyt , TwHt8MLzt , TwHt8RDxt , TwHt8RDyt , TwHt8RDzt , &
TwHt8RPxi , TwHt8RPyi , TwHt8RPzi , TwHt8TDxt , TwHt8TDyt , TwHt8TDzt , TwHt8TPxi , &
TwHt8TPyi , TwHt8TPzi , TwHt9ALxt , TwHt9ALyt , TwHt9ALzt , TwHt9FLxt , TwHt9FLyt , &
TwHt9FLzt , TwHt9MLxt , TwHt9MLyt , TwHt9MLzt , TwHt9RDxt , TwHt9RDyt , TwHt9RDzt , &
TwHt9RPxi , TwHt9RPyi , TwHt9RPzi , TwHt9TDxt , TwHt9TDyt , TwHt9TDzt , TwHt9TPxi , &
TwHt9TPyi , TwHt9TPzi , TwrBsFxt , TwrBsFyt , TwrBsFzt , TwrBsMxt , TwrBsMyt , &
TwrBsMzt , TipClrnc1 , TipClrnc2 , TipClrnc3 , TipRDzc1 , TipRDzc2 , TipRDzc3 , &
WindVxi , VerWndDir , WindVyi , Wave1Axi , Wave1Ayi , Wave1Azi , Wave1Vxi , &
Wave1Vyi , Wave1Vzi , Wave2Axi , Wave2Ayi , Wave2Azi , Wave2Vxi , Wave2Vyi , &
Wave2Vzi , Wave3Axi , Wave3Ayi , Wave3Azi , Wave3Vxi , Wave3Vyi , Wave3Vzi , &
Wave4Axi , Wave4Ayi , Wave4Azi , Wave4Vxi , Wave4Vyi , Wave4Vzi , Wave5Axi , &
Wave5Ayi , Wave5Azi , Wave5Vxi , Wave5Vyi , Wave5Vzi , Wave6Axi , Wave6Ayi , &
Wave6Azi , Wave6Vxi , Wave6Vyi , Wave6Vzi , Wave7Axi , Wave7Ayi , Wave7Azi , &
Wave7Vxi , Wave7Vyi , Wave7Vzi , Wave8Axi , Wave8Ayi , Wave8Azi , Wave8Vxi , &
Wave8Vyi , Wave8Vzi , Wave9Axi , Wave9Ayi , Wave9Azi , Wave9Vxi , Wave9Vyi , &
Wave9Vzi , WaveElev , WindVxi , WindVyi , WindVzi , WindVzi , YawAzn , &
YawAzn , YawAzn , YawBrFxn , YawBrFxp , YawBrFyn , YawBrFyp , YawBrFzn , &
YawBrFzn , YawBrMxn , YawBrMxp , YawBrMyn , YawBrMyp , YawBrMzn , YawBrMzn , &
YawBrRAxp , YawBrRAyp , YawBrRAzp , YawBrRDxt , YawBrRDyt , YawBrRDzt , YawBrRVxp , &
YawBrRVyp , YawBrRVzp , YawBrTAxp , YawBrTAyp , YawBrTAzp , YawBrTDxp , YawBrTDxt , &
YawBrTDyp , YawBrTDyt , YawBrTDzp , YawBrTDzt , YawBrMzn , YawPzn , YawPzn , &
YawPzn , YawVzn , YawVzn , YawVzn /)
CHARACTER(10),PARAMETER :: ParamUnitsAry(1110) = (/ & ! This lists the units corresponding to the allowed parameters
"(deg) ","(kN) ","(deg) ","(kN) ","(deg) ","(kN) ","(deg) ", &
"(kN) ","(deg) ","(kN) ","(deg) ","(kN) ","(deg) ","(kN) ", &
"(deg) ","(kN) ","(deg) ","(kN) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(-) ","(deg) ","(-) ", &
"(deg) ","(kN) ","(deg) ","(kN) ","(deg) ","(kN) ","(deg) ", &
"(kN) ","(deg) ","(kN) ","(deg) ","(kN) ","(deg) ","(kN) ", &
"(deg) ","(kN) ","(deg) ","(kN) ","(deg/s^2) ","(-) ","(-) ", &
"(kW) ","(rpm) ","(kN·m) ","(m/s) ","(deg) ","(kN·m) ","(deg/s^2) ", &
"(-) ","(-) ","(kW) ","(kN·m) ","(rpm) ","(m) ","(m) ", &
"(m) ","(deg/s^2) ","(deg/s^2) ","(deg/s^2) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ","(rpm) ","(rpm) ", &
"(rpm) ","(-) ","(-) ","(-) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN·m) ","(kN·m) ","(kW) ","(kN·m) ", &
"(deg/s^2) ","(deg/s^2) ","(deg/s^2) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(deg) ","(deg) ","(deg) ","(rpm) ","(rpm) ","(rpm) ","(deg) ", &
"(deg/s^2) ","(deg) ","(deg) ","(deg/s) ","(deg/s^2) ","(deg/s^2) ","(deg/s^2) ", &
"(deg/s) ","(deg/s) ","(deg/s) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s) ", &
"(m/s) ","(m/s) ","(m) ","(m) ","(m) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ", &
"(deg/s^2) ","(deg/s^2) ","(deg/s^2) ","(deg/s^2) ","(deg/s^2) ","(deg/s^2) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg/s) ","(deg/s) ","(deg/s) ","(deg/s) ", &
"(deg/s) ","(deg/s) ","(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m/s) ","(m/s) ","(m/s) ","(m/s) ","(m/s) ", &
"(m/s) ","(deg) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(rad/s^2) ","(rad/s^2) ","(m/s^2) ", &
"(rad/s^2) ","(rad/s^2) ","(rad/s^2) ","(m/s^2) ","(m/s^2) ","(rad/s^2) ","(m/s^2) ", &
"(m/s^2) ","(rad/s^2) ","(m/s^2) ","(m/s^2) ","(rad/s^2) ","(rad/s^2) ","(m/s) ", &
"(m/s) ","(m/s) ","(m/s) ","(m/s) ","(m/s) ","(m/s) ","(m/s) ", &
"(m/s) ","(rad/s) ","(rad/s) ","(m/s) ","(rad/s) ","(rad/s) ","(rad/s) ", &
"(m/s) ","(m/s) ","(rad/s) ","(m/s) ","(m/s) ","(rad/s) ","(m/s) ", &
"(m/s) ","(rad/s) ","(rad/s) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(m) ","(m) ","(rad) ","(rad) ", &
"(m) ","(rad) ","(rad) ","(rad) ","(m) ","(m) ","(rad) ", &
"(m) ","(m) ","(rad) ","(m) ","(m) ","(rad) ","(rad) ", &
"(kN·m) ","(deg) ","(deg) ","(deg) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(deg/s^2) ","(-) ","(-) ","(-) ", &
"(deg) ","(deg/s^2) ","(deg) ","(deg/s) ","(kW) ","(rpm) ","(deg/s^2) ", &
"(deg) ","(deg/s) ","(kN) ","(kN·m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(m) ","(m) ","(m) ","(m) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(m) ","(m) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(m) ","(m) ","(m) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(m) ","(m) ","(m) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(m) ","(m) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(m) ", &
"(m) ","(m) ","(m) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(m) ","(m) ","(m) ","(m) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN) ","(kN) ","(kN) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(m) ","(m) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(deg) ","(deg/s^2) ","(deg) ","(deg/s) ", &
"(deg/s^2) ","(deg) ","(deg) ","(deg/s) ","(deg) ","(-) ","(-) ", &
"(kN) ","(kN) ","(Pa) ","(kN·m) ","(m) ","(m) ","(m) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ","(deg) ", &
"(-) ","(m/s) ","(-) ","(m) ","(m) ","(deg) ","(deg) ", &
"(m) ","(deg) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(deg) ","(deg) ","(deg) ", &
"(deg) ","(deg) ","(deg) ","(m) ","(m) ","(m) ","(m) ", &
"(m) ","(m) ","(kN) ","(kN) ","(kN) ","(kN·m) ","(kN·m) ", &
"(kN·m) ","(m) ","(m) ","(m) ","(deg) ","(deg) ","(deg) ", &
"(m/s) ","(deg) ","(m/s) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s) ", &
"(m/s) ","(m/s) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s) ","(m/s) ", &
"(m/s) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s) ","(m/s) ","(m/s) ", &
"(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s) ","(m/s) ","(m/s) ","(m/s^2) ", &
"(m/s^2) ","(m/s^2) ","(m/s) ","(m/s) ","(m/s) ","(m/s^2) ","(m/s^2) ", &
"(m/s^2) ","(m/s) ","(m/s) ","(m/s) ","(m/s^2) ","(m/s^2) ","(m/s^2) ", &
"(m/s) ","(m/s) ","(m/s) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s) ", &
"(m/s) ","(m/s) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m/s) ","(m/s) ", &
"(m/s) ","(m) ","(m/s) ","(m/s) ","(m/s) ","(m/s) ","(deg/s^2) ", &
"(deg/s^2) ","(deg/s^2) ","(kN) ","(kN) ","(kN) ","(kN) ","(kN) ", &
"(kN) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ","(kN·m) ", &
"(deg/s^2) ","(deg/s^2) ","(deg/s^2) ","(deg) ","(deg) ","(deg) ","(deg/s) ", &
"(deg/s) ","(deg/s) ","(m/s^2) ","(m/s^2) ","(m/s^2) ","(m) ","(m) ", &
"(m) ","(m) ","(m) ","(m) ","(kN·m) ","(deg) ","(deg) ", &
"(deg) ","(deg/s) ","(deg/s) ","(deg/s) "/)
LOGICAL :: InvalidOutput(0:MaxOutPts) ! This array determines if the output channel is valid for this configuration
InvalidOutput = .FALSE.
InvalidOutput( Fair1Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 1 ) )
InvalidOutput( Fair1Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 1 ) )
InvalidOutput( Anch1Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 1 ) )
InvalidOutput( Anch1Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 1 ) )
InvalidOutput( Fair2Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 2 ) )
InvalidOutput( Fair2Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 2 ) )
InvalidOutput( Anch2Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 2 ) )
InvalidOutput( Anch2Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 2 ) )
InvalidOutput( Fair3Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 3 ) )
InvalidOutput( Fair3Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 3 ) )
InvalidOutput( Anch3Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 3 ) )
InvalidOutput( Anch3Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 3 ) )
InvalidOutput( Fair4Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 4 ) )
InvalidOutput( Fair4Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 4 ) )
InvalidOutput( Anch4Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 4 ) )
InvalidOutput( Anch4Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 4 ) )
InvalidOutput( Fair5Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 5 ) )
InvalidOutput( Fair5Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 5 ) )
InvalidOutput( Anch5Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 5 ) )
InvalidOutput( Anch5Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 5 ) )
InvalidOutput( Fair6Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 6 ) )
InvalidOutput( Fair6Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 6 ) )
InvalidOutput( Anch6Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 6 ) )
InvalidOutput( Anch6Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 6 ) )
InvalidOutput( Fair7Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 7 ) )
InvalidOutput( Fair7Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 7 ) )
InvalidOutput( Anch7Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 7 ) )
InvalidOutput( Anch7Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 7 ) )
InvalidOutput( Fair8Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 8 ) )
InvalidOutput( Fair8Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 8 ) )
InvalidOutput( Anch8Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 8 ) )
InvalidOutput( Anch8Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 8 ) )
InvalidOutput( Fair9Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 9 ) )
InvalidOutput( Fair9Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 9 ) )
InvalidOutput( Anch9Ten) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 9 ) )
InvalidOutput( Anch9Ang) = ( ( .NOT. CompHydro ) .OR. ( NumLines < 9 ) )
InvalidOutput( WaveElev) = ( .NOT. CompHydro )
InvalidOutput( Wave1Vxi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 1 ) )
InvalidOutput( Wave1Vyi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 1 ) )
InvalidOutput( Wave1Vzi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 1 ) )
InvalidOutput( Wave1Axi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 1 ) )
InvalidOutput( Wave1Ayi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 1 ) )
InvalidOutput( Wave1Azi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 1 ) )
InvalidOutput( Wave2Vxi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 2 ) )
InvalidOutput( Wave2Vyi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 2 ) )
InvalidOutput( Wave2Vzi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 2 ) )
InvalidOutput( Wave2Axi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 2 ) )
InvalidOutput( Wave2Ayi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 2 ) )
InvalidOutput( Wave2Azi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 2 ) )
InvalidOutput( Wave3Vxi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 3 ) )
InvalidOutput( Wave3Vyi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 3 ) )
InvalidOutput( Wave3Vzi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 3 ) )
InvalidOutput( Wave3Axi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 3 ) )
InvalidOutput( Wave3Ayi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 3 ) )
InvalidOutput( Wave3Azi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 3 ) )
InvalidOutput( Wave4Vxi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 4 ) )
InvalidOutput( Wave4Vyi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 4 ) )
InvalidOutput( Wave4Vzi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 4 ) )
InvalidOutput( Wave4Axi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 4 ) )
InvalidOutput( Wave4Ayi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 4 ) )
InvalidOutput( Wave4Azi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 4 ) )
InvalidOutput( Wave5Vxi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 5 ) )
InvalidOutput( Wave5Vyi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 5 ) )
InvalidOutput( Wave5Vzi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 5 ) )
InvalidOutput( Wave5Axi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 5 ) )
InvalidOutput( Wave5Ayi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 5 ) )
InvalidOutput( Wave5Azi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 5 ) )
InvalidOutput( Wave6Vxi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 6 ) )
InvalidOutput( Wave6Vyi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 6 ) )
InvalidOutput( Wave6Vzi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 6 ) )
InvalidOutput( Wave6Axi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 6 ) )
InvalidOutput( Wave6Ayi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 6 ) )
InvalidOutput( Wave6Azi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 6 ) )
InvalidOutput( Wave7Vxi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 7 ) )
InvalidOutput( Wave7Vyi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 7 ) )
InvalidOutput( Wave7Vzi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 7 ) )
InvalidOutput( Wave7Axi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 7 ) )
InvalidOutput( Wave7Ayi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 7 ) )
InvalidOutput( Wave7Azi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 7 ) )
InvalidOutput( Wave8Vxi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 8 ) )
InvalidOutput( Wave8Vyi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 8 ) )
InvalidOutput( Wave8Vzi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 8 ) )
InvalidOutput( Wave8Axi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 8 ) )
InvalidOutput( Wave8Ayi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 8 ) )
InvalidOutput( Wave8Azi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 8 ) )
InvalidOutput( Wave9Vxi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 9 ) )
InvalidOutput( Wave9Vyi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 9 ) )
InvalidOutput( Wave9Vzi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 9 ) )
InvalidOutput( Wave9Axi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 9 ) )
InvalidOutput( Wave9Ayi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 9 ) )
InvalidOutput( Wave9Azi) = ( ( .NOT. CompHydro ) .OR. ( NWaveKin < 9 ) )
!End of code generated by Matlab script
!BJJ: THE FOLLOWING USED TO BE PART OF THE SCRIPT, BUT I REWROTE IT TO BE MORE EFFICIENT
IF ( .NOT. CompAero ) THEN
InvalidOutput( WindVxi) = .TRUE.
InvalidOutput( WindVyi) = .TRUE.
InvalidOutput( WindVzi) = .TRUE.
InvalidOutput( TotWindV) = .TRUE.
InvalidOutput( HorWindV) = .TRUE.
InvalidOutput(HorWndDir) = .TRUE.
InvalidOutput(VerWndDir) = .TRUE.
InvalidOutput(TipSpdRat) = .TRUE.
InvalidOutput(NacYawErr) = .TRUE.
InvalidOutput( RotCq) = .TRUE.
InvalidOutput( RotCp) = .TRUE.
InvalidOutput( RotCt) = .TRUE.
InvalidOutput( HSShftCq) = .TRUE.
InvalidOutput( HSShftCp) = .TRUE.
InvalidOutput( GenCq) = .TRUE.
InvalidOutput( GenCp) = .TRUE.
InvalidOutput(TFinAlpha) = .TRUE.
InvalidOutput(TFinCLift) = .TRUE.
InvalidOutput(TFinCDrag) = .TRUE.
InvalidOutput(TFinDnPrs) = .TRUE.
InvalidOutput( TFinCPFx) = .TRUE.
InvalidOutput( TFinCPFy) = .TRUE.
END IF
DO I = NumBl+1,3 ! invalid blades
! motions
InvalidOutput( TipDxc( I) ) = .TRUE.
InvalidOutput( TipDyc( I) ) = .TRUE.
InvalidOutput( TipDzc( I) ) = .TRUE.
InvalidOutput( TipDxb( I) ) = .TRUE.
InvalidOutput( TipDyb( I) ) = .TRUE.
InvalidOutput( TipALxb( I) ) = .TRUE.
InvalidOutput( TipALyb( I) ) = .TRUE.
InvalidOutput( TipALzb( I) ) = .TRUE.
InvalidOutput( TipRDxb( I) ) = .TRUE.
InvalidOutput( TipRDyb( I) ) = .TRUE.
InvalidOutput( TipRDzc( I) ) = .TRUE.
InvalidOutput( TipClrnc( I) ) = .TRUE.
! loads
InvalidOutput( RootFxc( I) ) = .TRUE.
InvalidOutput( RootFyc( I) ) = .TRUE.
InvalidOutput( RootFzc( I) ) = .TRUE.
InvalidOutput( RootFxb( I) ) = .TRUE.
InvalidOutput( RootFyb( I) ) = .TRUE.
InvalidOutput( RootMxc( I) ) = .TRUE.
InvalidOutput( RootMyc( I) ) = .TRUE.
InvalidOutput( RootMzc( I) ) = .TRUE.
InvalidOutput( RootMxb( I) ) = .TRUE.
InvalidOutput( RootMyb( I) ) = .TRUE.
! Blade node motions
InvalidOutput( SpnALxb(:,I) ) = .TRUE.
InvalidOutput( SpnALyb(:,I) ) = .TRUE.
InvalidOutput( SpnALzb(:,I) ) = .TRUE.
InvalidOutput( SpnTDxb(:,I) ) = .TRUE.
InvalidOutput( SpnTDyb(:,I) ) = .TRUE.
InvalidOutput( SpnTDzb(:,I) ) = .TRUE.
InvalidOutput( SpnRDxb(:,I) ) = .TRUE.
InvalidOutput( SpnRDyb(:,I) ) = .TRUE.
InvalidOutput( SpnRDzb(:,I) ) = .TRUE.
! Blade node loads
InvalidOutput( SpnMLxb(:,I) ) = .TRUE.
InvalidOutput( SpnMLyb(:,I) ) = .TRUE.
InvalidOutput( SpnMLzb(:,I) ) = .TRUE.
InvalidOutput( SpnFLxb(:,I) ) = .TRUE.
InvalidOutput( SpnFLyb(:,I) ) = .TRUE.
InvalidOutput( SpnFLzb(:,I) ) = .TRUE.
END DO
DO I = 1,NumBl
DO J = NBlGages+1,9 ! valid blade gages
InvalidOutput( SpnALxb(J,I) ) = .TRUE.
InvalidOutput( SpnALyb(J,I) ) = .TRUE.
InvalidOutput( SpnALzb(J,I) ) = .TRUE.
InvalidOutput( SpnTDxb(J,I) ) = .TRUE.
InvalidOutput( SpnTDyb(J,I) ) = .TRUE.
InvalidOutput( SpnTDzb(J,I) ) = .TRUE.
InvalidOutput( SpnRDxb(J,I) ) = .TRUE.
InvalidOutput( SpnRDyb(J,I) ) = .TRUE.
InvalidOutput( SpnRDzb(J,I) ) = .TRUE.
!loads
InvalidOutput( SpnMLxb(J,I) ) = .TRUE.
InvalidOutput( SpnMLyb(J,I) ) = .TRUE.
InvalidOutput( SpnMLzb(J,I) ) = .TRUE.
InvalidOutput( SpnFLxb(J,I) ) = .TRUE.
InvalidOutput( SpnFLyb(J,I) ) = .TRUE.
InvalidOutput( SpnFLzb(J,I) ) = .TRUE.
END DO !J
END DO !I
DO J = NTwGages+1,9 !Invalid tower gages
! Motions
InvalidOutput( TwHtALxt(J) ) = .TRUE.
InvalidOutput( TwHtALyt(J) ) = .TRUE.
InvalidOutput( TwHtALzt(J) ) = .TRUE.
InvalidOutput( TwHtTDxt(J) ) = .TRUE.
InvalidOutput( TwHtTDyt(J) ) = .TRUE.
InvalidOutput( TwHtTDzt(J) ) = .TRUE.
InvalidOutput( TwHtRDxt(J) ) = .TRUE.
InvalidOutput( TwHtRDyt(J) ) = .TRUE.
InvalidOutput( TwHtRDzt(J) ) = .TRUE.
InvalidOutput( TwHtTPxi(J) ) = .TRUE.
InvalidOutput( TwHtTPyi(J) ) = .TRUE.
InvalidOutput( TwHtTPzi(J) ) = .TRUE.
InvalidOutput( TwHtRPxi(J) ) = .TRUE.
InvalidOutput( TwHtRPyi(J) ) = .TRUE.
InvalidOutput( TwHtRPzi(J) ) = .TRUE.
! Loads
InvalidOutput( TwHtMLxt(J) ) = .TRUE.
InvalidOutput( TwHtMLyt(J) ) = .TRUE.
InvalidOutput( TwHtMLzt(J) ) = .TRUE.
InvalidOutput( TwHtFLxt(J) ) = .TRUE.
InvalidOutput( TwHtFLyt(J) ) = .TRUE.
InvalidOutput( TwHtFLzt(J) ) = .TRUE.
END DO
IF ( NumBl < 3 ) THEN
InvalidOutput(PtchPMzc3) = .TRUE.
InvalidOutput( Q_B3E1) = .TRUE.
InvalidOutput( Q_B3F1) = .TRUE.
InvalidOutput( Q_B3F2) = .TRUE.
InvalidOutput( QD_B3E1) = .TRUE.
InvalidOutput( QD_B3F1) = .TRUE.
InvalidOutput( QD_B3F2) = .TRUE.
InvalidOutput( QD2_B3E1) = .TRUE.
InvalidOutput( QD2_B3F1) = .TRUE.
InvalidOutput( QD2_B3F2) = .TRUE.
ELSE IF ( NumBl > 2 ) THEN
InvalidOutput( TeetPya) = .TRUE.
InvalidOutput( TeetVya) = .TRUE.
InvalidOutput( TeetAya) = .TRUE.
InvalidOutput( Q_Teet) = .TRUE.
InvalidOutput( QD_Teet) = .TRUE.
InvalidOutput( QD2_Teet) = .TRUE.
END IF
!bjj: should we first check that NumOuts is a valid number (or at least initialize it somewhere)?
! ALLOCATE some arrays:
ALLOCATE ( OutData(0:NumOuts) , STAT=Sttus )
IF ( Sttus /= 0 ) THEN
CALL ProgAbort ( ' Error allocating memory for the OutData array.' )
ENDIF
ALLOCATE ( OutParam(0:NumOuts) , STAT=Sttus )
IF ( Sttus /= 0 ) THEN
CALL ProgAbort ( ' Error allocating memory for the OutParam array.' )
ENDIF
! Set index, name, and units for the time output channel:
OutParam(0)%Indx = Time !
OutParam(0)%Name = 'Time' ! OutData(0) is the time channel by default.
OutParam(0)%Units = '(s)' !
OutParam(0)%SignM = 1
IF ( Echo ) THEN
WRITE (UnEc,"(/, ' Col Parameter Units', /, ' --- --------- -----')")
WRITE (UnEc,OutPFmt) 0, OutParam(0)%Name, OutParam(0)%Units
ENDIF
! Set index, name, and units for all of the output channels.
! If a selected output channel is not available by FAST, ProgAbort.
DO I = 1,NumOuts
OutParam(I)%Name = OutList(I)
OutListTmp = OutList(I)
! Reverse the sign (+/-) of the output channel if the user prefixed the
! channel name with a '-', '_', 'm', or 'M' character indicating "minus".
! NOTE: If, in the future, any output channel is named with a character
! beginning with 'm' (or 'M'), this simple code will have to be made
! a lot more complex! (bjj: see HydroDyn's code to figure out how to fix this!!!)
! SEE NOTE ABOVE ON THIS IF...THEN STATEMENT BELOW:
IF ( INDEX( 'mM-_', OutListTmp(1:1) ) > 0 ) THEN
! SEE NOTE ABOVE ON THIS IF...THEN STATEMENT ABOVE:
OutParam(I)%SignM = -1 ! ex, '-TipDxc1' causes the sign of TipDxc1 to be switched.
OutListTmp = OutListTmp(2:)
ELSE
OutParam(I)%SignM = 1
END IF