Skip to main content

Plates simulation library

Project description

PyPlatec
========

[![Build Status](https://travis-ci.org/ftomassetti/pyplatec.svg?branch=master)](https://travis-ci.org/ftomassetti/pyplatec)

Plate simulation for python (wrapper of an existing C/C++ library).

Take a look at the simulation at work: http://www.youtube.com/watch?v=bi4b45tMEPE#t=0

The original project is here: http://sourceforge.net/projects/platec/ . That project is part of a Bachelor of Engineering thesis in Metropolia University of Applied Sciences, Helsinki, Finland. The thesis is freely downloadable from http://urn.fi/URN:NBN:fi:amk-201204023993 .

Kudos to the original author: Lauri Viitanen!

Requirements
============

Supported versions:
* Python 2.6
* Python 2.7
* Python 3.2
* Python 3.3
* Python 3.4

C++ compiler supporting C++11

Compile
=======

```
python setup.py build
```

Usage
=====

The library is quite simple:

p = platec.create(seed=3)
while platec.is_finished(p)==0:
platec.step(p)
hm = platec.get_heightmap(p)
platec.destroy(p)


Or if you want more control:

p = platec.create(seed=3, width=1000, height=800,
sea_level=0.65,erosion_period=60,
folding_ratio=0.02,aggr_overlap_abs=1000000,
aggr_overlap_rel=0.33,cycle_count=2,num_plates=10)

Enjoy!

Projects using it
=================

I created this wrapper for using this fantastic piece of code in [lands](http://github.com/ftomassetti/lands)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyPlatec-1.2.9.tar.gz (50.5 kB view details)

Uploaded Source

Built Distributions

PyPlatec-1.2.9-cp34-none-win_amd64.whl (36.6 kB view details)

Uploaded CPython 3.4 Windows x86-64

PyPlatec-1.2.9-cp34-none-win32.whl (30.5 kB view details)

Uploaded CPython 3.4 Windows x86

PyPlatec-1.2.9-cp33-none-win_amd64.whl (36.6 kB view details)

Uploaded CPython 3.3 Windows x86-64

PyPlatec-1.2.9-cp33-none-win32.whl (30.5 kB view details)

Uploaded CPython 3.3 Windows x86

PyPlatec-1.2.9-cp27-none-win_amd64.whl (40.4 kB view details)

Uploaded CPython 2.7 Windows x86-64

PyPlatec-1.2.9-cp27-none-win32.whl (33.2 kB view details)

Uploaded CPython 2.7 Windows x86

File details

Details for the file PyPlatec-1.2.9.tar.gz.

File metadata

  • Download URL: PyPlatec-1.2.9.tar.gz
  • Upload date:
  • Size: 50.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyPlatec-1.2.9.tar.gz
Algorithm Hash digest
SHA256 19776f6a20b274f78d8371e868c1e508f915ade1e110a4b6219b4f6637566c01
MD5 ddd818be1077eaa7e714e373edaf758c
BLAKE2b-256 988bfb0c626fae1e44f9a8667fcf0592599f86dfae68843fc9f6026a4dbaae29

See more details on using hashes here.

File details

Details for the file PyPlatec-1.2.9-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for PyPlatec-1.2.9-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 9f9bb8bdc8fdfa5d7dcf7f456ee177de60d9b4bd02363f2eda7b9ef02ab61ee5
MD5 7cd0e5a132c31c885082b5f9080bc449
BLAKE2b-256 931e7e0945b3fcd9d0c6e9e2b0ae617a7e3d7643583ca24e1c5549f1bb69f2b4

See more details on using hashes here.

File details

Details for the file PyPlatec-1.2.9-cp34-none-win32.whl.

File metadata

File hashes

Hashes for PyPlatec-1.2.9-cp34-none-win32.whl
Algorithm Hash digest
SHA256 87fa8bb3a2258a407adf559341688292448127d0b41e2341e65dd9aeffe43e7a
MD5 6b9bbda3d063e65c828685fc04e7978f
BLAKE2b-256 3a69777f4efb6d363cbe80588a29f74e4fed71c9092169a71532a06d7a93f927

See more details on using hashes here.

File details

Details for the file PyPlatec-1.2.9-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for PyPlatec-1.2.9-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 9e23d634769dd3145507ebeb903face530ca211ba67f9cc110de6f31b86c2812
MD5 5f96df46b4ccddec6f290078dbb99caf
BLAKE2b-256 e71b6f58fd4a9e4bed056497f76fb93c57e3e1218ad76ea16d31dd99665e0879

See more details on using hashes here.

File details

Details for the file PyPlatec-1.2.9-cp33-none-win32.whl.

File metadata

File hashes

Hashes for PyPlatec-1.2.9-cp33-none-win32.whl
Algorithm Hash digest
SHA256 c47f3bfce451a189f14915bb08e25d9d2d635866333b34cea5e1b0c24b67a36d
MD5 ffe2cd96ef713890e3e04e7e303edc77
BLAKE2b-256 071a41e5947ee95f19ad11fc1407f347a7f979a26e553ff9d3e49498314d5e76

See more details on using hashes here.

File details

Details for the file PyPlatec-1.2.9-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for PyPlatec-1.2.9-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 22daad1e13dd950895b8388ebfaaace34fd7d9e993b1f51cd85047da12356701
MD5 e538a5bd99fec27fc92c37f2819424f3
BLAKE2b-256 0bbaf806eba45fc07e4359af929d37d9c7db3c8835da83531f75bcf65da93dd6

See more details on using hashes here.

File details

Details for the file PyPlatec-1.2.9-cp27-none-win32.whl.

File metadata

File hashes

Hashes for PyPlatec-1.2.9-cp27-none-win32.whl
Algorithm Hash digest
SHA256 7ad45dfc9570f2fbb0f70b8bf6190419cb6836ae89ddbeff7bdf614975ed9e43
MD5 1257565941beaf3b68ca91f6bf9a3b4d
BLAKE2b-256 70ff485e00dc609d154d35c74a0910a24936ffe6af56146dcfaaa3cd1b10d7a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page