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
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1333,7 +1333,7 @@ export calcthermo
1333
1333
end
1334
1334
end
1335
1335
1336
-
@inlinefunctioncalcdomainderivatives!(d::ConstantVDomain{W,Y},dydt::K,interfaces::Z12;t::Z10,T::Z4,P::Z9,Us::Array{Z,1},Hs::Array{Z11,1},V::Z2,C::Z3,ns::Z5,N::Z6,Cvave::Z7) where {Z12,Z11,Z10,Z9,W<:IdealGas,Z7<:Real,K,Y<:Integer,Z6,Z,Z2,Z3,Z4,Z5}
1336
+
@inlinefunctioncalcdomainderivatives!(d::ConstantVDomain{W,Y},dydt::K,interfaces::Z12;t::Z10,T::Z4,P::Z9,Us::Z,Hs::Z11,V::Z2,C::Z3,ns::Z5,N::Z6,Cvave::Z7) where {Z12,Z11,Z10,Z9,W<:IdealGas,Z7,K,Y<:Integer,Z6,Z,Z2,Z3,Z4,Z5}
1337
1337
@views@fastmath@inbounds dydt[d.indexes[3]] =-dot(Us,dydt[d.indexes[1]:d.indexes[2]])/(N*Cvave) #divide by V to cancel ωV to ω
1338
1338
for ind in d.constantspeciesinds #make dydt zero for constant species
1339
1339
@inbounds dydt[ind] =0.0
@@ -1351,7 +1351,7 @@ end
1351
1351
end
1352
1352
end
1353
1353
1354
-
@inlinefunctioncalcdomainderivatives!(d::ConstantPDomain{W,Y},dydt::K,interfaces::Z12;t::Z10,T::Z4,P::Z9,Us::Array{Z,1},Hs::Array{Z11,1},V::Z2,C::Z3,ns::Z5,N::Z6,Cvave::Z7) where {Z12,Z11,Z10,Z9,W<:IdealGas,Z7<:Real,K,Y<:Integer,Z6,Z,Z2,Z3,Z4,Z5}
1354
+
@inlinefunctioncalcdomainderivatives!(d::ConstantPDomain{W,Y},dydt::K,interfaces::Z12;t::Z10,T::Z4,P::Z9,Us::Z,Hs::Z11,V::Z2,C::Z3,ns::Z5,N::Z6,Cvave::Z7) where {Z12,Z11,Z10,Z9,W<:IdealGas,Z7,K,Y<:Integer,Z6,Z,Z2,Z3,Z4,Z5}
1355
1355
@fastmath Cpave = Cvave+R
1356
1356
@views@fastmath@inbounds dydt[d.indexes[3]] =-dot(Hs,dydt[d.indexes[1]:d.indexes[2]])/(N*Cpave) #divide by V to cancel ωV to ω
1357
1357
for ind in d.constantspeciesinds #make dydt zero for constant species
@@ -1369,7 +1369,7 @@ end
1369
1369
end
1370
1370
end
1371
1371
1372
-
@inlinefunctioncalcdomainderivatives!(d::ParametrizedVDomain{W,Y},dydt::K,interfaces::Z12;t::Z10,T::Z4,P::Z9,Us::Array{Z,1},Hs::Array{Z11,1},V::Z2,C::Z3,ns::Z5,N::Z6,Cvave::Z7) where {Z11,Z10,Z9,W<:IdealGas,Z7<:Real,K,Y<:Integer,Z6,Z,Z2,Z3,Z4,Z5,Z12}
1372
+
@inlinefunctioncalcdomainderivatives!(d::ParametrizedVDomain{W,Y},dydt::K,interfaces::Z12;t::Z10,T::Z4,P::Z9,Us::Z,Hs::Z11,V::Z2,C::Z3,ns::Z5,N::Z6,Cvave::Z7) where {Z11,Z10,Z9,W<:IdealGas,Z7,K,Y<:Integer,Z6,Z,Z2,Z3,Z4,Z5,Z12}
1373
1373
@views@fastmath@inbounds dydt[d.indexes[3]] = (-dot(Us,dydt[d.indexes[1]:d.indexes[2]])-P*Calculus.derivative(d.V,t))/(N*Cvave) #divide by V to cancel ωV to ω
1374
1374
for ind in d.constantspeciesinds #make dydt zero for constant species
1375
1375
@inbounds dydt[ind] =0.0
@@ -1387,7 +1387,7 @@ end
1387
1387
end
1388
1388
end
1389
1389
1390
-
@inlinefunctioncalcdomainderivatives!(d::ParametrizedPDomain{W,Y},dydt::K,interfaces::Z12;t::Z10,T::Z4,P::Z9,Us::Array{Z,1},Hs::Array{Z11,1},V::Z2,C::Z3,ns::Z5,N::Z6,Cvave::Z7) where {Z11,Z10,Z9,W<:IdealGas,Z7<:Real,K,Y<:Integer,Z6,Z,Z2,Z3,Z4,Z5,Z12}
1390
+
@inlinefunctioncalcdomainderivatives!(d::ParametrizedPDomain{W,Y},dydt::K,interfaces::Z12;t::Z10,T::Z4,P::Z9,Us::Z,Hs::Z11,V::Z2,C::Z3,ns::Z5,N::Z6,Cvave::Z7) where {Z11,Z10,Z9,W<:IdealGas,Z7,K,Y<:Integer,Z6,Z,Z2,Z3,Z4,Z5,Z12}
1391
1391
@fastmath Cpave = Cvave+R
1392
1392
@views@fastmath@inbounds dydt[d.indexes[3]] = (-dot(Hs,dydt[d.indexes[1]:d.indexes[2]])+V*Calculus.derivative(d.P,t))/(N*Cpave) #divide by V to cancel ωV to ω
1393
1393
for ind in d.constantspeciesinds #make dydt zero for constant species
0 commit comments