You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Domain.jl
-124Lines changed: 0 additions & 124 deletions
Original file line number
Diff line number
Diff line change
@@ -699,10 +699,6 @@ end
699
699
export ConstantTADomain
700
700
701
701
@inlinefunctioncalcthermo(d::ConstantTPDomain{W,Y},y::J,t::Q,p::W3=DiffEqBase.NullParameters()) where {W3<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:Array{Float64,1},Q} #no parameter input
702
-
if t != d.t[1]
703
-
d.t[1] = t
704
-
d.jacuptodate[1] =false
705
-
end
706
702
ns = y[d.indexes[1]:d.indexes[2]]
707
703
V = y[d.indexes[3]]
708
704
N = d.P*V/(R*d.T)
@@ -715,10 +711,6 @@ export ConstantTADomain
715
711
end
716
712
717
713
@inlinefunctioncalcthermo(d::ConstantTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:Array{Float64,1},Q<:Float64} #uses parameter input
718
-
if t != d.t[1]
719
-
d.t[1] = t
720
-
d.jacuptodate[1] =false
721
-
end
722
714
ns = y[d.indexes[1]:d.indexes[2]]
723
715
V = y[d.indexes[3]]
724
716
N = d.P*V/(R*d.T)
@@ -759,10 +751,6 @@ end
759
751
end
760
752
761
753
@inlinefunctioncalcthermo(d::ConstantTPDomain{W,Y},y::Array{W3,1},t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,W3<:ForwardDiff.Dual,Q} #Autodiff y
762
-
if t != d.t[1]
763
-
d.t[1] = t
764
-
d.jacuptodate[1] =false
765
-
end
766
754
ns = y[d.indexes[1]:d.indexes[2]]
767
755
V = y[d.indexes[3]]
768
756
N = d.P*V/(R*d.T)
@@ -783,10 +771,6 @@ end
783
771
end
784
772
785
773
@inlinefunctioncalcthermo(d::ConstantTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J,Q} #Autodiff p
786
-
if t != d.t[1]
787
-
d.t[1] = t
788
-
d.jacuptodate[1] =false
789
-
end
790
774
ns = y[d.indexes[1]:d.indexes[2]]
791
775
V = y[d.indexes[3]]
792
776
N = d.P*V/(R*d.T)
@@ -807,10 +791,6 @@ end
807
791
end
808
792
809
793
@inlinefunctioncalcthermo(d::ConstantTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Union{ReverseDiff.TrackedArray,Tracker.TrackedArray},W<:IdealGas,Y<:Integer,J,Q} #Tracker/reversediff
810
-
if t != d.t[1]
811
-
d.t[1] = t
812
-
d.jacuptodate[1] =false
813
-
end
814
794
ns = y[d.indexes[1]:d.indexes[2]]
815
795
V = y[d.indexes[3]]
816
796
N = d.P*V/(R*d.T)
@@ -828,10 +808,6 @@ end
828
808
end
829
809
830
810
@inlinefunctioncalcthermo(d::ConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
831
-
if t != d.t[1]
832
-
d.t[1] = t
833
-
d.jacuptodate[1] =false
834
-
end
835
811
ns = y[d.indexes[1]:d.indexes[2]]
836
812
T = y[d.indexes[3]]
837
813
P = y[d.indexes[4]]
@@ -857,10 +833,6 @@ end
857
833
end
858
834
859
835
@inlinefunctioncalcthermo(d::ConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
860
-
if t != d.t[1]
861
-
d.t[1] = t
862
-
d.jacuptodate[1] =false
863
-
end
864
836
ns = y[d.indexes[1]:d.indexes[2]]
865
837
T = y[d.indexes[3]]
866
838
P = y[d.indexes[4]]
@@ -887,10 +859,6 @@ end
887
859
end
888
860
889
861
@inlinefunctioncalcthermo(d::ConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
890
-
if t != d.t[1]
891
-
d.t[1] = t
892
-
d.jacuptodate[1] =false
893
-
end
894
862
ns = y[d.indexes[1]:d.indexes[2]]
895
863
T = y[d.indexes[3]]
896
864
P = y[d.indexes[4]]
@@ -917,10 +885,6 @@ end
917
885
end
918
886
919
887
@inlinefunctioncalcthermo(d::ConstantPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
920
-
if t != d.t[1]
921
-
d.t[1] = t
922
-
d.jacuptodate[1] =false
923
-
end
924
888
ns = y[d.indexes[1]:d.indexes[2]]
925
889
T = y[d.indexes[3]]
926
890
V = y[d.indexes[4]]
@@ -945,10 +909,6 @@ end
945
909
end
946
910
947
911
@inlinefunctioncalcthermo(d::ConstantPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
948
-
if t != d.t[1]
949
-
d.t[1] = t
950
-
d.jacuptodate[1] =false
951
-
end
952
912
ns = y[d.indexes[1]:d.indexes[2]]
953
913
T = y[d.indexes[3]]
954
914
V = y[d.indexes[4]]
@@ -978,10 +938,6 @@ end
978
938
end
979
939
980
940
@inlinefunctioncalcthermo(d::ConstantPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
981
-
if t != d.t[1]
982
-
d.t[1] = t
983
-
d.jacuptodate[1] =false
984
-
end
985
941
ns = y[d.indexes[1]:d.indexes[2]]
986
942
T = y[d.indexes[3]]
987
943
V = y[d.indexes[4]]
@@ -1007,10 +963,6 @@ end
1007
963
end
1008
964
1009
965
@inlinefunctioncalcthermo(d::ParametrizedVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1010
-
if t != d.t[1]
1011
-
d.t[1] = t
1012
-
d.jacuptodate[1] =false
1013
-
end
1014
966
V = d.V(t)
1015
967
ns = y[d.indexes[1]:d.indexes[2]]
1016
968
T = y[d.indexes[3]]
@@ -1036,10 +988,6 @@ end
1036
988
end
1037
989
1038
990
@inlinefunctioncalcthermo(d::ParametrizedVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1039
-
if t != d.t[1]
1040
-
d.t[1] = t
1041
-
d.jacuptodate[1] =false
1042
-
end
1043
991
V = d.V(t)
1044
992
ns = y[d.indexes[1]:d.indexes[2]]
1045
993
T = y[d.indexes[3]]
@@ -1066,10 +1014,6 @@ end
1066
1014
end
1067
1015
1068
1016
@inlinefunctioncalcthermo(d::ParametrizedVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1069
-
if t != d.t[1]
1070
-
d.t[1] = t
1071
-
d.jacuptodate[1] =false
1072
-
end
1073
1017
V = d.V(t)
1074
1018
ns = y[d.indexes[1]:d.indexes[2]]
1075
1019
T = y[d.indexes[3]]
@@ -1096,10 +1040,6 @@ end
1096
1040
end
1097
1041
1098
1042
@inlinefunctioncalcthermo(d::ParametrizedPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1099
-
if t != d.t[1]
1100
-
d.t[1] = t
1101
-
d.jacuptodate[1] =false
1102
-
end
1103
1043
P = d.P(t)
1104
1044
ns = y[d.indexes[1]:d.indexes[2]]
1105
1045
T = y[d.indexes[3]]
@@ -1125,10 +1065,6 @@ end
1125
1065
end
1126
1066
1127
1067
@inlinefunctioncalcthermo(d::ParametrizedPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
@inlinefunctioncalcthermo(d::ParametrizedPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1157
-
if t != d.t[1]
1158
-
d.t[1] = t
1159
-
d.jacuptodate[1] =false
1160
-
end
1161
1093
P = d.P(t)
1162
1094
ns = y[d.indexes[1]:d.indexes[2]]
1163
1095
T = y[d.indexes[3]]
@@ -1184,10 +1116,6 @@ end
1184
1116
end
1185
1117
1186
1118
@inlinefunctioncalcthermo(d::ParametrizedTConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real}
1187
-
if t != d.t[1]
1188
-
d.t[1] = t
1189
-
d.jacuptodate[1] =false
1190
-
end
1191
1119
V = d.V
1192
1120
T = d.T(t)
1193
1121
ns = y[d.indexes[1]:d.indexes[2]]
@@ -1209,10 +1137,6 @@ end
1209
1137
end
1210
1138
1211
1139
@inlinefunctioncalcthermo(d::ParametrizedTConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real}
1212
-
if t != d.t[1]
1213
-
d.t[1] = t
1214
-
d.jacuptodate[1] =false
1215
-
end
1216
1140
V = d.V
1217
1141
T = d.T(t)
1218
1142
ns = y[d.indexes[1]:d.indexes[2]]
@@ -1235,10 +1159,6 @@ end
1235
1159
end
1236
1160
1237
1161
@inlinefunctioncalcthermo(d::ParametrizedTConstantVDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real}
1238
-
if t != d.t[1]
1239
-
d.t[1] = t
1240
-
d.jacuptodate[1] =false
1241
-
end
1242
1162
V = d.V
1243
1163
T = d.T(t)
1244
1164
ns = y[d.indexes[1]:d.indexes[2]]
@@ -1261,10 +1181,6 @@ end
1261
1181
end
1262
1182
1263
1183
@inlinefunctioncalcthermo(d::ParametrizedTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:DiffEqBase.NullParameters,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1264
-
if t != d.t[1]
1265
-
d.t[1] = t
1266
-
d.jacuptodate[1] =false
1267
-
end
1268
1184
T = d.T(t)
1269
1185
@assert T <10000.0
1270
1186
P = d.P(t)
@@ -1290,10 +1206,6 @@ end
1290
1206
end
1291
1207
1292
1208
@inlinefunctioncalcthermo(d::ParametrizedTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2<:Array{Float64,1},W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1293
-
if t != d.t[1]
1294
-
d.t[1] = t
1295
-
d.jacuptodate[1] =false
1296
-
end
1297
1209
T = d.T(t)
1298
1210
@assert T <10000.0
1299
1211
P = d.P(t)
@@ -1320,10 +1232,6 @@ end
1320
1232
end
1321
1233
1322
1234
@inlinefunctioncalcthermo(d::ParametrizedTPDomain{W,Y},y::J,t::Q,p::W2=DiffEqBase.NullParameters()) where {W2,W<:IdealGas,Y<:Integer,J<:AbstractArray,Q<:Real}
1323
-
if t != d.t[1]
1324
-
d.t[1] = t
1325
-
d.jacuptodate[1] =false
1326
-
end
1327
1235
T = d.T(t)
1328
1236
@assert T <10000.0
1329
1237
P = d.P(t)
@@ -1350,10 +1258,6 @@ end
1350
1258
end
1351
1259
1352
1260
@inlinefunctioncalcthermo(d::ConstantTVDomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2<:DiffEqBase.NullParameters,W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real}
1353
-
if t != d.t[1]
1354
-
d.t[1] = t
1355
-
d.jacuptodate[1] =false
1356
-
end
1357
1261
ns = y[d.indexes[1]:d.indexes[2]]
1358
1262
N =sum(ns)
1359
1263
cs = ns./d.V
@@ -1363,10 +1267,6 @@ end
1363
1267
end
1364
1268
1365
1269
@inlinefunctioncalcthermo(d::ConstantTVDomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2<:Array{Float64,1},W<:IdealDiluteSolution,Y<:Integer,J<:Array{Float64,1},Q<:Real}
1366
-
if t != d.t[1]
1367
-
d.t[1] = t
1368
-
d.jacuptodate[1] =false
1369
-
end
1370
1270
ns = y[d.indexes[1]:d.indexes[2]]
1371
1271
N =sum(ns)
1372
1272
cs = ns./d.V
@@ -1407,10 +1307,6 @@ end
1407
1307
end
1408
1308
1409
1309
@inlinefunctioncalcthermo(d::ConstantTVDomain{W,Y},y::Array{W2,1},t::Q,p::Q2=DiffEqBase.NullParameters()) where {W2<:ForwardDiff.Dual,Q2,W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real} #autodiff y
1410
-
if t != d.t[1]
1411
-
d.t[1] = t
1412
-
d.jacuptodate[1] =false
1413
-
end
1414
1310
ns = y[d.indexes[1]:d.indexes[2]]
1415
1311
N =sum(ns)
1416
1312
cs = ns./d.V
@@ -1428,10 +1324,6 @@ end
1428
1324
end
1429
1325
1430
1326
@inlinefunctioncalcthermo(d::ConstantTVDomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2,W<:IdealDiluteSolution,Y<:Integer,J<:AbstractArray,Q<:Real} #autodiff p
1431
-
if t != d.t[1]
1432
-
d.t[1] = t
1433
-
d.jacuptodate[1] =false
1434
-
end
1435
1327
ns = y[d.indexes[1]:d.indexes[2]]
1436
1328
N =sum(ns)
1437
1329
cs = ns./d.V
@@ -1449,10 +1341,6 @@ end
1449
1341
end
1450
1342
1451
1343
@inlinefunctioncalcthermo(d::ConstantTADomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2<:DiffEqBase.NullParameters,W<:IdealSurface,Y<:Integer,J<:AbstractArray,Q<:Real}
1452
-
if t != d.t[1]
1453
-
d.t[1] = t
1454
-
d.jacuptodate[1] =false
1455
-
end
1456
1344
ns = y[d.indexes[1]:d.indexes[2]]
1457
1345
N =sum(ns)
1458
1346
cs = ns./d.A
@@ -1462,10 +1350,6 @@ end
1462
1350
end
1463
1351
1464
1352
@inlinefunctioncalcthermo(d::ConstantTADomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2<:Array{Float64,1},W<:IdealSurface,Y<:Integer,J<:Array{Float64,1},Q<:Real}
1465
-
if t != d.t[1]
1466
-
d.t[1] = t
1467
-
d.jacuptodate[1] =false
1468
-
end
1469
1353
ns = y[d.indexes[1]:d.indexes[2]]
1470
1354
N =sum(ns)
1471
1355
cs = ns./d.A
@@ -1495,10 +1379,6 @@ end
1495
1379
end
1496
1380
1497
1381
@inlinefunctioncalcthermo(d::ConstantTADomain{W,Y},y::Array{W2,1},t::Q,p::Q2=DiffEqBase.NullParameters()) where {W2<:ForwardDiff.Dual,Q2,W<:IdealSurface,Y<:Integer,J<:AbstractArray,Q<:Real} #autodiff y
1498
-
if t != d.t[1]
1499
-
d.t[1] = t
1500
-
d.jacuptodate[1] =false
1501
-
end
1502
1382
ns = y[d.indexes[1]:d.indexes[2]]
1503
1383
N =sum(ns)
1504
1384
cs = ns./d.A
@@ -1516,10 +1396,6 @@ end
1516
1396
end
1517
1397
1518
1398
@inlinefunctioncalcthermo(d::ConstantTADomain{W,Y},y::J,t::Q,p::Q2=DiffEqBase.NullParameters()) where {Q2,W<:IdealSurface,Y<:Integer,J<:AbstractArray,Q<:Real} #autodiff p
0 commit comments