Skip to content

Commit f8ff2bf

Browse files
mjohnson541ssun30
authored andcommitted
add ConstantReservoirDiffusion interface
this interface creates diffusive fluxes between a given domain and a constant concentration reservoir Some bugfixes by Su: Fixed undefined variable S Added missing "export" for ConstantReservoirDiffusion Co-authored-by: Matt Johnson <mjohnson541@gmail.com> Co-authored-by: Su Sun <sun.su@northeastern.edu>
1 parent 7bdeb50 commit f8ff2bf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Interface.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,20 @@ struct Outlet{V,FF<:Function} <: AbstractBoundaryInterface
283283
end
284284
export Outlet
285285

286+
struct ConstantReservoirDiffusion{S,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+
298+
export ConstantReservoirDiffusion
299+
286300
"""
287301
kLAkHCondensationEvaporationWithReservoir adds evaporation and condensation to
288302
(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)