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.6.tar.gz (46.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for PyPlatec-1.2.6.tar.gz
Algorithm Hash digest
SHA256 275331cba7a6581f24c5e7c91e80b234a06f3df1b5edc2f52f36e9f47d1aec82
MD5 1248f1ace91aabdbed9d918dfde49fe3
BLAKE2b-256 b54950e303d6737fe82718fe3f1af2ae398ffa426f50d45492abca3bc3a9578b

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