2 Star 2 Fork 2

LeoPkuCs / PyPhysLeo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

PyPhysLeo

Description

This is a simulation library for computer graphics which contains following contents: 1.Basic Tetrahedron Hexahedron FEA, Different Material Model including Linear, StVK, Neohookean, spline-design. 2.Basic Peridynamic FEA, Different Material Model including Linear, anisotropic nonlinear basis design. 3.Different Kinds of Time Integration Method, including Explicit Euler, Runge-Kunta, implicit newton-raphson, implicit quasi-newton, gradient descent. 4.Basic Position Based Dynamics

Document

C++ documents is generated by doxygen.

cd PyPhysLeo/doc/source
doxygen PhysLeo.doxygen

this will create the C++ API for PhysLeo lib in PyPhysLeo/doc/build/doxygen/html online document, please refer to

https://leopkucs.gitee.io/pyphysleo

Python documents is generated by sphinx-doc.

cd PyPhysLeo/doc/source
make

this will create the Python API for PyPhysLeo module in PyPhysLeo/doc/build/html

Dependencies

Cuda (Accelleration on Nvidia's Graphics Card) Qt (GUI and Interaction) OpenGL GLEW(Rendering) pybind11 (Python Binding) Eigen (Linear Algebra)

Prerequisite

Python3 (recommend install ananconda3, add it to your system path) QT CMake

Platform

Theoretically speaking, this project can be compiled and used in any platform as long as you have Nvidia's card, cuda and all other prerequisites. However it is only tested on Windows and Linux with x64 architecture.

Build

cd PyPhysLeo (root directory) mkdir build cd build cmake .. make make install

Then you can use PyPhysLeo by import PyPhysLeo in your python code.

Python Binding

binding codes are under "PyBind", name in "py_xx.cpp"

Pytest and Example

Examples of how to use PyPhysLeo, please refer to the test files in "PyTest". test files are all in format "test_xx.py". Run "pytest" at subdirectory "PyTest" to check the correctness of the module

Demo Test

for C++ programmer, please refer to QtApplication subproject. for python programmer, please refer to PyQtApplication subproject. It relies on PyQt5 PyOpenGL, be sure you already have these modules. All you need to do is to create your own scene graph. Now I only create the Stvk Bunny Demo, I will put other demos on as soon as I can.


Feel free to ask me about any problems about this project including compilation, bugs or others. My email is leoxupku@gmail.com. But the best way is still to set up an issue on this project first. Finally, give me a star if you like this project.

The MIT License (MIT) Copyright (c) 2018 LeoPkuCs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

This is a simulation library for computer graphics which contains following contents: 1.Basic Tetrahedron Hexahedron FEA, Different Material Model including Linear, StVK, Neohookean, spline-design. 2.Basic Peridynamic FEA, Different Material Model including Linear, anisotropic nonlinear basis design. 3.Different Kinds of Time Integration Meth... 展开 收起
C++
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/LeoPkuCs/PyPhysLeo.git
git@gitee.com:LeoPkuCs/PyPhysLeo.git
LeoPkuCs
PyPhysLeo
PyPhysLeo
master

搜索帮助