Hide metadata

dc.contributor.authorMunthe-Kaas, Heidi Vikki
dc.date.accessioned2013-12-29T22:10:22Z
dc.date.issued2013
dc.identifier.citationMunthe-Kaas, Heidi Vikki. A Python interface to Diffpack-based classes and solvers. Master thesis, University of Oslo, 2013
dc.identifier.urihttp://hdl.handle.net/10852/37943
dc.description.abstractPython is a programming language that has gained a lot of popularity during the last 15 years, and as a very easy-to-learn and flexible scripting language it is very well suited for computa- tional science, both in mathematics and in physics. Diffpack is a PDE library written in C++, made for easier implementation of both smaller PDE solvers and for larger libraries of simu- lators. It contains large class hierarchies for different solvers, grids, arrays, parallel computing and almost everything needed to solve PDEs. Pulse, a Diffpack based PDE heart simulator, is made for simulating electrical and mechanical behavior in the heart. Making an interface to Pulse in Python will hopefully merge the positive qualities from both C++ and Python. Taking advantage of the fact that the original code is written in C++ and therefore effective, and the flexibility of Python, can make for both a highly effective solver, and one it is easy to test and debug. SWIG was used to wrap the original C++ code into Python, as it had been tested with suc- cess on Diffpack classes in an earlier thesis. This thesis consist of two parts. The first explains how to wrap the Heat1 class into a Python module, and how to implement the timeLoop and solveAtThisTimestep functions in Python, focusing on what problems may occur during the procedure. The second part explains the wrapping procedure used when wrapping Pulse, and how to implement Python versions of the Circulation::timeLoop, Heart::simpleTimeLoop, Heart::solveCellsAndDiffusion and Heart::initTimeLoop functions.eng
dc.language.isoeng
dc.subjectDiffpack
dc.subjectSWIG
dc.subjectPulse
dc.subjectPython
dc.titleA Python interface to Diffpack-based classes and solverseng
dc.typeMaster thesis
dc.date.updated2014-03-09T10:59:17Z
dc.creator.authorMunthe-Kaas, Heidi Vikki
dc.identifier.urnURN:NBN:no-40125
dc.type.documentMasteroppgave
dc.identifier.fulltextFulltext https://www.duo.uio.no/bitstream/handle/10852/37943/1/HeidiVikkiMunthe-Kaas_thesis.pdf


Files in this item

Appears in the following Collection

Hide metadata