Skip to content

Commit

Permalink
Fix to PVT region scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Feb 6, 2024
1 parent ef25a05 commit 5af48ac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/input_simulation/data_input.jl
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,14 @@ function parse_physics_types(datafile; pvt_region = missing)
rhoO_all = map(x -> x[1], deck_densities)
rhoG_all = map(x -> x[3], deck_densities)

oil_scale = rhoO_all[pvt_region]./rhoO_all
gas_scale = rhoG_all[pvt_region]./rhoG_all
# Scale densities by dividing by the reference density and multiplying
# with their PVT region's density to make it consistent when you
# evaluate density by rhoS*(1/B)
oil_scale = rhoO_all./rhoO_all[pvt_region]
gas_scale = rhoG_all./rhoG_all[pvt_region]
water_scale = rhoW_all./rhoW_all[pvt_region]
scaling = (
water_density = rhoW_all[pvt_region]./rhoW_all,
water_density = water_scale,
oil_density = oil_scale,
gas_density = gas_scale,
rs = gas_scale./oil_scale,
Expand Down

0 comments on commit 5af48ac

Please sign in to comment.