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.simulate_mrst_caseFunction
simulate_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 .mat file 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 of file_name.
  • write_mrst = true: Write MRST compatible output after completed simulation that can be read by readJutulOutput in MRST.
  • backend=:csc: choice of backend for linear systems. :csc for default Julia sparse, :csr for experimental parallel CSR.
  • verbose=true: print some extra information specific to this routine upon calling
  • nthreads=Threads.nthreads(): number of threads to use
  • linear_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.

source

MRST-specific types

Jutul.MRSTWrapMeshType
MRSTWrapMesh(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.

source

DATA-files from commercial reservoir modelling software

Parsers

Missing docstring.

Missing docstring for parse_data_file. Check Documenter's build log for details.

Missing docstring.

Missing docstring for parse_grdecl_file. Check Documenter's build log for details.

Simulation of .DATA files

JutulDarcy.simulate_data_fileFunction
simulate_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.

source