Modern Advances in Software and Solution Algorithms for Reservoir Simulation

Total Page:16

File Type:pdf, Size:1020Kb

Modern Advances in Software and Solution Algorithms for Reservoir Simulation MODERN ADVANCES IN SOFTWARE AND SOLUTION ALGORITHMS FOR RESERVOIR SIMULATION A DISSERTATION SUBMITTED TO THE DEPARTMENT OF ENERGY RESOURCES ENGINEERING AND THE COMMITTEE ON GRADUATE STUDIES OF STANFORD UNIVERSITY IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF DOCTOR OF PHILOSOPHY Rami M. Younis August 2011 © 2011 by Rami Mustafa Younis. All Rights Reserved. Re-distributed by Stanford University under license with the author. This work is licensed under a Creative Commons Attribution- Noncommercial 3.0 United States License. http://creativecommons.org/licenses/by-nc/3.0/us/ This dissertation is online at: http://purl.stanford.edu/fb287kz3299 ii I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Hamdi Tchelepi, Primary Adviser I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Khalid Aziz, Co-Adviser I certify that I have read this dissertation and that, in my opinion, it is fully adequate in scope and quality as a dissertation for the degree of Doctor of Philosophy. Juan Alonso Approved for the Stanford University Committee on Graduate Studies. Patricia J. Gumport, Vice Provost Graduate Education This signature page was generated electronically upon submission of this dissertation in electronic format. An original signed hard copy of the signature page is on file in University Archives. iii Abstract As conventional hydrocarbon resources dwindle, and environmentally-driven markets start to form and mature, investments are expected to shift into the development of novel emerging subsurface process technologies. While these processes are charac- terized by a high commercial potential, they are also typically associated with high technical risk. The time-to-market along comparable development pipelines, such as for Enhanced Oil Recovery (EOR) methods in the Oil and Gas sector, is on the order of tens of years. It is anticipated that in the near future, there will be much value in developing simulation tools that can shorten time-to-market cycles, making invest- ment shifts more attractive. There are two forces however that may debilitate us from delivering simulation as a scientific discovery tool. The first force is the growing nonlinearity of the problem base. The second force is the flip-side of a double edged sword; a rapidly evolving computer architecture scene. The first part of this work concerns the formulation and linearization of nonlinear simultaneous equations; the archetypal inflexible component of all large scale simu- lators. The proposed solution is an algorithmic framework and library of data-types called the Automatically Differentiable Expression Templates Library (ADETL). The ADETL provides generic representations of variables and discretized expressions on a simulation grid, and the data-types provide algorithms employed behind the scenes to automatically compute the sparse analytical Jacobian. Using the library, large- scale simulators can be developed rapidly by simply writing the residual equations, and without any hand differentiation, hand crafted performance tuning loops, or any other low-level constructs. A key challenge that is addressed is in enabling this level of abstraction and programming ease while making it easy to develop code that runs iv fast. Faster than any of several existing automatic differentiation packages, faster than any purely Object Oriented implementation, and at least in the order of the execution speed of code delivered by a development team with hand-optimized resid- uals, analytical derivatives, and Jacobian assembly routines. A second challenge is in providing a generic multi-layered software framework that incorporates plug-in low-level constructs tuned to emerging architectures. The inception of the ADETL spurred an effort to develop the new generation AD-GPRS simulator, which we use to demonstrate the powers of the ADETL. We conclude with a thought towards a future where simulators can write themselves. The second part of this work develops nonlinear methods that can exploit the nature of the underlying physics to deal with the current and upcoming challenges in physical nonlinearity. The Fully Implicit Method offers unconditional stability of the discrete approximations. This stability comes at the expense of transferring the inherent physical stiffness onto the coupled nonlinear residual equations that are solved at each timestep. Current reservoir simulators apply safe-guarded variants of Newton's method that can neither guarantee convergence, nor provide estimates of the relation between convergence rate and timestep size. In practice, timestep chops become necessary, and they are guided heuristically. With growing complex- ity, convergence difficulties can lead to substantial losses in computational effort and prohibitively small timesteps. We establish an alternate class of nonlinear iteration that converges and that associates a timestep to each iteration. Moreover, the linear solution process within each iteration is performed locally. Several challenging ex- amples are presented, and the results demonstrate the robustness and computational efficiency of the proposed class of methods. We conclude with thoughts to unify timestepping and iterative nonlinear methods. v Acknowledgements It has been an interesting journey. I am fortunate to have had the company of many who have challenged and supported me. I would like to thank Khalid Aziz for taking me in and for accommodating my sometimes rogue ways. I would also like to thank Hamdi Tchelepi for reminding me to pause and appreciate intermediate milestones before "turning round more new corners". I would also like to thank Juan Alonso for reading this dissertation and providing valuable feedback. I have had the opportunity to learn from exceptional classroom teachers; I am especially indebted to Julie Levandosky, Doron Levy, Gene Golub, and Lou Durlofsky. Your classes were not easy and they were always fun. I would also like to thank the staff at the Center for Teaching and Learning for recruiting me as a Teaching Consultant during my studies. The Department of Energy Resources Engineering (known as Petroleum Engineering at the time I joined) is a very special one at the university primarily because of its administrative leadership and citizens. I would like to thank Roland Horne who served as Department Chair throughout most of the duration of my studies. I would also like to thank my colleagues for making every day (and night) at the office feel like a walk in the park; Saman Aryana, Marc Hesse, Shalini Krishnamurthy, Morten R. Kristensen, Felix Kwok, and Jonas Nilson it would not have been fun without you. I am indebted to Sylvianne Dufour and to Dr. B. for helping learn some of life's hardest lessons. I would also like to thank my girlfriend Stephanie E. Holm for putting up with my nonlinear humor. My thanks go to my parents, Hiyam and Mustafa Younis, for guiding me and for supporting me unconditionally at the times I needed it most. This work was prepared with financial support from the Stanford University Petroleum Research Institute-B (SUPRI-B) Industrial Affiliates Program. vi Contents Abstract iv Acknowledgements vi I The Automatically Differentiable Expression Templates Library 1 1 Introduction 2 1.1 Modern Simulation Software . .4 1.1.1 Simulation Software Architectures . .4 1.1.2 Programming Abstraction Paradigms . 13 1.1.3 The Software Goals . 17 1.2 Formulation and linearization . 17 1.2.1 Formulation concepts . 18 1.2.2 Linearization operations . 19 1.3 Automatically Differentiable Expression Templates Library ADETL . 27 2 The AD Core; Its Design And Evolution 29 2.1 Common aspects of all OO implementations . 30 2.1.1 Customized AD data-types . 32 2.1.2 Overloading Operators in C++ . 33 2.2 OOAD by Instantaneous Evaluation . 38 2.2.1 Univariate expressions . 39 vii 2.2.2 Multivariate expressions . 41 2.3 Lazy AD with Expression Templates . 44 2.3.1 Building Expression Templates at compile time . 46 2.3.2 ET Evaluation; Dense Multivariates . 51 2.3.3 ET Evaluation; Sparse Multivariates . 52 2.3.4 Summary . 58 2.4 Sparse Linear Combination Expressions . 59 2.4.1 Building and destroying SPLC expressions dynamically . 61 3 Using and extending the ADETL 65 3.1 Automatic Variable Set Objects AVSO. 67 3.1.1 ADCollection concept and types. 69 3.1.2 VariableOrdering concept and types. 70 3.1.3 VariableActivation concept and types. 72 3.1.4 A complete AVSO VariableSet usage example. 74 3.2 Automatically differentiable variable data types . 77 3.2.1 The ADCollection concept. 78 4 ADETL Simulators and computational examples 83 4.1 So, what is the overhead of this abstraction? . 84 4.1.1 Example 1: Two dimensional, nine component model . 86 4.1.2 Example 2: A five-spot pattern in a two-dimensional heteroge- neous domain . 88 4.2 Summary . 93 5 Possibilities for the future of the ADETL 95 5.1 Old concepts, new directions . 96 5.1.1 More datastructures and heterogeneous expressions across them 97 5.1.2 What is a variable set today and what will it be tomorrow? . 97 5.1.3 Thread safety first . 99 5.2 Synthesized Concepts For The ADETL . 99 5.2.1 Automated performance tuning . 99 viii 5.2.2 Code verification, generation, and evolution . 100 II The Nature Of Nonlinearities In Simulation And Solu- tion Methods That Understand Them 102 6 Introduction 103 6.1 Timestepping and nonlinearity in implicit models . 105 6.1.1 The Newton Flow and Newton-like methods . 106 6.1.2 An example to illustrate challenges encountered by Newton's method . 107 6.2 Safeguarded Newton-Like Methods In Reservoir Simulation . 113 6.2.1 Examples of the performance of state-of-the-art solvers. 116 7 Adaptive Localization 121 7.1 Basic ideas and motivation .
Recommended publications
  • Simulation Modeling with SIMUL8 / Kieran Concannon
    Simulation Modeling with Kieran Concannon Mark Elder Kim Hindle Jillian Tremble Stanley Tse Produced by: Simulation Solutions Copyright Visual Thinking International, 2007 Cover Design Jo-Dee Burbach Tuling This book was produced by Visual8 Corporation and printed and bound by e- impressions Inc. First published 2004 Copyright © Visual Thinking International. All rights reserved. This edition published 2007 Copyright © Visual Thinking International No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, without the prior written permission of Visual Thinking International, telephone 1-800-878-3373, email [email protected]. All trademarks are the property of their respective companies. Document Edition 4.1 Date September 2007 SIMUL8 Software Version 14.0 ISBN 0-9734285-0-3 Printed in Canada. National Library of Canada Cataloguing in Publication Simulation modeling with SIMUL8 / Kieran Concannon ... [et al.]. Includes index. ISBN 0-9734285-0-3 1. SIMUL8. 2. Computer simulation--Computer programs. I. Concannon, Kieran, 1951- QA76.9.C65S45 2003 003'.353 C2003-907459-5 About the Authors and Contributors Simulation Modeling with SIMUL8 • 1 About the Authors and Contributors Authors Kieran Concannon With a Masters in Operations Research from Birmingham University, Kieran has been developing computer simulations for over 25 years. He has played a vital role in establishing the use of simulation in production planning and execution and has been influential in the development of SIMUL8. Kieran founded and is currently the President of Visual8 Corporation, the preeminent consulting, training, and support group for SIMUL8 in North America.
    [Show full text]
  • Methods of Simulation-Assisted Automation Testing
    ESPOO 2005 VTT RESEARCH NOTES 2289 VTT TIEDOTTEITA – RESEARCH NOTES VTT TUOTTEET JA TUOTANTO – VTT INDUSTRIELLA SYSTEM – VTT INDUSTRIAL SYSTEMS NOTES 2289 VTT RESEARCH 2235 Lehto, Taru & Murtonen, Mervi. Toiminnan kehittämisen vaikutukset ja päätöksen- teko. PRIMA-työkalupakki kehittämistoimenpiteiden valintaan ja suunnitteluun. 2004. Requirements Testing Analyzing 52 s. + liitt. 35 s. management results 2240 Jarimo, Toni. Innovation Incentives in Enterprise Networks. A Game Theoretic Manager Approach. 2004. 63 p. + app. 3 p. 2243 Ventä, Olli. Älykkäät palvelut -teknologiatiekartta. 2004. 71 s. + liitt. 11 s. Database: Definition of Execution of 2250 Sippola, Merja, Brander, Timo, Calonius, Kim, Kantola, Lauri, Karjalainen, Jukka- * Test cases Test cases Test cases Pekka, Kortelainen, Juha, Lehtonen, Mikko, Söderström, Patrik, Timperi, Antti & * Test results Vessonen, Ismo. Funktionaalisten materiaalien mahdollisuudet lujitemuovisessa toimirakenteessa. 2004. 216 s. Methods of simulation-assisted automation testing 2251 Riikonen, Heli, Valkokari, Katri & Kulmala, Harri I. Palkitseminen kilpailukyvyn parantajana. Tuotantopalkkauksen kehittämismenetelmät vaatetusalalla. 2004. 67 s. 2254 Nuutinen, Maaria. Etäasiantuntijapalvelun haasteet. Työn toiminta- ja osaamis- vaatimusten mallintaminen. 2004. 31 s. 2257 Koivisto, Tapio, Lehto, Taru, Poikkimäki, Jyrki, Valkokari, Katri & Hyötyläinen, Raimo. Metallin ja koneenrakennuksen liiketoimintayhteisöt Pirkanmaalla. 2004. 33 s. 2263 Pöyhönen, Ilkka & Hukki, Kristiina. Riskitietoisen ohjelmiston
    [Show full text]
  • SPICE2 – a Spatial Parallel Architecture for Accelerating the SPICE Circuit Simulator
    SPICE2 { A Spatial Parallel Architecture for Accelerating the SPICE Circuit Simulator Thesis by Nachiket Kapre In Partial Fulfillment of the Requirements for the Degree of Doctor of Philosophy California Institute of Technology Pasadena, California 2010 (Submitted October 26, 2010) c 2010 Nachiket Kapre All Rights Reserved ii Abstract Spatial processing of sparse, irregular floating-point computation using a single FPGA enables up to an order of magnitude speedup (mean 2.8× speedup) over a conven- tional microprocessor for the SPICE circuit simulator. We deliver this speedup us- ing a hybrid parallel architecture that spatially implements the heterogeneous forms of parallelism available in SPICE. We decompose SPICE into its three constituent phases: Model-Evaluation, Sparse Matrix-Solve, and Iteration Control and parallelize each phase independently. We exploit data-parallel device evaluations in the Model- Evaluation phase, sparse dataflow parallelism in the Sparse Matrix-Solve phase and compose the complete design in streaming fashion. We name our parallel architec- ture SPICE2: Spatial Processors Interconnected for Concurrent Execution for ac- celerating the SPICE circuit simulator. We program the parallel architecture with a high-level, domain-specific framework that identifies, exposes and exploits parallelism available in the SPICE circuit simulator. Our design is optimized with an auto-tuner that can scale the design to use larger FPGA capacities without expert intervention and can even target other parallel architectures with the assistance of automated code-generation. This FPGA architecture is able to outperform conventional proces- sors due to a combination of factors including high utilization of statically-scheduled resources, low-overhead dataflow scheduling of fine-grained tasks, and overlapped processing of the control algorithms.
    [Show full text]
  • Simulation Software: Not the Same Yesterday, Today Or Forever M Pidd* and a Carvalho Lancaster University, Lancester, UK
    Journal of Simulation (2006),1–14 r 2006 Operational Research Society Ltd. All rights reserved. 1747-7778/06 $30.00 www.palgrave-journals.com/jos Simulation software: not the same yesterday, today or forever M Pidd* and A Carvalho Lancaster University, Lancester, UK It is probably true, at least in part, that each generation assumes that the way it operates is the only way to go about things. It is easy to forget that different approaches were used in the past and hard to imagine what other approaches might be used in the future. We consider the symbiotic relationship between general developments in computing, especially in software and parallel developments in discrete event simulation. This shows that approaches other than today’s excellent simulation packages were used in the past, albeit with difficulty, to conduct useful simulations. Given that few current simulation packages make much use of recent developments in computer software, particularly in component-based developments, we consider how simulation software might develop if it utilized these developments. We present a brief description of DotNetSim, a prototype component-based discrete event simulation package to illustrate our argument. Journal of Simulation (2006) 0, 000–000. doi:10.1057/palgrave.jos.4250004 Keywords: simulation software; Microsoft.NET; composability; the future Introduction methods are also common in the various sub-disciplines of the social sciences and management sciences. Since this new It will be very obvious to readers of this new journal that a journal is published on behalf of the Operational Research computer can be used to simulate the operation of a system Society, we focus on simulation as used in OR/MS such as a factory or call centre, but whether it was so (operational research/management science)—but there is obvious to the pioneers is not so clear.
    [Show full text]
  • Free Circuit Simulator-Circuit Design and Simulation Software List Top Ten:Circuit Simulators Top Ten:Circuit Simulators | Mixed-Signal Electronics Circuit [...]
    Home Forums Datasheets Lab Manual Testing Components Buy Project Kits Custom Search jojo November - 6 - 2011 31 Comments Hello friends, I hope you all got benefited with our previous article on Electronic circuit drawing softwares . Today we are bringing you a great collection of circuit simulators – which are at the same time can be used for circuit drawing, circuit design and analysis as well. The list is well structured as free circuit simulation softwares, open source circuit analysis and simulation software, simple and easy to use simulators, linux based simulator, windows based simulator etc. Finally after researching through all the list we have compiled a collection best circuit simulation softwares as well. So lets start our journey right below. Free and Open source circuit simulator software list:- 1 of 13 NgSpice – one of the popular and widely used free, open source circuit simulator from Sourceforge. NgSpice is developed by a collective effort from its users and its code is based on 3 open source software packages:- known as:- Spice3f5 , Cider and Xspice. Ngspice is a part of gEDA project which is growing every day with suggestions from its users, development from its contributors, fixing bugs and approaching perfection. As its a collaborative project you can suggest improvement of the circuit simulator and be a part of the development team. GnuCap - is another open source project, developed as a general purpose circuit simulator. Known widely as GNU Circuit analysis package, this linux based circuit simulator performs various circuit analysis functions as dc and transient analysis, ac analysis etc. Developers have incorporated spice compatible model for MOSFET, BJT and Diode.
    [Show full text]
  • Design and Implementation of a PLC Trainer Workstation
    Advances in Science, Technology and Engineering Systems Journal Vol. 5, No. 4, 755-761 (2020) ASTESJ www.astesj.com ISSN: 2415-6698 Design and Implementation of a PLC Trainer Workstation Matthew Oluwole Arowolo*, Adefemi Adeyemi Adekunle, Martins Oluwaseun Opeyemi Department of Mechatronics Engineering, Federal University Oye – Ekiti, 371104, Nigeria A R T I C L E I N F O A B S T R A C T Article history: The Programmable Logic Controller (PLC) is an important component for industrial Received:28 May, 2020 automatic engineering operation. Hence, the need to comprehend its basis of operation Accepted:05 August, 2020 becomes an inevitable task. Some of the problems is industrial PLC is an expensive, pre- Online: 28 August, 2020 built hardware kit, acquisition of programming software and its requisite programming competence is a challenge. Thus, this paper present’s the design steps for a desktop PLC Keywords: trainer workstation for industrial automatic engineering operation. Although researchers PLC have proposed and reported several PLC trainers but they fail to discuss the hardware Ladder logic connection of the input/output components neither is the basic PLC automatic - operation PLC Workstation nor PLC component symbols with description discussed. These are the areas discussed in Programming this paper to train participant on PLC programming knowledge. The develop PLC Software workstation consist of push buttons and switches for input signals and for output signal buzzer, indicator lights and blower. The control aspect comprises the PLC, timer and relay. The PLC module is the MITSUBISHI FX 1S-30MR-001, the simulation software is the MITSUBISHI FXTRN-BEG-EL and the programming software is the MITSUBISHI GX Developer version 8.
    [Show full text]
  • The PCB Design Magazine • February 2013 Test & Meaasuurer Meent Storage
    Test & Meaasuurer ment Storage Teelel coom I-Speed MiM lilitataryy Innfrfrasastrruucctuure Baackckplanne Servers The Next Generation High Speed Product from Isola • Global constructions available in all regions • Offer spread and square weave glass styles (1035, 1067, • Optimized constructions to improve lead free 1078, 1086, 3313) for laminates and prepregs – performance Minimizes micro-Dk effects of glass fabrics – Enables the glass to absorb resin better and • I-Speed delivers 15-20% lower insertion loss over enhances CAF capabilities competitive products through reduced copper – Improves yields at laser and mechanical drilling roughness and dielectric loss • A low Df product with a low cost of ownership • Improved Z-axis CTE 2.70% • I-Speed – IPC 4101 Rev. C /21 /24 /121 /124 /129 Effective Loss @ 4 GHz on a 32 inch line Magnitude [S], [db] A: I-Speed B: Mid - Df 1.3 -10 4 4 4 4 -20 -30 Magnitude [S], [db] A: I-Speed B: Mid - Df -2.5 Loss (dB) Length (mm) Length (in) Loss (dB/mm) Loss (dB/inch) -5 I-Speed -11.43 800 31.496 -0.014 -0.363 Mid-Df -13.55 800 31.496 -0.017 -0.430 15.65% -7.5 -10 -11.43 < 4 -12.5 -13.55 < 4 -15 -17.5 I-Speed delivers 15-20% lower insertion loss over competitive low Df products. http://www.isola-group.com/products/i-speed The data, while believed to be accurate and based on analytical methods considered to be reliable, is for information purposes only. Any sales of these materials will be governed by the terms and conditions of the agreement under which they are sold.
    [Show full text]
  • Pulsed Power Engineering Circuit Simulation
    Pulsed Power Engineering Circuit Simulation January 12-16, 2009 Craig Burkhart, PhD Power Conversion Department SLAC National Accelerator Laboratory Circuit Simulation for Pulsed Power Applications • Uses of circuit simulation • Tools • Limitations • Typical methodology January 12-16, 2009 USPAS Pulsed Power Engineering C Burkhart 2 January 12-16, 2009 USPAS Pulsed Power Engineering C Burkhart 3 January 12-16, 2009 USPAS Pulsed Power Engineering C Burkhart 4 January 12-16, 2009 USPAS Pulsed Power Engineering C Burkhart 5 January 12-16, 2009 USPAS Pulsed Power Engineering C Burkhart 6 Circuit Simulation Tools • Reduces circuit to N algebraic equations with N unknowns and solve – Implicit integration Methods – Newton’s method –Etc. • Spice/PSpice (Simulation Program with Integrated Circuit Emphasis) – Ubiquitous circuit solver – Developed at UC Berkeley, first presented in 1973 – P in PSpice stands for personal computer – Large parts library – Analog and digital circuits • Matlab/Simulink/SimPowerSystems/PLECS – Matlab mathematical tool teamed with specialized toolboxes – Simulink/SimPowerSystems – PLECS – Developed primarily for power electronics January 12-16, 2009 USPAS Pulsed Power Engineering C Burkhart 7 Circuit Simulation Tools • PSIM – Developed for power electronics – Fast convergence – Matlab interface • Simplorer – Developed for power electronics – Four modeling languages • VHDL-AMS for analog-mixed-signal-design • Circuit Simulator for the simulation of power electronic circuits • Block diagram simulator for the simulation of
    [Show full text]
  • The Role of Simulation in Innovative Electronic Design
    White Paper The Role of Simulation in Innovative Electronic Design We’re in the midst of an electronics-centered innovation boom that has transformed the way we communicate, work, learn and entertain. Virtually no product is exempt from these im- provements. Around the globe, in obvious and not-so-obvious applications, there are ultra- smart phones, fi ber-optic and wireless networks, computers that fi t into a pocket, LED screen displays that mimic paper and even tracking chips in pets. Second-millennium automobiles are fi lled with electronic devices that control engine functions, keep wheels from skidding, help avoid accidents and direct our route of travel. Aviation electronics include radar, fl y-by-wire systems and airborne communications. Electronics innovations have been adopted in indus- trial and military applications: Smart electronics are redefi ning everything from just-in-time manufacturing to homeland security. It’s obvious that these devices are aff ecting the quality of our lives. What’s not so apparent is how interconnected products have become and how they impact our safety. Never before has the opportunity to diff erentiate in the electronics product marketplace been so pronounced. At the same time, the downside risk of product failure and its consequences can be catastrophic: One estimate for a single product recall is $8 million-plus — in direct costs only. More signifi - cantly, a brand that took decades to build can be destroyed in seconds. The behaviors of today’s products are complex and diffi cult to physically test. For instance, electronics create a large amount of stray emissions.
    [Show full text]
  • SPICE Engine Analysis and Circuit Simulation Application Development
    TELKOMNIKA, Vol.14, No.1, March 2016, pp. 64~71 ISSN: 1693-6930, accredited A by DIKTI, Decree No: 58/DIKTI/Kep/2013 DOI: 10.12928/TELKOMNIKA.v14i1.2832 64 SPICE Engine Analysis and Circuit Simulation Application Development Bing Chen*1, Gang Lu2, Yuehai Wang3 1College of Electronic Engineering, Naval University of Engineering,WuHan,430033, China 2Equipment Department of the Navy, Beijing,100055, China 3School of electrical information engineering, North China University of Technology, Beijing, 100144, China *Corresponding author, e-mail: [email protected] Abstract Electrical design automation plays an important role in nowadays electronic industry. Various commercial Simulation Program with Integrated Circuit Emphasis (SPICE) packages, such as pSpice Or CAD, have become the standard computer program for electrical simulation, with numerous copies in use worldwide. The customized simulation software with copyright need the understanding and using of SPICE engine which was open-source shortly after its birth. The inner workings of SPICE, including algorithms, data structure and code structure of SPICE were analyzed, and a engine package and application development approach were proposed. The experiments verified its feasibility and accuracy. Keywords: SPICE engine analysis, Circuit Simulation Application, Simulation analysis Copyright © 2016 Universitas Ahmad Dahlan. All rights reserved. 1. Introduction Knowledge of the behavior of electrical circuits requires the simultaneous solution of a number of equations.The model creation [1],
    [Show full text]
  • 2 Simulation Languages
    Understanding Computer Simulation Simulation Languages 2 Simulation Languages Simulation languages are versatile, general purpose classes of simulation software that can be used to create a multitude of modeling applications. In a sense, these languages are comparable to FORTRAN, C#, Visual Basic.net or Java but also include specific features to facilitate the modeling process. Some examples of modern simulation languages are GPSS/H, GPSS/PC, SLX, and SIMSCRIPT III. Other simulation languages such as SIMAN have been integrated into broader development frameworks. In the case of SIMAN, this framework is ARENA. Simulation languages exist for discrete, continuous and agent-based modeling paradigms. The remainder of this book will focus on the discrete event family of languages. 2.1 Simulation Language Features Specialized features usually differentiate simulation languages from general programming languages. These features are intended to free the analyst from recreating software tools and procedures used by virtually all modeling applications. Not only would the development of these features be time consuming and difficult, but without them, the consistency of a model could vary and additional debugging, validation and verification would be required. Most simulation languages provide the features shown in Table 2.1. 1) Simulation clock or a mechanism for advancing simulated time. 2) Methods to schedule the occurrence of events. 3) Tools to collect and analyze statistics concerning the usage of various resources and entities. 4) Methods for representing constrained resources and the entities using these resources. 5) Tools for reporting results. 6) Debugging and error detection facilities. 7) Random number generators and related sets of tools. 8) General frameworks for model creation.
    [Show full text]
  • Simulation-Based Verification of PLC Programs
    Simulation-based verification of PLC programs Master of Science Thesis in Production Engineering JASMIN DZINIC CHARLIE YAO Department of Signals and Systems Division of Automatic Control, Automation and Mechatronics Research Group Automation CHALMERS UNIVERSITY OF TECHNOLOGY Gothenburg, Sweden 2013 Report No: EX058 REPORT NO. EX058/2013 Simulation-based verification of PLC programs JASMIN DZINIC CHARLIE YAO Department of Signals and Systems CHALMERS UNIVERSITY OF TECHNOLOGY Gothenburg, Sweden 2013 Simulation-based verification of PLC programs JASMIN DZINIC CHARLIE YAO © JASMIN DZINIC, CHARLIE YAO, 2013 Technical report no EX058/2013 Department of Signals and Systems Chalmers University of Technology SE-412 96 Gothenburg Sweden Telephone: + 46 (0)31-772 1000 Cover: The cover picture shows the Automatic zone in the Production System Laboratory at Chalmers. The view is a screen shot from Xcelgo Experior environment. Gothenburg, Sweden 2013. Abstract Automation systems have in recent decades increased in complexity and variety in which the demand for safer and faster commissioning has been vital for the industry. The current approach for commissioning is based on a traditional level in which control systems are verified using a trial-and-error based method in a workshop and/or directly in the production facility. The traditional level of commissioning is a time consuming and costly approach and a search for another method has been a must in order to meet the current demand. Researchers have suggested virtual commissioning which is a way to verify control systems in a virtual environment prior to physical commissioning. Industrial projects based on virtual commissioning have two main approaches for commissioning; Software-in-the-Loop (SIL), where commissioning of control system and the plant is performed in a virtual reality, and Hardware-in-the-Loop (HIL), where commissioning is instead performed on a real control system and a virtual reality.
    [Show full text]