Plotting and visualization
JutulDarcy.plot_reservoir Function
plot_reservoir(case)
plot_reservoir(case, states)
plot_reservoir(case, result)
plot_reservoir(model, states)Launch interactive plotter of reservoir + well trajectories in reservoir. Requires a Makie backend, such as GLMakie or WGLMakie. If the keyword fancy=true, a more advanced GUI with more options will be launched that allows for panning and zooming. If fancy=false, a fixed-axis plot will be launched instead. The keyword gui=false can be used to just get a static plot without interactivity (will use same fixed-axis plot as fancy=false).
Displayed units are determined by the unit_system keyword, which defaults to "metric". The source units are assumed to be "si" by default. Unit conversion can be disabled altogether by setting convert_units=false.
For 3D fixed-axis views (gui=false or fancy=false), zaspect sets the z-to-x axis length ratio (default 1/3), unless aspect is provided.
For gui=false, select a cell field with key, a report step with step (default 1), and a matrix-valued field component with row (default 1). Both the original field name and its displayed name with units are accepted. If key is omitted, the first plottable field in alphabetical order is used.
Positional arguments
The first entry can be a model::MultiModel (from setup_reservoir_model), a JutulCase or reservoir::DataDomain (from reservoir_domain)
JutulDarcy.plot_well_results Function
plot_well_results(wr::WellResults)
plot_well_results(v::Vector{WellResults})Launch interactive viewer for well results. Needs a Makie backend such as GLMakie or WGLMakie to be loaded.
sourceJutulDarcy.plot_reservoir_measurables Function
plot_reservoir_measurables(case::JutulCase, result::ReservoirSimResult)Launch interactive viewer for reservoir measurables. Needs a Makie backend such as GLMakie or WGLMakie to be loaded.
sourceJutulDarcy.plot_summary Function
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,:sior: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, addingWBHP,WWIRtoextra_wellwill allow plotting bottom hole pressure together with water injection rate for wells.
Keyboard shortcuts
Left Arrow: Previous responseRight Arrow: Next responseUp Arrow: Previous well (not active for field views)Down Arrow: Next well (not active for field views)
JutulDarcy.plot_reservoir_simulation_result Function
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.
JutulDarcy.plot_well! Function
plot_well!(ax, mesh, w; color = :darkred)Plot a given well that exists in mesh in Axis.
source