Skip to content

Commit

Permalink
Merge pull request #230 from psnbaba/iobase
Browse files Browse the repository at this point in the history
added new inlet outlet files
  • Loading branch information
prabhuramachandran committed Aug 19, 2019
2 parents 61d66ca + d617523 commit d5b8dc4
Show file tree
Hide file tree
Showing 33 changed files with 2,528 additions and 513 deletions.
2 changes: 1 addition & 1 deletion docs/source/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Autogenerated from doc strings using sphinx’s autodoc feature.
scheme
solver
solver_interfaces
tools
tools
14 changes: 1 addition & 13 deletions docs/source/reference/solver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@ Module solver tools
Module boundary conditions
===========================

.. automodule:: pysph.sph.bc.inlet
:members:
:undoc-members:

.. automodule:: pysph.sph.bc.outlet
:members:
:undoc-members:

.. automodule:: pysph.sph.bc.inlet_outlet_manager
:members:
:undoc-members:

.. automodule:: pysph.sph.bc.simple_inlet_outlet
:members:
:undoc-members:
:undoc-members:
17 changes: 17 additions & 0 deletions docs/source/tutorial/circular_patch_simple.rst
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,23 @@ the interpolation is desired. This can also be done with the constructor as::

interp = Interpolator(list(parrays.values()), x=x, y=y, z=z)

There are some cases, where one may require a higher order interpolation or
gradient approximation of the property. This can be done by passing a
``method`` for interpolation to the interplator as::

interp = Interpolator(list(parrays.values()), num_points=10000, method='order1')

Currently, PySPH has three method of interpolation namely ``shepard``,
``sph`` and ``order1``. When ``order1`` is set as method then one can get the
higher order interpolation or it's derivative by just passing an extra
argument to the interpolate method suggesting the component. To get
derivative in `x` we can do as::

px = interp.interpolate('p', comp=1)

Here for `comp=0`, the interpolated property is returned and `1`, `2`, `3`
will return gradient in `x`, `y` and `z` directions respectively.

For more details on the class and the available methods, see
:py:class:`pysph.tools.interpolator.Interpolator`.

Expand Down

0 comments on commit d5b8dc4

Please sign in to comment.