File: tools.rst

package info (click to toggle)
pysph 1.0~b2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,100 kB
  • sloc: python: 58,494; makefile: 212; cpp: 206; sh: 165
file content (88 lines) | stat: -rw-r--r-- 2,252 bytes parent folder | download
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.. 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

Dump XDMF
~~~~~~~~~~~~~
.. automodule:: pysph.tools.dump_xdmf
    :members:
    :undoc-members:

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:

Mesh Converter
--------------

The following functions can be used to convert a mesh file supported by
`meshio <https://github.com/nschloe/meshio>`_ to a set of surface points.

.. autofunction:: pysph.tools.read_mesh.mesh2points

Particle Packer
---------------

The following functions can be used to create a domain with particle packed
around a solid surface in both 2D and 3D.

.. autofunction:: pysph.tools.geometry.get_packed_periodic_packed_particles
.. autofunction:: pysph.tools.geometry.get_packed_2d_particles_from_surface_coordinates
.. autofunction:: pysph.tools.geometry.get_packed_2d_particles_from_surface_file
.. autofunction:: pysph.tools.geometry.get_packed_3d_particles_from_surface_file
.. autofunction:: pysph.tools.geometry.create_fluid_around_packing