Skip to content

Commit 03550b1

Browse files
mjohnson541ssun30
authored andcommitted
add ConstantReservoirDiffusion interface
this interface creates diffusive fluxes between a given domain and a constant concentration reservoir
1 parent c15ad5a commit 03550b1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Interface.jl

+12
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,18 @@ struct Outlet{V,FF<:Function} <: AbstractBoundaryInterface
283283
end
284284
export Outlet
285285

286+
struct ConstantReservoirDiffusion{V<:AbstractArray,U<:Real}
287+
domain::S
288+
c::V
289+
A::U
290+
layer_thickness::U
291+
end
292+
293+
function ConstantReservoirDiffusion(domain::V, conddict::Dict{X1,X}, A::B, layer_thickness::B) where {V,X1,X,B<:Real}
294+
cs = makespcsvector(domain.phase, conddict)
295+
return ConstantReservoirDiffusion(domain,cs,A,layer_thickness)
296+
end
297+
286298
"""
287299
kLAkHCondensationEvaporationWithReservoir adds evaporation and condensation to
288300
(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)