Skip to content

Commit fd20505

Browse files
mjohnson541ssun30
authored andcommitted
add ConstantReservoirDiffusion interface
this interface creates diffusive fluxes between a given domain and a constant concentration reservoir
1 parent 673e5da commit fd20505

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Interface.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,18 @@ struct Outlet{V,FF<:Function} <: AbstractBoundaryInterface
271271
end
272272
export Outlet
273273

274+
struct ConstantReservoirDiffusion{V<:AbstractArray,U<:Real}
275+
domain::S
276+
c::V
277+
A::U
278+
layer_thickness::U
279+
end
280+
281+
function ConstantReservoirDiffusion(domain::V, conddict::Dict{X1,X}, A::B, layer_thickness::B) where {V,X1,X,B<:Real}
282+
cs = makespcsvector(domain.phase, conddict)
283+
return ConstantReservoirDiffusion(domain,cs,A,layer_thickness)
284+
end
285+
274286
"""
275287
kLAkHCondensationEvaporationWithReservoir adds evaporation and condensation to
276288
(1) a liquid phase domain with a constant composition vapor resevoir, where number of moles, P, and T need to be specified, or

0 commit comments

Comments
 (0)