Reading input files
It is also possible to read cases that have been set up in MRST (see setup_case_from_mrst and simulate_mrst_case) or from .DATA files (see parse_data_file and simulate_data_file)
MAT-files from the Matlab Reservoir Simulation Toolbox (MRST)
Simulation of .MAT files
JutulDarcy.setup_case_from_mrst — Functionsetup_case_from_mrst("filename.mat"; kwarg...)Set up a Jutul.SimulationCase from a MRST-exported .mat file.
JutulDarcy.simulate_mrst_case — Functionsimulate_mrst_case(file_name)
simulate_mrst_case(file_name; <keyword arguments>)Simulate a MRST case from file_name as exported by writeJutulInput in MRST.
Arguments
file_name::String: The path to a.matfile that is to be simulated.
Keyword arguments
extra_outputs::Vector{Symbol} = [:Saturations]: Additional variables to output from the simulation.write_output::Bool = true: Write output (in the default JLD2 format)output_path = nothing: Directory for output files. Files will be written under this directory. Defaults to the folder offile_name.write_mrst = true: Write MRST compatible output after completed simulation that can be read byreadJutulOutputin MRST.backend=:csc: choice of backend for linear systems.:cscfor default Julia sparse,:csrfor experimental parallel CSR.verbose=true: print some extra information specific to this routine upon callingnthreads=Threads.nthreads(): number of threads to uselinear_solver=:bicgstab: name of Krylov.jl solver to use, or :direct (for small cases only)info_level=0: standard Jutul info_level. 0 for minimal printing, -1 for no printing, 1-5 for various levels of verbosity
Additional input arguments are passed onto, setup_case_from_mrst, setup_reservoir_simulator and simulator_config if applicable.
MRST-specific types
Jutul.MRSTWrapMesh — TypeMRSTWrapMesh(G, N = nothing)Mesh that adapts an exported MRST mesh to the Jutul interface. G is assumed to be read directly from file using MAT.matread. The raw exported grid can be found under the data field.
DATA-files from commercial reservoir modelling software
Parsers
Missing docstring for parse_data_file. Check Documenter's build log for details.
Missing docstring for parse_grdecl_file. Check Documenter's build log for details.
Simulation of .DATA files
JutulDarcy.simulate_data_file — Functionsimulate_data_file(inp; parse_arg = NamedTuple(), kwarg...)Simulate standard input file (with extension .DATA). inp can either be the output from setup_case_from_parsed_data or a String for the path of an input file.
Additional arguments are passed onto simulate_reservoir. Extra inputs to the parser can be sent as a parse_arg NamedTuple.