Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions src/Interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,25 @@ function VaporLiquidMassTransferInternalInterfaceConstantT(domaingas,domainliq,i
T = domainliq.T
phase = domainliq.phase
ignoremasstransferspcinds = getinterfaceignoremasstransferspcinds(domaingas,domainliq,ignoremasstransferspcnames)
kLAs = [kLA(T=T) for kLA in getfield.(phase.species,:liquidvolumetricmasstransfercoefficient)]
kHs = [kH(T=T) for kH in getfield.(phase.species,:henrylawconstant)]
if T isa Function
kLAs = [kLA(T=T(0)) for kLA in getfield.(phase.species,:liquidvolumetricmasstransfercoefficient)]
kHs = [kH(T=T(0)) for kH in getfield.(phase.species,:henrylawconstant)]
else
kLAs = [kLA(T=T) for kLA in getfield.(phase.species,:liquidvolumetricmasstransfercoefficient)]
kHs = [kH(T=T) for kH in getfield.(phase.species,:henrylawconstant)]
end
return VaporLiquidMassTransferInternalInterfaceConstantT(domaingas,domainliq,ignoremasstransferspcnames,ignoremasstransferspcinds,kLAs,kHs,[1,length(domainliq.phase.species)],[0,0],ones(length(domainliq.phase.species))),ones(length(domainliq.phase.species))
end
export VaporLiquidMassTransferInternalInterfaceConstantT





function getkLAkHs(vl::VaporLiquidMassTransferInternalInterfaceConstantT,Tgas,Tliq)
return vl.kLAs, vl.kHs
kLAs = [kLA(T=Tliq) for kLA in getfield.(vl.domainliq.phase.species,:liquidvolumetricmasstransfercoefficient)]
kHs = [kH(T=Tliq) for kH in getfield.(vl.domainliq.phase.species,:henrylawconstant)]
return kLAs, kHs
end

function evaluate(vl::VaporLiquidMassTransferInternalInterfaceConstantT,dydt,Vgas,Vliq,Tgas,Tliq,N1,N2,P1,P2,Cvave1,Cvave2,ns1,ns2,Us1,Us2,cstot,p)
Expand Down Expand Up @@ -534,4 +545,4 @@ function evaluate(ri::FragmentBasedReactiveFilmGrowthInterfaceConstantT,dydt,dom
addreactionratecontributions!(dydt,ri.fragmentbasedrxnarray,ri.rxnarray,cstot,kfs,krevs,Vfilm,domainfilm.indexes[3],ri.Mws,domainfilm.indexes[1]:domainfilm.indexes[2])
end

export evaluate
export evaluate