BMPM2D_Python

所属分类:数学计算
开发工具:Python
文件大小:2227KB
下载次数:10
上传日期:2018-12-14 16:42:49
上 传 者吉祥水
说明:  python编写的二维物质点方法, 可以用于学习。
(Two-dimensional material point method written by Python)

文件列表:
BMPM2D_Python\examples\bounce_2.py (8672, 2018-09-23)
BMPM2D_Python\examples\ex_bounce.py (9549, 2018-09-23)
BMPM2D_Python\examples\ex_rotate.py (8019, 2018-09-23)
BMPM2D_Python\examples\ex_three_contact.py (5753, 2018-09-23)
BMPM2D_Python\examples\four_balls.py (6924, 2018-09-23)
BMPM2D_Python\examples\mpm_imports.py (1820, 2018-09-23)
BMPM2D_Python\examples\plotTest.py (2504, 2018-09-23)
BMPM2D_Python\examples\two_balls.py (8611, 2018-09-23)
BMPM2D_Python\examples\util.py (1687, 2018-09-23)
BMPM2D_Python\examples\__init__.py (1142, 2018-09-23)
BMPM2D_Python\Manuals\00EndMatter.tex (386, 2018-09-23)
BMPM2D_Python\Manuals\00FrontMatter.tex (1933, 2018-09-23)
BMPM2D_Python\Manuals\00LatexMacros.tex (26496, 2018-09-23)
BMPM2D_Python\Manuals\00LayoutStructure.tex (12541, 2018-09-23)
BMPM2D_Python\Manuals\00Preamble.tex (8694, 2018-09-23)
BMPM2D_Python\Manuals\BMPM2DManual.pdf (1204951, 2018-09-23)
BMPM2D_Python\Manuals\BMPM2DManual.tex (62273, 2018-09-23)
BMPM2D_Python\Manuals\ConvertLaTeX2Wiki\BMPM2DManual.wiki (49635, 2018-09-23)
BMPM2D_Python\Manuals\ConvertLaTeX2Wiki\conv.py (11559, 2018-09-23)
BMPM2D_Python\Manuals\ConvertLaTeX2Wiki\conver.py (6670, 2018-09-23)
BMPM2D_Python\Manuals\ConvertLaTeX2Wiki\temp.tex (60082, 2018-09-23)
BMPM2D_Python\Manuals\ConvertLaTeX2Wiki\temp.wiki (58160, 2018-09-23)
BMPM2D_Python\Manuals\Figures\ball_goblet_damage.png (553490, 2018-09-23)
BMPM2D_Python\Manuals\Figures\fourballs_vel.png (160771, 2018-09-23)
BMPM2D_Python\PyEvtk\.hgtags (96, 2018-09-23)
BMPM2D_Python\PyEvtk\.hg_archival.txt (149, 2018-09-23)
BMPM2D_Python\PyEvtk\MANIFEST (252, 2018-09-23)
BMPM2D_Python\PyEvtk\setup.py (2798, 2018-09-23)
BMPM2D_Python\PyEvtk\src\cevtk.pyx (7815, 2018-09-23)
BMPM2D_Python\PyEvtk\src\examples\group.py (2623, 2018-09-23)
BMPM2D_Python\PyEvtk\src\examples\image.py (2673, 2018-09-23)
BMPM2D_Python\PyEvtk\src\examples\lowlevel.py (3615, 2018-09-23)
BMPM2D_Python\PyEvtk\src\examples\points.py (2755, 2018-09-23)
BMPM2D_Python\PyEvtk\src\examples\rectilinear.py (2965, 2018-09-23)
BMPM2D_Python\PyEvtk\src\examples\structured.py (3444, 2018-09-23)
BMPM2D_Python\PyEvtk\src\examples\__init__.py (1, 2018-09-23)
BMPM2D_Python\PyEvtk\src\hl.py (12960, 2018-09-23)
BMPM2D_Python\PyEvtk\src\LICENSE (2017, 2018-09-23)
BMPM2D_Python\PyEvtk\src\vtk.py (19063, 2018-09-23)
... ...

INTRODUCTION: ============= EVTK (Export VTK) package allows exporting data to binary VTK files for visualization and data analysis with any of the visualization packages that support VTK files, e.g. Paraview, VisIt and Mayavi. EVTK does not depend on any external library (e.g. VTK), so it is easy to install in different systems. The package is composed of a set of Python files and a small C/Cython library that provides performance critical routines. EVTK provides low and high level interfaces. While the low level interface can be used to export data that is stored in any type of container, the high level functions make easy to export data stored in Numpy arrays. INSTALLATION: ============= Go to the source directory and type: python setup.py install DOCUMENTATION: ============== This file together with the included examples in the examples directory in the source tree provide enough information to start using the package. DESIGN GUIDELINES: ================== The design of the package considered the following objectives: 1. Self-contained. The package does not require any external library with the exception of Numpy, which is becoming a standard package in many Python installations. 2. Flexibility. It is possible to use EVTK to export data stored in any container and in any of the grid formats supported by VTK by using the low level interface. 3. Easy of use. The high level interface makes very easy to export data stored in Numpy arrays. The high level interface provides functions to export most of the grids supported by VTK: image data, rectilinear and structured grids. It also includes a function to export point sets and associated data that can be used to export results from particle and meshless numerical simulations. 4. Performance. The aim of the package is to be used as a part of post-processing tools. Thus, good performance is important to handle the results of large simulations. To achieve this goal, performance critical routines are implemented as part of a small C extension. REQUIREMENTS: ============= - Numpy. Tested with Numpy 1.5.0. - Cython 0.12. Cython is only required to update the included C file but not to compile the package. The package has been tested on: - MacOSX 10.6 x86-***. - Ubuntu 10.04 x86-*** guest running on VMWare Fusion. DEVELOPER NOTES: ================ It is useful to build and install the package to a temporary location without touching the global python site-packages directory while developing. To do this, while in the root directory, one can type: 1. python setup.py build --debug install --prefix=./tmp 2. export PYTHONPATH=./tmp/lib/python2.6/site-packages/:$PYTHONPATH NOTE: you may have to change the Python version depending of the installed version on your system. To test the package one can run some of the examples, e.g.: ./tmp/lib/python2.6/site-packages/examples/points.py That should create a points.vtu file in the current directory.

近期下载者

相关文件


收藏者