@@ -147,6 +147,19 @@ import MultiComponentFlash.PVTExperiments as PVTExp
147147 @test contains (output, " PVDG" )
148148 end
149149
150+ @testset " PVDO Table" begin
151+ table = PVTExp. pvdo_table (eos, z_oil, T_res; n_points = 10 )
152+ @test table isa PVTExp. PVDOTable
153+ @test length (table. p) == 10
154+ @test all (table. Bo .> 0 )
155+ @test all (table. mu_o .> 0 )
156+ # Test printing
157+ io = IOBuffer ()
158+ show (io, table)
159+ output = String (take! (io))
160+ @test contains (output, " PVDO" )
161+ end
162+
150163 @testset " PVTG Table" begin
151164 table = PVTExp. pvtg_table (eos, z_gas, T_res; n_rv = 5 , n_undersaturated = 2 )
152165 @test table isa PVTExp. PVTGTable
@@ -178,18 +191,27 @@ import MultiComponentFlash.PVTExperiments as PVTExp
178191
179192 @testset " High-Level Interface - Oil" begin
180193 tables = generate_pvt_tables (eos, z_oil, T_res;
181- n_pvto = 5 , n_pvdg = 10 , n_undersaturated = 2 )
194+ n_pvto = 5 , n_pvdg = 10 , n_pvdo = 10 , n_undersaturated = 2 )
195+ @test tables isa PVTExp. PVTTableSet
182196 @test tables. pvto != = nothing
183197 @test tables. pvdg != = nothing
198+ @test tables. pvdo != = nothing
184199 @test tables. surface_densities isa PVTExp. SurfaceDensities
185200 @test tables. saturation_pressure > 0
186201 @test tables. is_bubblepoint == true
202+ # Test printing
203+ io = IOBuffer ()
204+ show (io, tables)
205+ output = String (take! (io))
206+ @test contains (output, " PVTTableSet" )
187207 end
188208
189209 @testset " High-Level Interface - Gas" begin
190210 tables = generate_pvt_tables (eos, z_gas, T_res;
191- n_pvtg = 5 , n_pvdg = 10 )
211+ n_pvtg = 5 , n_pvdg = 10 , n_pvdo = 10 )
212+ @test tables isa PVTExp. PVTTableSet
192213 @test tables. pvdg != = nothing
214+ @test tables. pvdo != = nothing
193215 @test tables. surface_densities isa PVTExp. SurfaceDensities
194216 @test tables. saturation_pressure > 0
195217 end
@@ -201,9 +223,11 @@ import MultiComponentFlash.PVTExperiments as PVTExp
201223 ]
202224 tables = generate_pvt_tables (eos, z_oil, T_res;
203225 separator_stages = stages,
204- n_pvto = 5 , n_pvdg = 10 , n_undersaturated = 2 )
226+ n_pvto = 5 , n_pvdg = 10 , n_pvdo = 10 , n_undersaturated = 2 )
227+ @test tables isa PVTExp. PVTTableSet
205228 @test tables. pvto != = nothing
206229 @test tables. pvdg != = nothing
230+ @test tables. pvdo != = nothing
207231 @test tables. surface_densities isa PVTExp. SurfaceDensities
208232 end
209233end
0 commit comments