Skip to content

Plotting and visualization

JutulDarcy.plot_reservoir Function
julia
plot_reservoir(model, states=missing; well_fontsize = 18, well_linewidth = 3, kwarg...)

Launch interactive plotter of reservoir + well trajectories in reservoir. Requires GLMakie to be loaded (using GLMakie). If the keyword fancy=true, a more advanced GUI with more options will be launched that allows for panning and zooming.. The keyword gui=false can be used to just get a static plot without interactivity.

source
JutulDarcy.plot_well_results Function
julia
plot_well_results(wr::WellResults)
plot_well_results(v::Vector{WellResults})

Launch interactive viewer for well results. Needs GLMakie to be loaded.

source
JutulDarcy.plot_reservoir_measurables Function
julia
plot_reservoir_measurables(case::JutulCase, result::ReservoirSimResult)

Launch interactive viewer for reservoir measurables. Needs GLMakie to be loaded.

source
JutulDarcy.plot_summary Function
julia
plot_summary(summary::Dict)
plot_summary(res::ReservoirSimResult)
plot_summary([res1, res2, res3]; names = ["Res1", "Res2", "Res3"])

Plot summary results interactively. If multiple results are given, they will be compared in the same figure.

Keyword arguments:

  • names: Names for the different results when multiple results are given.

  • unit_system: Unit system to use (can be changed in dropdown). Can be :metric, :si or :field.

  • linewidth: Linewidth for the plots.

  • plots = Vector{Symbol}: Which plots to show by default. For example, ["FOPR", "FWPR"] will field show oil and water production rates as two plots. Alternatively, combined plots can be made: ["FOPR,FWPR"] will show both oil and water rates in the same plot. For wells, the name must be specified: ["W1:WBHP", "W2:WBHP"] will show bottom hole pressures for wells named W1 and W2.

  • cols::Int: Number of columns in the layout.

  • selectors::Bool: Whether to show dropdown selectors for choosing which plots to show.

  • extra_field/extra_well: Additional reservoir measurables or well measurables to include in the selection lists, for example to add custom composite plots. For example, adding WBHP,WWIR to extra_well will allow plotting bottom hole pressure together with water injection rate for wells.

source
JutulDarcy.plot_reservoir_simulation_result Function
julia
plot_reservoir_simulation_result(model::MultiModel, res::ReservoirSimResult; wells = true, reservoir = true)

Plot a reservoir simulation result. If wells=true well curves will be shown interactively. If reservoir=true the reservoir quantities will be visualized in 3D. These options can be combined.

source
JutulDarcy.plot_well! Function
julia
plot_well!(ax, mesh, w; color = :darkred)

Plot a given well that exists in mesh in Axis.

source