GitHub - alan-turing-institute/PeriPy: Code base for PeriPy, a lightweight, open-source and high-performance package for peridynamic simulations written in Python - a collaboration between Exeter, Cambridge & Turing (original) (raw)

PeriPy

Build Status codecov

PeriPy, a collaboration between Exeter, Cambridge & the Alan Turing Institute, is a lightweight, open-source and high-performance python package for solving bond-based peridynamics (BBPD) problems in solid mechanics. It is implemented in Python and the performance critical parts are implemented in Cython and PyOpenCL.

PeriPy allows users to write their code in pure Python. Simulations are then executed seamlessly using high performance OpenCL code.

Features

Get started (preferred)

Building and Installation

python  
import pyopencl  
pyopencl.get_platforms()  

The error pyopencl._cl.LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR means that the OpenCL device driver is not correctly installed.

Running examples

Running the tests

The tests for this project use pytest. To run the tests yourself,

Get started from the GitHub repository (for developers)

Building and Installation

python  
import pyopencl  
pyopencl.get_platforms()  

The error pyopencl._cl.LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR means that the OpenCL device driver is not correctly installed.

Running examples

Running the tests

The tests for this project use pytest. To run the tests yourself,