Skip to content

brixel-1984/TarasNumericalModellingCourse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taras' Numerical Modelling Course (the Python Way)

Conversion of Taras Matlab models to Python 3

Here you'll find Python 3 translations of some of the models originally developed in Matlab as part of Taras Gerya's introduction to Numerical Modelling (2017).

The aim is to offer an open source alternative to interested students, and compare computation times and code readability between Python and Matlab.

This repository is a work in progress.

Solvers

Global indexing in Python

The basic global indexing relations introduced in Taras course to relate the numerical (grid) and algebraic indices assume that indexing starts at 1. Therefore, they have to adapted because in Python, indexing starts at 0.

So in Matlab,

becomes in Python:

And similarly,

becomes:

Boundary Conditions in Python

About

Conversion of Taras Matlab models to Python 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages