File: tools.rst

package info (click to toggle)
pysph 1.0~b0~20191115.gite3d5e10-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,932 kB
  • sloc: python: 44,852; sh: 429; cpp: 206; makefile: 202
file content (73 lines) | stat: -rw-r--r-- 1,555 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.. py:currentmodule:: pysph.tools

Miscellaneous Tools for PySPH
==============================

.. contents::
    :local:
    :depth: 1

Input/Output of data files
---------------------------

The following functions are handy functions when processing output generated by
PySPH or to generate new files.

.. autofunction:: pysph.solver.utils.dump

.. autofunction:: pysph.solver.utils.get_files

.. autofunction:: pysph.solver.utils.load

.. autofunction:: pysph.solver.utils.load_and_concatenate


Interpolator
------------

This module provides a convenient class called
:py:class:`interpolator.Interpolator` which can be used to interpolate any
scalar values from the points onto either a mesh or a collection of other
points.  SPH interpolation is performed with a simple Shepard filtering.

.. automodule:: pysph.tools.interpolator
    :members:
    :undoc-members:


SPH Evaluator
-------------

This module provides a class that allows one to evaluate a set of equations on
a collection of particle arrays. This is very handy for non-trivial
post-processing that needs to be quick.

.. automodule:: pysph.tools.sph_evaluator
    :members:
    :undoc-members:


GMsh input/output
------------------


.. automodule:: pysph.tools.gmsh
    :members:
    :undoc-members:

Mayavi Viewer
-------------

.. automodule:: pysph.tools.mayavi_viewer
   :members:
   :undoc-members:

STL Converter
-------------

The following function can be used to convert an STL file to a set of grid
points.

.. autofunction:: pysph.tools.geometry_stl.get_stl_surface