-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBooks.py
3181 lines (2809 loc) · 133 KB
/
Books.py
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
# -*- coding: utf-8 -*-
from xlpython import *
import numpy
#import openpyxl
"""
Created on 10-11-2015
# Функции к EXCELL
@author: Volovikov
"""
"""
Список литературы:
0. Различные справочники и справочные данные
1. Каталог трубчатые печи
2. РТМ 26-02-67-84 Методика расчета на прочность элементов печей
3. РТМ 26-02-40-77 Тепловой расчет трубчатых печей. Нормативный метод
4. Расчет воздухоподогревателей и других теплообменников
Открытые и для себя в том числе библиотеки работы
с теплофизикой веществ и их вызов
1. CoolProp (http://www.coolprop.org/
https://github.com/CoolProp/CoolProp)
2. Termo (https://github.com/CalebBell/thermo)
Вызов:
1.
from CoolProp.CoolProp import PropsSI
PropsSI('D', 'T', 298.15, 'P', 101325, 'Nitrogen')
2.
>>> import thermo
>>>tol = thermo.Chemical('toluene')
>>>tol.Tm, tol.Tb, tol.Tc
(179.2, 383.75, 591.75)
>>> tol.rho, tol.Cp, tol.k, tol.mu
(862.2380125827527, 1706.0746129119084, 0.13034801424538045, 0.0005521951637285534)
"""
@xlfunc
def f_b_000_Interpolate(x,xp,yp):
'''Linear interpolation one variable from two Exell vectors'''
Rez = numpy.interp(x,xp,yp)
return Rez
@xlfunc
def f_b_000_Interpolate2D(x1,x2,VY1,VY2,MZ):
'''Linear interpolation 2 variable from two Exell vectors and matrix'''
Y1Rez = []
for ind,elem in enumerate(VY1):
Y1Rez.append(numpy.interp(x2,VY2[ind],MZ[ind]))
Rez = numpy.interp(x1,VY1,Y1Rez)
return Rez
@xlfunc
def f_b_000_S_perehod(a,b,h,d):
'''S_perehod'''
h1 = (h*h+(b-d)*(b-d)*0.25)**0.5
s1 = 0.5*a*h1
h2 = (h*h+0.25*(a-d)*(a-d))**0.5
s2 = 0.5*b*h2
aa1 = (0.25*b*b+h2*h2)**0.5
bb1 = (0.25*a*a+h1*h1)**0.5
cc1 = numpy.pi*d*0.25
p = (aa1+bb1+cc1)*0.5
s3 = (p*(p-aa1)*(p-bb1)*(p-cc1))**0.5
Rez = 2.0*s1+2.0*s2+4.0*s3
return Rez
@xlfunc
def f_b_000_S_cylindr(d,h):
'''S_cilindr'''
Rez = numpy.pi*d*(h+0.5*d)
return Rez
@xlfunc
def f_b_000_V_cylindr(d,h):
'''V_cilindr'''
Rez = 0.25*numpy.pi*d*d*h
return Rez
@xlfunc
def f_b_000_eval(Rez):
'''Eval python exspresions'''
return str(eval(str(Rez)))
# Книга 1 - Каталог трубчатые печи
#
@xlfunc
def f_b_001_f_01_Phi3(qf,qt):
"""Phi3 """
Rez = qf/qt
return Rez
@xlfunc
def f_b_001_f_02_EtaN(Phi1,Phi2,Phi3):
"""EtaN """
Rez = Phi1*Phi2*Phi3
return Rez
@xlfunc
def f_b_001_f_03_EtaER(Hx,F,EtaN):
"""EtaER """
Rez = Hx*EtaN/F
return Rez
@xlfunc
def f_b_001_f_04_DzetaR(EtaER):
"""DzetaR """
Rez = 1/EtaER
return Rez
@xlfunc
def f_b_001_f_05_F(D,ro,w):
"""F, m2 """
Rez = D/(ro*w)
return Rez
@xlfunc
def f_b_001_f_06_W(D,ro,d,n):
"""W, m/s """
Rez = D/(ro*n*0.25*d*d*numpy.pi)
return Rez
@xlfunc
def f_b_001_f_07_ir(i2,Qp,D,tp,tyx):
"""ir, """
Rez = i2 - Qp*(2000.0-0.98*tp)/(2000.0-1.05*tyx)/D
return Rez
@xlfunc
def f_b_001_f_08_qf(qfs,Phi1,Phi1s,Phi2,Phi2s,Phi3,Phi3s):
"""qf, """
Rez = qfs*Phi1*Phi2*Phi3/(Phi1s*Phi2s*Phi3s)
return Rez
@xlfunc
def f_b_001_f_09_OtnPhi3(qd1,qd2,a):
"""Phi3/Phi3s"""
Rez = 0.5*(qd1+qd2)*a/qd2
return Rez
@xlfunc
def f_b_001_f_10_qd1(Teta_dop,Tay_p,Alfa_p,Phi1,Phi2):
"""qd1"""
Rez = (Teta_dop-Tay_p)*Alfa_p*Phi1*Phi2
return Rez
@xlfunc
def f_b_001_f_11_qd2(Teta_dop,Tay_2,Alfa_2,Phi1,Phi2):
"""qd2"""
Rez = (Teta_dop-Tay_2)*Alfa_2*Phi1*Phi2
return Rez
@xlfunc
def f_b_001_f_12_Tp(Psi,Cs,Hp,Hs,qf,qp,Teta):
"""Tp, K"""
Rez = 100.0*((Hp/Hs/Cs*(qf-qp)+(Teta/100.0)**4.0)/Psi)**(0.25)
return Rez
@xlfunc
def f_b_001_f_13_Psi(lf,lt):
"""Psi"""
Rez = 1.4-0.3*lf/lt
return Rez
@xlfunc
def f_b_001_f_14_Psi(lf,lt):
"""Psi"""
Rez = 1.55-0.3*lf/lt
return Rez
@xlfunc
def f_b_001_f_15_Psi(lf,lt):
"""Psi"""
Rez = 1.45-0.3*lf/lt
return Rez
@xlfunc
def f_b_001_f_16_qp(Alfak,Psik,Tp,Teta):
"""qp"""
Rez = Alfak*(Psik*Tp-Teta)
return Rez
@xlfunc
def f_b_001_f_17_Alfak(a,Tp,Teta):
"""Alfak"""
Rez = a*(Tp-Teta)**0.25
return Rez
@xlfunc
def f_b_001_f_18_TetaN(TaySr,qp,Alfa2,Delta3,Lambda3):
"""TetaN, K"""
Rez = TaySr+273.15+qp/Alfa2+qp*Delta3/Lambda3
return Rez
@xlfunc
def f_b_001_f_19_TaySr(Tay1,Tay2):
"""TaySr, K"""
Rez = 0.5*(Tay1+Tay2)
return Rez
# Книга 2 - РТМ 26-02-67-84 Методика расчета на прочность элементов печей
@xlfunc
def f_b_002_f_01_SrTube(P,Dn,Sigma):
"""Sr, mm or m"""
Rez = P*Dn/(2.0*Sigma+P)
return Rez
@xlfunc
def f_b_002_f_02_Sisp(Sr,f,c1,c2):
"""Sisp, mm or m"""
Rez = Sr+f*c1+c2
return Rez
@xlfunc
def f_b_002_f_03_Smin(Dn):
"""Smin, mm"""
Rez = numpy.interp(Dn,[73.0,89.0,102.0,108.0,114.0,121.0,127.0,159.0,168.0,219.0,273.0,325.0],[4.5,5.0,5.0,5.0,5.5,5.5,5.5,6.0,6.0,7.0,8.0,8.0])
return Rez
@xlfunc
def f_b_002_f_04_f(T,TypeStile):
"""Check and calculate f - not release!!! """
Rez = 1.0
return Rez
@xlfunc
def f_b_002_f_05_Y(RDn):
"""Smin, mm"""
Rez = numpy.interp(RDn,[1.0,1.5,2.0,3.0,4.0,5.0,6.0,7.0],[1.5,1.25,1.17,1.1,1.07,1.06,1.05,1.04])
return Rez
@xlfunc
def f_b_002_f_06_SrOtv(P,Dn,Sigma,Y):
"""Sr otvod"""
Rez = P*Dn*Y/(2.0*Sigma+P)
return Rez
@xlfunc
def f_b_002_f_07_DeltaRast(Dvn,b,S,c):
"""DeltaRast"""
Rez = 1.0/(1.0+(b*b/(Dvn*(S-c))))
return Rez
@xlfunc
def f_b_002_f_08_SrRast(P,Dn,Sigma,Y,DeltaRast):
"""Sr otvod"""
Rez = P*Dn*Y/(2.0*Sigma*(1+DeltaRast)+P)
return Rez
@xlfunc
def f_b_002_f_09_STubeOtvRast(P,Dn,Sigma,Y,f,b,Sisp,c,c1,c2):
"""S
P - presure, MPa
Dn - Diameter, mm
Sigma - MPa,
Y - paramert,
f - parametr, = 1.0,
b - shirina rastochki, mm,
Sisp - ispolnitelnaya tolshina stenki otvoda, mm
c - c1+c2
"""
Rez = P*Dn*Y/(2.0*Sigma*(1+1.0/(1.0+(b*b/((Dn-2*Sisp)*(Sisp-c1-c2)))))+P)+f*c1+c2
return Rez
# Книга 3 - РТМ 26-02-40-77 Тепловой расчет трубчатых печей. Нормативный метод
@xlfunc
def f_b_003_f_02_DensityFuelGas(CH4,C2H6,C3H8,C4H10,C5H12,C6H14,C6H12,C6H6,
C2H4,C3H6,C4H8,C5H10,C4H6,C2H2,
H2,H2S,O2,N2,Ar,H2O,CO,CO2,SO2):
'''Density Fuel Gas, кг/м3'''
# Таблица плотностей газов [3]:
part1 = (0.536*1.0+0.045*4.0)*CH4+(0.536*2.0+0.045*6.0)*C2H6
part2 = (0.536*3.0+0.045*8.0)*C3H8+(0.536*4.0+0.045*10.0)*C4H10
part3 = (0.536*5.0+0.045*12.0)*C5H12+(0.536*6.0+0.045*14.0)*C6H14
part4 = (0.536*6.0+0.045*12.0)*C6H12+(0.536*6.0+0.045*6.0)*C6H6
part5 = (0.536*2.0+0.045*4.0)*C2H4+(0.536*3.0+0.045*6.0)*C3H6
part6 = (0.536*4.0+0.045*8.0)*C4H8+(0.536*5.0+0.045*10.0)*C5H10
part7 = (0.536*4.0+0.045*6.0)*C4H6+(0.536*2.0+0.045*2.0)*C2H2
part8 = 0.0899*H2+1.53*H2S+1.43*O2+1.25*N2+1.7837*Ar+0.804*H2O
part9 = 1.25*CO+1.96*CO2+2.926*SO2
Rez = 0.01*(part1+part2+part3+part4+part4+part5+part6+part7+part8+part9)
return Rez
@xlfunc
def f_b_003_f_03_QnrFuelGas(CH4,C2H6,C3H8,C4H10,C5H12,C6H14,C6H12,C6H6,
C2H4,C3H6,C4H8,C5H10,C4H6,C2H2,
H2,H2S,O2,N2,Ar,H2O,CO,CO2,SO2):
'''Qnr Fuel Gas, Дж/м3'''
Rez = (0.01*(23.37*H2S+12.64*CO+10.79*H2+35.88*CH4+64.36*C2H6+93.18*C3H8
+123.15*C4H10+156.63*C5H12+59.06*C2H4+86.0*C3H6+113.51*C4H8+140.38*C6H6))*1.0e6
return Rez
@xlfunc
def f_b_003_f_03_QnrFuelOil(Crab,Hrab,Orab,Srab):
'''Qnr Fuel Oil, Дж/кг'''
Rez = (339.13*Crab+1256.0*Hrab-108.86*(Orab-Srab))*1000.0
return Rez
@xlfunc
def f_b_003_f_04_V0PCFuelOil(Crab,Hrab,Orab,Srab):
'''V0PCFuelOil, м3 дымовых газов на 1 кг топлива'''
Rez = (0.0889*(Crab+0.375*Srab)+0.265*Hrab-0.0333*Orab)
return Rez
@xlfunc
def f_b_003_f_05_L0PCFuelOil(Crab,Hrab,Orab,Srab):
'''L0PCFuelOil, кг дымовых газов на 1 кг топлива'''
Rez = (0.1115*(Crab+0.375*Srab)+0.342*Hrab-0.0431*Orab)
return Rez
@xlfunc
def f_b_003_f_06_VRO20PCFuelOil(Crab,Srab):
''' Объем трехатомных газов, м3/кг'''
Rez = 1.866*(Crab+0.375*Srab)*0.01
return Rez
@xlfunc
def f_b_003_f_07_GRO20PCFuelOil(Crab,Srab):
''' Масса трехатомных газов, кг/кг'''
Rez = (3.76*Crab+2.0*Srab)*0.01
return Rez
@xlfunc
def f_b_003_f_08_V0N2PCFuelOil(V0PCFuelOil,Nrab):
''' Теоретический объем азота, м3/кг'''
Rez = 0.79*V0PCFuelOil+(0.008*Nrab)
return Rez
@xlfunc
def f_b_003_f_09_G0N2PCFuelOil(L0PCFuelOil,Nrab):
''' Теоретическая масса азота, кг/кг'''
Rez = 0.769*L0PCFuelOil+(0.01*Nrab)
return Rez
@xlfunc
def f_b_003_f_10_V0H2OPCFuelOil(V0PCFuelOil,Hrab,Nrab,GfWapor):
''' Теоретический объем водяных паров, м3/кг'''
Rez = (0.111*Hrab+0.0124*Nrab)+0.0161*V0PCFuelOil+1.24*GfWapor
return Rez
@xlfunc
def f_b_003_f_11_G0H2OPCFuelOil(L0PCFuelOil,Hrab,Nrab,GfWapor):
''' Теоретическая масса водяных паров, кг/кг'''
Rez = (0.0894*Hrab+0.01*Nrab)+0.01*L0PCFuelOil+GfWapor
return Rez
@xlfunc
def f_b_003_f_12_VH2OPCFuelOil(V0H2OPCFuelOil,V0PCFuelOil,AlfaMax):
''' Объем водяных паров при избытке воздуха, м3/кг'''
Rez = V0H2OPCFuelOil+0.0161*(AlfaMax-1.0)*V0PCFuelOil
return Rez
@xlfunc
def f_b_003_f_13_GH2OPCFuelOil(G0H2OPCFuelOil,L0PCFuelOil,AlfaMax):
''' Масса водяных паров при максимальном избытке воздуха, кг/кг'''
Rez = G0H2OPCFuelOil+0.01*(AlfaMax-1.0)*L0PCFuelOil
return Rez
@xlfunc
def f_b_003_f_14_VPCFuelOil(VRO20PCFuelOil,V0N2PCFuelOil,VH2OPCFuelOil,V0PCFuelOil,AlfaMax):
''' Объем дымовых газов при максимальном избытке воздуха, м3/кг'''
Rez = VRO20PCFuelOil+V0N2PCFuelOil+VH2OPCFuelOil+(AlfaMax-1.0)*V0PCFuelOil
return Rez
@xlfunc
def f_b_003_f_15_GPCFuelOil(GRO20PCFuelOil,G0N2PCFuelOil,GH2OPCFuelOil,L0PCFuelOil,Arab,V0PCFuelOil,AlfaMax):
''' Количество дымовых газов при максимальном избытке воздуха, кг/кг'''
Rez = GRO20PCFuelOil+G0N2PCFuelOil+GH2OPCFuelOil+(AlfaMax-1.0)*L0PCFuelOil
return Rez
@xlfunc
def f_b_003_f_16_GPCFuelOil(AlfaMax,Arab,V0PCFuelOil,GfSteam):
''' Количество дымовых газов при максимальном избытке воздуха, кг/кг'''
Rez = 1.0-Arab/100.0+1.306*AlfaMax*V0PCFuelOil+GfSteam
return Rez
@xlfunc
def f_b_003_f_17_AlfaPCMaxGOST(TypeFuel,TypeTraction):
''' Коэффициент избытка воздуха максимальный по ГОСТ Р
TypeFuel: 1 - Gas; 2 - Oil.
TypeTraction: 1 - Natural; 2 - Force.'''
if TypeFuel == 1:
if TypeTraction == 1:
Rez = 1.2
if TypeTraction == 2:
Rez = 1.15
if TypeFuel == 2:
if TypeTraction == 1:
Rez = 1.25
if TypeTraction == 2:
Rez = 1.2
return Rez
@xlfunc
def f_b_003_f_18_MuAshPCFuelOil(Arab,Aun,GPCFuelOil):
''' Концентрация золы в продуктах сгорания, кг/кг'''
Rez = Arab*Aun/(100.0*GPCFuelOil)
return Rez
@xlfunc
def f_b_003_f_19_V0PCFuelGas(CH4,C2H6,C3H8,C4H10,C5H12,C6H14,C6H12,C6H6,
C2H4,C3H6,C4H8,C5H10,C4H6,C2H2,
H2,H2S,O2,CO):
''' # Теоретическое количество сухого воздуха, необходимого для полного
# сгорания топлива (коэффициент избытка воздуха a=1)
#V0PCFuelGas, м3 дымовых газов на 1 м3 топлива'''
part1 = 0.5*CO+0.5*H2+1.5*H2S-O2
part2 = 2.0*CH4+3.5*C2H6+5.0*C3H8+6.5*C4H10+8.0*C5H12+9.5*C6H14+9.0*C6H12
part3 = 7.5*C6H6+3.0*C2H4+4.5*C3H6+6.0*C4H8+7.5*C5H10+5.5*C4H6+2.5*C2H2
Rez = 0.0476*(part1+part2+part3)
return Rez
@xlfunc
def f_b_003_f_20_VRO20PCFuelGas(CH4,C2H6,C3H8,C4H10,C5H12,C6H14,C6H12,C6H6,
C2H4,C3H6,C4H8,C5H10,C4H6,C2H2,
H2,H2S,CO,CO2,SO2):
''' # Объем трехатомных газов, м3/м3'''
part1 = H2+H2S+CO+CO2+SO2
part2 = CH4+2.0*C2H6+3.0*C3H8+4.0*C4H10+5.0*C5H12+6.0*C6H14+6.0*C6H12
part3 = 6.0*C6H6+2.0*C2H4+3.0*C3H6+4.0*C4H8+5.0*C5H10+4.0*C4H6+2.0*C2H2
Rez = 0.01*(part1+part2+part3)
return Rez
@xlfunc
def f_b_003_f_21_V0N2PCFuelGas(V0PCFuelGas,N2):
''' # Теоретический объем азота, м3/м3'''
Rez = 0.79*V0PCFuelGas+(0.001*N2)
return Rez
@xlfunc
def f_b_003_f_22_V0H2OPCFuelGas(CH4,C2H6,C3H8,C4H10,C5H12,C6H14,C6H12,C6H6,
C2H4,C3H6,C4H8,C5H10,C4H6,C2H2,
H2,H2S,H2O,
dGas,V0PCFuelGas):
''' # Теоретический объем водяных паров, м3/м3'''
part1 = H2S+H2+0.124*dGas+H2O
part2 = 2.0*CH4+3.0*C2H6+4.0*C3H8+5.0*C4H10+6.0*C5H12+7.0*C6H14+6.0*C6H12
part3 = 3.0*C6H6+2.0*C2H4+3.0*C3H6+4.0*C4H8+5.0*C5H10+6.0*C4H6+C2H2
Rez = 0.01*(part1+part2+part3)+0.0161*V0PCFuelGas
return Rez
@xlfunc
def f_b_003_f_23_GPCFuelGas(GRO20PCFuelGas,G0N2PCFuelGas,GH2OPCFuelGas,L0PCFuelGas,Alfa):
''' Количество дымовых газов при максимальном избытке воздуха, кг/кг'''
Rez = GRO20PCFuelGas+G0N2PCFuelGas+GH2OPCFuelGas+(Alfa-1.0)*L0PCFuelGas
return Rez
@xlfunc
def f_b_003_f_24_GPCFuelGas2(dGas, roGas, V0, Alfa):
''' Количество дымовых газов при максимальном избытке воздуха, кг/кг'''
Rez = 1+0.001*dGas*roGas+1.306*Alfa*V0/roGas
return Rez
@xlfunc
def f_b_003_f_25_GPCFuelGas3(dGas, roGas, V0, Alfa):
''' Количество дымовых газов при максимальном избытке воздуха, кг/кг'''
Rez = roGas+0.001*dGas+1.306*Alfa*V0
return Rez
@xlfunc
def f_b_003_f_26_IAir(V0,t):
''' Энтальпия воздуха, кДж/м3 (кДж/кг топл)'''
# Энтальпия 1 м3 воздуха, кДж/м3 (кДж/кг топл)
ctAir = numpy.interp(t,
[-100.0, 0.0, 100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1100.0, 1200.0, 1300.0, 1400.0, 1500.0, 1600.0, 1700.0, 1800.0, 1900.0, 2000.0, 2100.0, 2200.0, 2300.0, 2400.0, 2500.0],
[-132.7, 0.0, 132.7, 267.0, 403.0, 542.0, 685.0, 830.0, 979.0,1129.0,1283.0, 1438.0, 1595.0, 1754.0, 1914.0, 2076.0, 2239.0, 2403.0, 2567.0, 2732.0, 2899.0, 3066.0, 3234.0, 3402.0, 3571.0, 3740.0, 3910.0])
Rez = V0*ctAir
return Rez
@xlfunc
def f_b_003_f_27_IAir1(L0,t):
''' Энтальпия воздуха, кДж/кг'''
# Энтальпия 1 кг воздуха, кДж/кг
ct1Air = numpy.interp(t,
[-100.0, 0.0, 100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1100.0, 1200.0, 1300.0, 1400.0, 1500.0, 1600.0, 1700.0, 1800.0, 1900.0, 2000.0, 2100.0, 2200.0],
[-102.1, 0.0, 102.1, 206.0, 312.0, 419.0, 529.0, 642.0, 758.0, 874.0, 991.0, 1111.0, 1234.0, 1357.0, 1480.0, 1606.0, 1732.0, 1859.0, 1985.0, 2111.0, 2241.0, 2370.0, 2500.0, 2630.0])
Rez = L0*ct1Air
return Rez
@xlfunc
def f_b_003_f_28_IProductCombution(VRO2,V0N2,V0H2O,V0,Tetta,Alfa):
''' Энтальпия продуктов сгорания, кДж/м3 (кДж/кг топл)'''
ctAir = 1
# Энтальпия 1 м3 углекислого газа, кДж/м3
ctCO2 = numpy.interp(Tetta,
[-100.0, 0.0, 100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1100.0, 1200.0, 1300.0, 1400.0, 1500.0, 1600.0, 1700.0, 1800.0, 1900.0, 2000.0, 2100.0, 2200.0, 2300.0, 2400.0, 2500.0],
[-171.7, 0.0, 171.7, 360.0, 563.0, 776.0, 999.0,1231.0,1469.0,1712.0,1961.0, 2213.0, 2458.0, 2717.0, 2977.0, 3239.0, 3503.0, 3769.0, 4036.0, 4305.0, 4574.0, 4844.0, 5115.0, 5386.0, 5658.0, 5930.0, 6203.0])
# Энтальпия 1 м3 азота, кДж/м3 (кДж/кг топл)
ctN2 = numpy.interp(Tetta,
[-100.0, 0.0, 100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1100.0, 1200.0, 1300.0, 1400.0, 1500.0, 1600.0, 1700.0, 1800.0, 1900.0, 2000.0, 2100.0, 2200.0, 2300.0, 2400.0, 2500.0],
[-130.1, 0.0, 130.1, 261.0, 394.0, 529.0, 667.0, 808.0, 952.0,1098.0,1247.0, 1398.0, 1551.0, 1705.0, 1853.0, 2009.0, 2166.0, 2324.0, 2484.0, 2644.0, 2804.0, 2965.0, 3127.0, 3289.0, 3452.0, 3615.0, 3778.0])
# Энтальпия 1 м3 водяных паров, кДж/м3 (кДж/кг топл)
ctH2O = numpy.interp(Tetta,
[-100.0, 0.0, 100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1100.0, 1200.0, 1300.0, 1400.0, 1500.0, 1600.0, 1700.0, 1800.0, 1900.0, 2000.0, 2100.0, 2200.0, 2300.0, 2400.0, 2500.0],
[-150.5, 0.0, 150.5, 304.0, 463.0, 626.0, 795.0, 969.0,1149.0,1334.0,1526.0, 1723.0, 1925.0, 2132.0, 2344.0, 2559.0, 2779.0, 3002.0, 3229.0, 3458.0, 3690.0, 3926.0, 4163.0, 4402.0, 4643.0, 4888.0, 5132.0])
# Энтальпия 1 м3 воздуха, кДж/м3 (кДж/кг топл)
ctAir = numpy.interp(Tetta,
[-100.0, 0.0, 100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1100.0, 1200.0, 1300.0, 1400.0, 1500.0, 1600.0, 1700.0, 1800.0, 1900.0, 2000.0, 2100.0, 2200.0, 2300.0, 2400.0, 2500.0],
[-132.7, 0.0, 132.7, 267.0, 403.0, 542.0, 685.0, 830.0, 979.0,1129.0,1283.0, 1438.0, 1595.0, 1754.0, 1914.0, 2076.0, 2239.0, 2403.0, 2567.0, 2732.0, 2899.0, 3066.0, 3234.0, 3402.0, 3571.0, 3740.0, 3910.0])
Rez = VRO2*ctCO2+V0N2*ctN2+V0H2O*ctH2O+V0*ctAir*(Alfa-1.0)
return Rez
@xlfunc
def f_b_003_f_29_IProductCombution1(LRO2,L0N2,L0H2O,L0,Tetta,Alfa):
''' Энтальпия продуктов сгорания, кДж/кг'''
# Энтальпия 1 кг углекислого газа, кДж/кг
ct1CO2 = numpy.interp(Tetta,
[-100.0, 0.0, 100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1100.0, 1200.0, 1300.0, 1400.0, 1500.0, 1600.0, 1700.0, 1800.0, 1900.0, 2000.0, 2100.0, 2200.0],
[ -86.6, 0.0, 86.6, 182.0, 285.0, 393.0, 507.0, 623.0, 744.0, 868.0, 994.0, 1122.0, 1252.0, 1384.0, 1517.0, 1651.0, 1779.0, 1920.0, 2056.0, 2193.0, 2329.0, 2468.0, 2601.0, 2745.0])
# Энтальпия 1 кг азота, кДж/кг
ct1N2 = numpy.interp(Tetta,
[-100.0, 0.0, 100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1100.0, 1200.0, 1300.0, 1400.0, 1500.0, 1600.0, 1700.0, 1800.0, 1900.0, 2000.0, 2100.0, 2200.0],
[-104.0, 0.0, 104.0, 208.0, 314.0, 422.0, 531.0, 643.0, 757.0, 875.0, 995.0, 1115.0, 1236.0, 1357.0, 1481.0, 1608.0, 1732.0, 1859.0, 1987.0, 2114.0, 2244.0, 2372.0, 2503.0, 2633.0])
# Энтальпия 1 кг водяных паров, кДж/кг
ct1H2O = numpy.interp(Tetta,
[-100.0, 0.0, 100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1100.0, 1200.0, 1300.0, 1400.0, 1500.0, 1600.0, 1700.0, 1800.0, 1900.0, 2000.0, 2100.0, 2200.0],
[-187.6, 0.0, 187.6, 378.0, 575.0, 778.0, 988.0,1201.0,1425.0,1660.0,1893.0, 2143.0, 2393.0, 2647.0, 2913.0, 3178.0, 3453.0, 3729.0, 4010.0, 4296.0, 4583.0, 4878.0, 5170.0, 5466.0])
# Энтальпия 1 кг воздуха, кДж/кг
ct1Air = numpy.interp(Tetta,
[-100.0, 0.0, 100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0, 1000.0, 1100.0, 1200.0, 1300.0, 1400.0, 1500.0, 1600.0, 1700.0, 1800.0, 1900.0, 2000.0, 2100.0, 2200.0],
[-102.1, 0.0, 102.1, 206.0, 312.0, 419.0, 529.0, 642.0, 758.0, 874.0, 991.0, 1111.0, 1234.0, 1357.0, 1480.0, 1606.0, 1732.0, 1859.0, 1985.0, 2111.0, 2241.0, 2370.0, 2500.0, 2630.0])
Rez = LRO2*ct1CO2+L0N2*ct1N2+L0H2O*ct1H2O+L0*ct1Air*(Alfa-1.0)
return Rez
@xlfunc
def f_b_003_f_30_cFuelGas(CH4,C2H6,C3H8,C4H10,C5H12,C6H14,C6H12,C6H6,
C2H4,C3H6,C4H8,C5H10,C4H6,C2H2,
H2,H2S,O2,N2,Ar,H2O,CO,CO2,SO2,dGas,t):
'''Теплоемкость газового топлива, отнесенная к 1м3 сухого газа, кДж/(м3*К)'''
# Таблица теплоемкостей газов [3]:
cCH4 = numpy.interp(t,
[0.0,100.0,200.0,300.0,400.0,500.0,600.0,700.0,800.0,900.0,1000.0],
[1.548,1.642,1.757,1.883,2.012,2.138,2.261,2.38,2.495,2.603,2.7])
cC2H6 = numpy.interp(t,
[0.0,100.0,200.0,300.0,400.0,500.0,600.0,700.0,800.0,900.0,1000.0],
[2.21,2.495,2.776,3.046,3.308,3.557,3.776,3.985,4.183,4.363,4.529])
cC3H8 = numpy.interp(t,
[0.0,1000.0],
[3.049,6.462])
cC4H10 = numpy.interp(t,
[0.0,1000.0],
[4.129,8.402])
cC5H12 = numpy.interp(t,
[0.0,1000.0],
[5.13,10.346])
# Приблизительно!!!
cC6H14 = numpy.interp(t,
[0.0,1000.0],
[5.13,10.346])
# Приблизительно!!!
cC6H12 = numpy.interp(t,
[0.0,1000.0],
[5.13,10.346])
# Приблизительно!!!
cC6H6 = numpy.interp(t,
[0.0,1000.0],
[5.13,10.346])
# Приблизительно!!!
cC2H4 = numpy.interp(t,
[0.0,100.0,200.0,300.0,400.0,500.0,600.0,700.0,800.0,900.0,1000.0],
[2.21,2.495,2.776,3.046,3.308,3.557,3.776,3.985,4.183,4.363,4.529])
# Приблизительно!!!
cC3H6 = numpy.interp(t,
[0.0,1000.0],
[3.049,6.462])
# Приблизительно!!!
cC4H8 = numpy.interp(t,
[0.0,1000.0],
[4.129,8.402])
# Приблизительно!!!
cC5H10 = numpy.interp(t,
[0.0,1000.0],
[5.13,10.346])
# Приблизительно!!!
cC4H6 = numpy.interp(t,
[0.0,1000.0],
[4.129,8.402])
# Приблизительно!!!
cC2H2 = numpy.interp(t,
[0.0,100.0,200.0,300.0,400.0,500.0,600.0,700.0,800.0,900.0,1000.0],
[2.21,2.495,2.776,3.046,3.308,3.557,3.776,3.985,4.183,4.363,4.529])
cH2 = numpy.interp(t,
[0.0,1000.0],
[1.278,1.328])
cH2S = numpy.interp(t,
[0.0,1000.0],
[1.508,1.85])
cO2 = numpy.interp(t,
[0.0,1000.0],
[1.3069,1.5909])
cN2 = numpy.interp(t,
[0.0,2300.0],
[1.2955,1.5021])
# Приблизительно!!!
cAr = numpy.interp(t,
[0.0,2300.0],
[1.2955,1.5021])
cH2O = numpy.interp(t,
[0.0,2300.0],
[1.4954,2.0204])
cCO = numpy.interp(t,
[0.0,1000.0],
[1.3,1.411])
cCO2 = numpy.interp(t,
[0.0,100.0,200.0,300.0,400.0,500.0,600.0,700.0,800.0,900.0,1000.0,1100.0,1200.0,1300.0,1400.0,1500.0,1600.0,1700.0,1800.0,1900.0,2000.0,2100.0,2200.0,2300.0],
[1.6010,1.7016,1.7887,1.8641,1.9312,1.9902,2.0426,2.09,2.1327,2.1708,2.2052,2.2366,2.2655,2.2915,2.3154,2.3372,2.3573,2.3761,2.3933,2.4092,2.4239,2.4377,2.4503,2.462])
# Приблизительно!!!
cSO2 = numpy.interp(t,
[0.0,100.0,200.0,300.0,400.0,500.0,600.0,700.0,800.0,900.0,1000.0,1100.0,1200.0,1300.0,1400.0,1500.0,1600.0,1700.0,1800.0,1900.0,2000.0,2100.0,2200.0,2300.0],
[1.6010,1.7016,1.7887,1.8641,1.9312,1.9902,2.0426,2.09,2.1327,2.1708,2.2052,2.2366,2.2655,2.2915,2.3154,2.3372,2.3573,2.3761,2.3933,2.4092,2.4239,2.4377,2.4503,2.462])
part1 = cCH4*CH4+cC2H6*C2H6+cC3H8*C3H8+cC4H10*C4H10
part2 = cC5H12*C5H12+cC6H14*C6H14+cC6H12*C6H12+cC6H6*C6H6
part3 = cC2H4*C2H4+cC3H6*C3H6+cC4H8*C4H8+cC5H10*C5H10
part4 = cC4H6*C4H6+cC2H2*C2H2
part5 = cH2*H2+cH2S*H2S+cO2*O2+cN2*N2+cAr*Ar+cH2O*H2O
part6 = cCO*CO+cCO2*CO2+cSO2*SO2
Rez = 0.01*(part1+part2+part3+part4+part4+part5+part6)+0.00124*cH2O*dGas
return Rez
@xlfunc
def f_b_003_f_31_xTrEkran(TypeEkr,Obm_D,S_D):
''' Угловой коэффициент трубных экранов
TypeEkr: 1 - odnoradniy gladkotrubniy s uchetom izlucheniya obmurovki;
2 - odnoradniy gladkotrubniy bez ucheta izlucheniya obmurovki pri obm_D >=0.5;
3 - dvuhradniy gladkotrubniy ekran s uchetom izlucheniya obmurovki pri Obm_D >= 1.4'''
if TypeEkr == 1:
if Obm_D >= 1.4:
Rez = numpy.interp(S_D,
[1.0,2.0,3.0,4.0],
[1.0,0.9,0.72,0.58])
if Obm_D >= 0 and Obm_D < 1.4:
Rez0 = numpy.interp(S_D,
[1.0,2.0,3.0,4.0],
[1.0,0.7,0.47,0.36])
Rez05 = numpy.interp(S_D,
[1.0,2.0,3.0,4.0],
[1.0,0.82,0.63,0.5])
Rez08 = numpy.interp(S_D,
[1.0,2.0,3.0,4.0],
[1.0,0.86,0.68,0.54])
Rez14 = numpy.interp(S_D,
[1.0,2.0,3.0,4.0],
[1.0,0.9,0.72,0.58])
Rez = numpy.interp(Obm_D,
[0.0,0.5,0.8,1.4],
[Rez0,Rez05,Rez08,Rez14])
if TypeEkr == 2:
Rez = numpy.interp(S_D,
[1.0,2.0,3.0,4.0],
[1.0,0.61,0.43,0.34])
if TypeEkr == 3:
Rez = numpy.interp(S_D,
[1.0,2.0,3.0],
[1.0,0.98,0.90])
return Rez
@xlfunc
def f_b_003_f_32_kgrp(Teta,rH2O,rp,pg,s):
''' Коэффициент ослабления лучей для топочной среды, 1/(м*кГс/см2)'''
Rez = (0.78+1.6*rH2O/((pg*rp*s)**0.5)-0.1)*(1-0.37*(Teta+273.15)/1000.0)*rp
return Rez
@xlfunc
def f_b_003_f_33_Cr_Hr(CH4,C2H6,C3H8,C4H10,C5H12,C6H14,C6H12,C6H6,
C2H4,C3H6,C4H8,C5H10,C4H6,C2H2):
''' Соотношение содержания углерода и водорода в топливном газе'''
part1 = 0.25*CH4+1.0/3.0*C2H6+3.0/8.0*C3H8+4.0/10.0*C4H10+5.0/12.0*C5H12+6.0/14.0*C6H14+0.5*C6H12
part2 = C6H6+0.5*C2H4+0.5*C3H6+0.5*C4H8+0.5*C5H10+4.0/6.0*C4H6+C2H2
Rez = 0.12*(part1+part2)
return Rez
@xlfunc
def f_b_003_f_34_kAsh(Regime,Teta,AlfaFH,Cr_Hr):
''' Коэффициент ослабления лучей сажистыми частицами, 1/(м*кГс/см2)
Regime:
0 - RTM and NTR 1973;
1 - NTR 1990.'''
if Regime == 1:
Rez = 1.2/(1.0+AlfaFH*AlfaFH)*(1.6*(Teta+273.15)/1000.0-0.5)*(Cr_Hr**0.4)/10.0
if Regime == 0:
Rez = 0.03*(2.0-AlfaFH)*(1.6*(Teta+273.15)/1000.0-0.5)*Cr_Hr
if AlfaFH > 2.0:
Rez = 0
return Rez
@xlfunc
def f_b_003_f_35_aGas(kG,pG,s):
''' Степень черноты газов'''
Rez = 1.0-numpy.exp(-(kG)*pG*s)
return Rez
@xlfunc
def f_b_003_f_36_Bo(phi,Br,VC_Gas,TetaAd,Hl):
''' Число Больцмана '''
Rez = phi*Br*VC_Gas/(5.670367e-8*(TetaAd+273.15)**3.0*Hl)
return Rez
@xlfunc
def f_b_003_f_37_DeltaKsi(TypeRadPart,af,Ksi):
''' Величина Дельта Кси:
TypeRadPart:
1 - kamernie topki;
2 - topki s izluchaushimi stenami (sloevie ytopki);
'''
if TypeRadPart == 1.0:
if Ksi <= 0.5:
Rez = (1.0-af)/(1.0-af*Ksi)
if Ksi > 0.5:
Rez = (1.0-af-(2.0*Ksi-1.0)*(1.0-af/Ksi)/Ksi)/(1.0-af*Ksi-(2.0*Ksi-1.0)*(1.0-af)/Ksi)
if TypeRadPart == 2.0:
Rez = (1.0-Ksi)/(1.0+Ksi*(1.0/af-1.0))
return Rez
@xlfunc
def f_b_003_f_38_DeltaKsiNast(af,Ksi,Rr):
''' Величина Дельта Кси для топок с настильными стенами:
TypeRadPart:
3 - topki s nastilnimi stenami
'''
Rez = 1.0/(1.0+Ksi*(1.0/af-1.0)*(1.0-Rr*(1.0-af)))
return Rez
@xlfunc
def f_b_003_f_39_A_FH(TypeRadPart,af,Ksi,An,DeltaKsi):
''' Приведенная степень черноты топочной камеры по методу ВТИ-ЭНИН:
TypeRadPart:
1 - kamernie topki;
2 - topki s izluchaushimi stenami (sloevie ytopki);
'''
if TypeRadPart == 1.0:
if Ksi < 0.8:
Rez = 1.0/(1.0/An+Ksi*(1.0/af-1.0)*DeltaKsi)
if Ksi >= 0.8:
Rez = 1.0/(1.0/An+Ksi*(1.0/af-1.0))
if TypeRadPart == 2.0:
Rez = 1.0/(1.0/An+Ksi*(1.0/af-1.0)*DeltaKsi)
return Rez
@xlfunc
def f_b_003_f_40_A_FHNast(af,KsiL,KsiN,An,Rr,DeltaKsi):
''' Приведенная степень черноты топочной камеры по методу ВТИ-ЭНИН:
TypeRadPart:
3 - topki s nastilnimi stenami
'''
Rez = 1.0/(1.0/An+KsiL*(1.0/af-1.0)*DeltaKsi+Rr*KsiN*(1.0/af-1.0)*(1.0-af))
return Rez
@xlfunc
def f_b_003_f_41_BetaFH(Ksi):
''' Поправочный коэффициент, учитывающий действительное расположение экранов:
Для камерной топки со свободным факелом
'''
if Ksi <=0.35:
Rez = 0.8
if Ksi > 0.35 and Ksi <= 0.55:
Rez = 0.85
if Ksi > 0.55 and Ksi <= 0.8:
Rez = 0.9
if Ksi > 0.8:
Rez = 1.0
return Rez
@xlfunc
def f_b_003_f_42_TetaEf4(TypeFuel,TypeRadPart,TetaNSt,lt,lf):
''' Температурная функция TetaЭфективная4:
TypeFuel:
1 - Gas;
2 - Oil.
TypeRadPart:
1 - kamernie topki so svobodnim fakelom;
2 - topki s izluchaushimi stenami (sloevie topki)
Здесь вместо lf и lt надо подставлять B2 и B1;
3 - topki s nastil'nimi stenami
'''
Rez2 = 1.0 # Поправочный коэффициент на температуру
if TetaNSt >=500.0 and TetaNSt<=950.0:
Rez2 = 1.0-0.00035*(TetaNSt-500.0)
if TypeRadPart == 1:
if TypeFuel == 1:
Rez1 = 1.45-0.3*lf/lt
if TypeFuel == 2:
Rez1 = 1.40-0.3*lf/lt
if TypeRadPart == 2:
Rez1 = 1.75-0.2*lf/lt # Здесь вместо lf и lt надо подставлять B2 и B1
if TypeRadPart == 3:
if TypeFuel == 1:
Rez1 = 1.55-0.3*lf/lt
if TypeFuel == 2:
Rez1 = 1.50-0.3*lf/lt
Rez = Rez1*Rez2
return Rez
@xlfunc
def f_b_003_f_43_AlfaKGBelokon(Ab,TetaT2,TayMid,RSigma,qRad):
''' Коэффициент теплоотдачи конвекцией от топочных газов к поверхности экранных труб
по Белоконю Н.И.'''
Rez = Ab*(TetaT2-(TayMid+RSigma*qRad))**0.25
return Rez
@xlfunc
def f_b_003_f_44_KT(TetaT2,at,TetaEf4,TetaNOtn,AlfaKG,Hrad,Hl):
''' Приведенная характеристика теплообмена в топке, K т'''
Rez = at*(TetaEf4-TetaNOtn**4.0)+(AlfaKG*(1-TetaNOtn)*Hrad/(5.670367e-8*Hl*((TetaT2+237.15)**3.0)))
return Rez
@xlfunc
def f_b_003_f_45_TetaT2OtnKT(OtnKBo):
''' Относительная температура газов на выходе из топки, TetaT2Otn'''
VectOtnKBo = [0.0217,0.024,0.0265,0.0288,0.0313,0.0338,0.0365,0.039,0.0416,
0.0444,0.0472,0.0498,0.0527,0.0557,0.0584,0.0613,0.0644,0.0674,
0.0705,0.0739,0.077,0.0801,0.0836,0.0869,0.0903,0.0939,0.097,
0.1004,0.1042,0.1076,0.113,0.115,0.119,0.123,0.127,0.131,
0.135,0.1395,0.1435,0.1475,0.152,0.157,0.161,0.166,0.17,0.175,
0.18,0.185,0.19,0.195,0.2,0.205,0.211,0.216,0.221,0.227,0.232,
0.238,0.244,0.248,0.256,0.262,0.268,0.274,0.28,0.286,0.294,
0.3,0.307,0.312,0.321,0.328,0.336,0.343,0.351,0.358,0.366,
0.373,0.382,0.39,0.398,0.406,0.415,0.424,0.432,0.44,0.45,
0.46,0.468,0.478,0.488,0.497,0.509,0.529,0.53,0.539,0.549,
0.561,0.571,0.584,0.593,0.605,0.618,0.63,0.641,0.653,0.668,
0.681,0.692,0.708,0.72,0.732,0.748,0.76,0.775,0.79,0.806,
0.821,0.836,0.85,0.866,0.883,0.901,0.918,0.935,0.95,0.969,
0.985,1.003,1.022,1.041,1.06,1.08,1.1,1.12,1.14,1.16,1.18,
1.202,1.227,1.25,1.27,1.294,1.32,1.343,1.363,1.39,1.4,1.44,
1.47,1.495,1.53,1.544,1.58,1.61,1.64,1.663,1.69,1.73,1.76,
1.796,1.82,1.855,1.89,1.92,1.955,1.99,2.025,2.07,2.11,2.15,
2.18,2.225,2.27,2.31,2.35,2.38,2.44,2.48,2.53,2.57,2.61,
2.66,2.72,2.77,2.81,2.86,2.92,2.96,3.03,3.08,3.14,3.2,3.25,
3.32,3.38,3.45,3.51,3.57,3.65,3.71,3.78,3.85,3.93,4.0,4.08,
4.14,4.22,4.32,4.39,4.46,4.56,4.65,4.74,4.84,4.92,5.0,5.11,
5.21,5.31,5.41,5.52,5.62,5.73,5.84,5.97,6.08,6.2,6.32,6.35,
6.57,6.7,6.85,7.0,7.15,7.25,7.42,7.55,7.71,7.85,8.0,8.27,
8.35,8.5,8.68,8.85,9.05,9.25,9.45,9.61,9.8,10.0,10.2,10.41,
10.65,10.85,11.1,11.34,11.6,11.8,12.04,12.34,12.6,12.85,
13.16,13.4,13.7,14.0,14.3,14.6,14.9,15.3,15.6,15.95,16.3,
16.7,17.0,17.5,17.8,18.2,18.7,19.1,19.5,19.9,20.3,20.9,
21.3,21.9,22.4,22.9,23.4]
VectTetaT2Otn = [0.98,0.978,0.976,0.974,0.972,0.97,0.968,0.966,0.964,0.962,
0.96,0.958,0.956,0.954,0.952,0.95,0.948,0.946,0.944,0.942,
0.94,0.938,0.936,0.934,0.932,0.93,0.928,0.926,0.924,0.922,
0.92,0.918,0.916,0.914,0.912,0.91,0.908,0.906,0.904,0.902,
0.9,0.898,0.896,0.894,0.892,0.89,0.888,0.886,0.884,0.882,
0.88,0.878,0.876,0.874,0.872,0.87,0.868,0.866,0.864,0.862,
0.86,0.858,0.856,0.854,0.852,0.85,0.848,0.846,0.844,0.842,
0.84,0.838,0.836,0.834,0.832,0.83,0.828,0.826,0.824,0.822,
0.82,0.818,0.816,0.814,0.812,0.81,0.808,0.806,0.804,0.802,
0.8,0.798,0.796,0.794,0.792,0.79,0.788,0.786,0.784,0.782,
0.78,0.778,0.776,0.774,0.772,0.77,0.768,0.766,0.764,0.762,
0.76,0.758,0.756,0.754,0.752,0.75,0.748,0.746,0.744,0.742,
0.74,0.738,0.736,0.734,0.732,0.73,0.728,0.726,0.724,0.722,
0.72,0.718,0.716,0.714,0.712,0.71,0.708,0.706,0.704,0.702,
0.7,0.698,0.696,0.694,0.692,0.69,0.688,0.686,0.684,0.682,
0.68,0.678,0.676,0.674,0.672,0.67,0.668,0.666,0.664,0.662,
0.66,0.658,0.656,0.654,0.652,0.65,0.648,0.646,0.644,0.642,
0.64,0.638,0.636,0.634,0.632,0.63,0.628,0.626,0.624,0.622,
0.62,0.618,0.616,0.614,0.612,0.61,0.608,0.606,0.604,0.602,
0.6,0.598,0.596,0.594,0.592,0.59,0.588,0.586,0.584,0.582,
0.58,0.578,0.576,0.574,0.572,0.57,0.568,0.566,0.564,0.562,
0.56,0.558,0.556,0.554,0.552,0.55,0.548,0.546,0.544,0.542,
0.54,0.538,0.536,0.534,0.532,0.53,0.528,0.526,0.524,0.522,
0.52,0.518,0.516,0.514,0.512,0.51,0.508,0.506,0.504,0.502,
0.5,0.498,0.496,0.494,0.492,0.49,0.488,0.486,0.484,0.482,
0.48,0.478,0.476,0.474,0.472,0.47,0.468,0.468,0.464,0.462,
0.46,0.458,0.456,0.454,0.452,0.45,0.448,0.446,0.444,0.442,
0.44,0.438,0.436,0.434,0.432,0.43,0.428,0.426,0.424,0.422,
0.42,0.418,0.416,0.414,0.412,0.41,0.408,0.406,0.404,0.402,
0.4]
Rez = numpy.interp(OtnKBo,VectOtnKBo,VectTetaT2Otn)
return Rez
@xlfunc
def f_b_003_f_46_TetaT2(TetaEf4,HRad,Hl,at,qRad,qRK,TetaN):
''' Температура газов на выходе из топки, С'''
part1 = HRad*(qRad-qRK)/(Hl*at*5.670367e-8)
part2 = ((TetaN+273.15)/100.0)**4.0
Rez = ((1.0/TetaEf4)*(part1+part2))**0.25-273.15
return Rez
@xlfunc
def f_b_003_f_47_DeltaTBelokon(TetaAd,TetaN,TetaT2,IT2,Br,AlfaKG,HRad,Hl,at):
''' Температурная поправка к теплопередаче по Белоконю Н.И.'''
part1 = AlfaKG*HRad*(TetaAd-TetaN)
part2 = 5.670367e-8*Hl*at*((TetaN+273.15)**4.0)
part3 = IT2*Br/TetaT2+AlfaKG*HRad
Rez = (part1-part2)/part3
return Rez
@xlfunc
def f_b_003_f_48_XBelokon(TetaAd,DeltaT,TetaT2,IT2,Br,AlfaKG,HRad,Hl,at):
''' Аргумент излучения Белоконя Н.И.'''
part1 = 10*5.670367*Hl*at*(((TetaAd+273.15-DeltaT)/1000.0)**3.0)
part2 = IT2*Br/TetaT2+AlfaKG*HRad
Rez = part1/part2
return Rez
@xlfunc
def f_b_003_f_49_BetaSBelokon(XBelokon):
''' Характеристика излучения Белоконя Н.И.'''
Rez = 1.0/(0.25+(0.1875+(0.141+XBelokon)**0.5)**0.5)
return Rez
@xlfunc
def f_b_003_f_50_Phi1CilindrFH(Dtr,Str,Dzm):
''' Коэффициент Фи1 от относительного диаметра и окружности радиантного
змеевика, рис 2 стр 37 РТМ 26-02'''
Line18 = numpy.interp(Dzm/Dtr,
[10.0,20.0,30.0,40.0,50.0,60.0],
[0.45,0.49,0.5,0.51,0.52,0.53])
Line20 = numpy.interp(Dzm/Dtr,
[10.0,20.0,30.0,40.0,50.0,60.0],
[0.5,0.54,0.55,0.55,0.55,0.56])
Rez = numpy.interp(Str/Dtr,[1.8,2.0],[Line18,Line20])
return Rez
@xlfunc
def f_b_003_f_51_Phi1KorobFH(TypeEkr,Dtr,Str):
''' Коэффициент Фи1 от относительного шага и типа экрана
TypeEkr:
1 - dvusvetniy ekran odnoryadniy
2 - dvusvetniy ekran dvuhriadniy s peremennim shagom
3 - !!! odnoryadniy nastenniy ekran i dvuhriadniy ekran dvustoronnego scvesheniya
Рисунок 2-2 стр. 38 РТМ 26-02
'''
if TypeEkr == 1:
Rez = numpy.interp(Str/Dtr,
[1.0, 1.2, 1.4, 1.6, 1.8, 2.0, 2.2, 2.4,2.6,2.8, 3.0, 3.2, 3.4, 3.6, 3.8,4.0],
[0.65,0.72,0.77,0.81,0.84,0.86,0.88,0.9,0.9,0.91,0.92,0.92,0.93,0.93,0.93,0.93])
if TypeEkr == 2:
Rez = numpy.interp(Str/Dtr,
[1.0, 1.2, 1.4, 1.6,1.8, 2.0, 2.2, 2.4, 2.6, 2.8, 3.0, 3.2, 3.4, 3.6, 3.8,4.0],
[0.48,0.52,0.58,0.6,0.63,0.65,0.68,0.69,0.71,0.72,0.73,0.74,0.74,0.74,0.75,0.75])
if TypeEkr == 3:
Rez = numpy.interp(Str/Dtr,
[1.0,1.2,1.4,1.6,1.8,2.0,2.2,2.4,2.6,2.8,3.0,3.2,3.4,3.6,3.8,4.0],
[0.32,0.4,0.45,0.48,0.53,0.55,0.58,0.6,0.62,0.64,0.65,0.67,0.68,0.69,0.7])
return Rez
@xlfunc
def f_b_003_f_52_k_HeatTrans(Alfa1,Delta1,Lambda1,DeltaM,LambdaM,Delta2,Lambda2,Alfa2):
'''Koefficient teploperedachi formula 7-10 NTR 1998
'''
Rez = 1.0/(1/Alfa1+Delta1/Lambda1+DeltaM/LambdaM+Delta2/Lambda2+1/Alfa2)
return Rez
@xlfunc
def f_b_003_f_53_k_HeatTrans(Psi,Alfa1,Alfa2,Ql,Q):
'''Koefficient teploperedachi formula 7-15 + NTR 1998
'''
Rez = Psi*Alfa1/(1.0+(1+Ql/Q)*Alfa1/Alfa2)
return Rez
@xlfunc
def f_b_003_f_54_k_HeatTrans(Psi,Alfa1,Alfa2,Ql,Q,H,Hvn):
'''Koefficient teploperedachi formula 7-17a + NTR 1998
'''
Rez = Psi*Alfa1/(1.0+(1+Ql/Q)*Alfa1*H/(Alfa2*Hvn))
return Rez