Volsung User Manual
Total Page:16
File Type:pdf, Size:1020Kb
Volsung User Manual May, 2019 Dr Peter Franz, Dr Jonathon Clearwater www.flowstatesolutions.co.nz Flow State Solutions Ltd. Volsung Manual 2 Contents 1 Introduction9 2 Installation 11 2.1 Version Numbers.......................... 11 2.2 Microsoft Windows Installation................... 11 2.3 Ubuntu Installation......................... 12 2.4 License................................ 13 2.4.1 License File Information.................. 13 2.4.2 External Licenses...................... 14 3 The Brynhild GUI 15 3.1 General............................... 15 3.2 Menus................................ 16 3.2.1 The Settings Menu..................... 16 3.2.2 The Help Menu....................... 18 3.2.3 The Tools Menu...................... 18 3.2.4 Diff Tool.......................... 18 3.2.5 Thermodynamic Table Tool................ 18 3.3 Generating a new Model...................... 19 3.4 Generating a Grid.......................... 19 3 Flow State Solutions Ltd. Volsung Manual 3.4.1 Radial2D.......................... 20 3.4.2 Tartan............................ 20 3.4.3 VoronoiXY......................... 21 3.5 Changing the Equation of State.................. 24 3.6 Running a Model.......................... 24 3.7 The Reservoir Viewer........................ 25 3.7.1 Making a Movie....................... 26 4 The Reservoir Simulator 29 4.1 Equation of State.......................... 29 4.1.1 Pure Water......................... 30 4.1.2 Water + Carbon Dioxide.................. 30 4.1.3 Water + Air......................... 31 4.2 Mass and Energy Balances..................... 31 4.2.1 Accumulation........................ 31 4.2.2 Sources and Sinks..................... 33 4.2.3 Fluxes............................ 34 4.2.4 Cell Connectivity...................... 37 4.2.5 Numerical Solution..................... 39 4.2.6 Solving the Linear System................. 40 4.2.7 Initial State......................... 41 4.2.8 Steady State Detection................... 41 4.2.9 Simulator Settings..................... 42 4.3 Time Step Control......................... 44 4.4 Boundary Conditions........................ 46 4.4.1 Extra Blocks........................ 47 4.4.2 Fixed States......................... 48 4 Volsung Manual Flow State Solutions Ltd. 4.4.3 Sources/Sinks........................ 50 5 Lithology 55 5.1 Material Functions......................... 55 5.1.1 Relative Permeability Functions.............. 55 5.1.2 Capillary Pressure Functions................ 62 5.2 MINC................................ 65 5.3 Units................................. 67 6 The Geology Model 69 6.1 Common Features.......................... 69 6.1.1 Geology Barriers...................... 69 6.2 Layer Based Geology Model.................... 70 6.2.1 Geology Layers....................... 70 6.2.2 Geology Faults....................... 70 6.3 File Based Geology Model..................... 71 7 The Surface Network Simulator 73 7.1 The Flow Network Editor...................... 74 7.2 Simple Port Objects......................... 74 7.2.1 Surface Source....................... 75 7.2.2 Producer.......................... 75 7.2.3 Regin Producer....................... 75 7.2.4 Pumped Well........................ 76 7.2.5 Separator.......................... 77 7.2.6 Valve............................ 77 7.2.7 Union............................ 77 7.2.8 Heat Exchanger....................... 77 5 Flow State Solutions Ltd. Volsung Manual 7.2.9 Injector........................... 78 7.3 Power Plant Objects........................ 78 7.3.1 Generic Steam Turbine................... 79 7.4 Surface Network Optimization................... 80 7.4.1 Temperature Parallel Simulated Annealing with Adaptive Neighbourhood (TPSAAN)................. 80 7.4.2 Simulated Annealing.................... 80 8 The Gudrun GUI 83 8.1 The Wellbore Simulator....................... 83 8.1.1 The Welltrack........................ 83 8.1.2 The Flow Path....................... 84 8.1.3 Feedzones.......................... 85 8.1.4 Heat Loss.......................... 87 8.1.5 Simulation Parameters................... 89 8.1.6 Auxiliary Parameters.................... 89 8.2 Wellbore Model Governing Equations................ 90 8.2.1 Coordinate System..................... 90 8.2.2 Pressure Gradient...................... 92 8.2.3 Specific Enthalpy Gradient................. 94 8.3 The Reservoir Thermodynamic State................ 95 8.4 Miscellaneous............................ 95 8.4.1 Simulation Time...................... 96 8.4.2 Field Data.......................... 96 8.4.3 Thermodynamic Table Tool................ 96 Bibliography 99 6 Volsung Manual Flow State Solutions Ltd. Appendix A NVIDIA GPU Selection 103 Appendix B Running on a Remote 105 B.1 Generic Setup............................ 105 B.1.1 Identification........................ 106 B.1.2 File Transfer to Remote.................. 107 B.1.3 Installation......................... 107 B.1.4 Updating the Installation.................. 108 B.2 Run Models on the Remote..................... 108 B.2.1 Remote Settings...................... 108 B.2.2 Run............................. 109 B.2.3 Running on Multiple Remotes............... 109 B.3 Setting up Cloud Servers...................... 109 B.3.1 Amazon Webserver (AWS)................. 110 B.3.2 Google Cloud Compute Engine............... 111 B.4 Trouble shooting.......................... 113 Appendix C Running TOUGH2 Models 115 C.1 Running from Command Line.................... 115 C.2 Running using Brynhild ....................... 116 C.3 Adding Wellbore/Flow Network Simulation............ 116 C.4 Testing Compatibility........................ 116 C.4.1 Initial State Comparison.................. 117 C.4.2 Transient Comparison................... 117 C.4.3 Steady-State Comparison................. 118 Appendix D Manifolds and Surface Shapes 119 D.1 Manifold Types........................... 119 7 Flow State Solutions Ltd. Volsung Manual D.1.1 Loading from File...................... 120 D.1.2 Poly Vertex......................... 120 D.1.3 Poly Line.......................... 120 D.1.4 Polygon........................... 120 D.1.5 Multiple Cells........................ 121 D.1.6 Delaunay 2D........................ 121 D.2 Editing Manifolds.......................... 121 8 Introduction "Ill it is to sit lamenting for what cannot be had." Volsunga Saga Geothermal reservoirs can be complex beasts to work with. A thorough scientific approach is required to understand them and the right tools and processes are needed to manage them. A key tool in enabling the sustainable, cost effective development of geothermal resources is the reservoir model. Unfortunately, many of the modelling tools used by geothermal operators are not up to standard. In order to use models to make better decisions, operators need modelling tools that are easy to use, fast to run and include the functionality to link reservoir conditions through to fuel supply forecasts at surface. Because existing tools didn't provide these key features we decided it was time for a new one-stop-shop software package for geothermal reservoir modelling. When developing a new software package one is often in need for finding names for new modules. We started by writing the reservoir simulator and wanted to name it after a fiery, powerful beast that lives underneath the ground - a dragon came to mind. So Fafnir - the name of the dragon from the Volsunga Saga - was chosen. And - since this saga is rich in diverse characters - other modules and main applications were named after them. In the saga Fafnir has two brothers, Regin and Otter. Associating steel with a well pipe it was a good association to call the wellbore simulator module after the smith, Regin. And an Otter swimming through channels was a good metaphor for a surface flow network. Initially only thought as internal names we really liked the characters and so decided to keep them as official release names and name the whole package after the Volsung saga. Most of them work quietly behind the scenes, but among the more public characters you will find are the mighty Brynhild which adds strength and beauty to our main piece, the reservoir simulation GUI. Similar in a feature role Gudrun is our GUI for wellbore simulation. Sigurd is working hard behind the scenes fighting dragons aka running coupled reservoir (Fafnir), wellbore (Regin) and surface network (Otter) simulations. Odin keeps the oversight and under his 9 Flow State Solutions Ltd. Volsung Manual other name Harbard is responsible for ferrying data from and to remote places. We hope you enjoy these characters and don't mind us using them. After all we are geeks, and even geeks need to have some fun. 10 Installation 2.1 Version Numbers Volsung is released using a major-minor-patch version numbering system. For example, version "1.2.3" indicates major version 1, minor version 2 and patch 3. Patches are the most frequent updates of the software package; they usually consist of bug fixes, updates in the documentation etc. Volsung input files may change slightly but usually without concern to the user. For example a newer patch version may contain a new parameter but existing files will simply read in the new parameter as a new standard value. Output files should not change; however if a bug fix happened in a calculation routine then the newer version may not generate the same output values any more. Minor version updates occur when a significantly large new features has been added to Volsung. For example if a new surface network object has been created then this would be released in