Skip to content

Commit dccd001

Browse files
committed
Use inter.V (due to kLA) and use partial pressure to calculate cond
1 parent 22c1982 commit dccd001

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Domain.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,8 +1705,8 @@ end
17051705
elseif isa(inter,kLAkHCondensationEvaporationWithReservoir) && d == inter.domain
17061706
kLAs = map.(inter.kLAs,inter.T)
17071707
kHs = map.(inter.kHs,inter.T)
1708-
evap = kLAs.*inter.cs*V
1709-
cond = kLAs.*ns./kHs
1708+
evap = kLAs.*inter.V.*inter.cs
1709+
cond = kLAs.*inter.V.*cs*R*T./kHs
17101710

17111711
dydt[d.indexes[1]:d.indexes[2]] .+= (evap .- cond)
17121712
elseif isa(inter,VolumetricFlowRateInlet) && d == inter.domain
@@ -1749,8 +1749,8 @@ end
17491749
elseif isa(inter,kLAkHCondensationEvaporationWithReservoir) && d == inter.domain
17501750
kLAs = map.(inter.kLAs,inter.T)
17511751
kHs = map.(inter.kHs,inter.T)
1752-
evap = kLAs.*inter.cs*V
1753-
cond = kLAs.*ns./kHs
1752+
evap = kLAs.*inter.V.*inter.cs
1753+
cond = kLAs.*inter.V.*cs*R*T./kHs
17541754
dydt[d.indexes[1]:d.indexes[2]] .+= (evap .- cond)
17551755

17561756
flow = sum(evap)
@@ -1797,8 +1797,8 @@ end
17971797
elseif isa(inter,kLAkHCondensationEvaporationWithReservoir) && d == inter.domain
17981798
kLAs = map.(inter.kLAs,inter.T)
17991799
kHs = map.(inter.kHs,inter.T)
1800-
evap = kLAs.*inter.cs*V
1801-
cond = kLAs.*ns./kHs
1800+
evap = kLAs.*inter.V.*inter.cs
1801+
cond = kLAs.*inter.V.*cs*R*T./kHs
18021802
dydt[d.indexes[1]:d.indexes[2]] .+= (evap .- cond)
18031803

18041804
flow = sum(evap)
@@ -1845,8 +1845,8 @@ end
18451845
elseif isa(inter,kLAkHCondensationEvaporationWithReservoir) && d == inter.domain
18461846
kLAs = map.(inter.kLAs,inter.T)
18471847
kHs = map.(inter.kHs,inter.T)
1848-
evap = kLAs.*inter.cs*V
1849-
cond = kLAs.*ns./kHs
1848+
evap = kLAs.*inter.V.*inter.cs
1849+
cond = kLAs.*inter.V.*cs*R*T./kHs
18501850
dydt[d.indexes[1]:d.indexes[2]] .+= (evap .- cond)
18511851

18521852
flow = sum(evap)
@@ -1895,8 +1895,8 @@ end
18951895
elseif isa(inter,kLAkHCondensationEvaporationWithReservoir) && d == inter.domain
18961896
kLAs = map.(inter.kLAs,inter.T)
18971897
kHs = map.(inter.kHs,inter.T)
1898-
evap = kLAs.*inter.cs*V
1899-
cond = kLAs.*ns./kHs
1898+
evap = kLAs.*inter.V.*inter.cs
1899+
cond = kLAs.*inter.V.*cs*R*T./kHs
19001900
dydt[d.indexes[1]:d.indexes[2]] .+= (evap .- cond)
19011901

19021902
flow = sum(evap)
@@ -1944,8 +1944,8 @@ end
19441944
elseif isa(inter,kLAkHCondensationEvaporationWithReservoir) && d == inter.domain
19451945
kLAs = map.(inter.kLAs,inter.T)
19461946
kHs = map.(inter.kHs,inter.T)
1947-
evap = kLAs.*inter.cs*V
1948-
cond = kLAs.*ns./kHs
1947+
evap = kLAs.*inter.V.*inter.cs
1948+
cond = kLAs.*inter.V.*cs*R*T./kHs
19491949
dydt[d.indexes[1]:d.indexes[2]] .+= (evap .- cond)
19501950

19511951
flow = sum(evap)

0 commit comments

Comments
 (0)