| Trees | Indices | Help |
|
|---|
|
|
object --+
|
DuckFrame
A duck-type frame with limited interface.
FIXME: I only implemented the interface for what is needed now. We may need
enhancements down the road, but that should be easy. -YW (Jun 2, 2016)
We can duck-type a msys model (i.e., a L{msys.System} object) into a
`DuckFrame' object, example:
dfr = DuckFrame(msys_model)
Changes on the `DuckFrame' object should NOT affect the original L{model}
object.
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
| box | |||
|
|||
Copy the coordinates, the velocities, and the box matrix of the original model. FIXME: We only support msys.System type of
|
Return the position vector(s).
@type i: Any of the following types:
C{None}: Return the whole position-vector array;
C{int} : C{i} should be a GID, and this function return
position vector of the particle C{i}.
C{Iterable}: C{i} should be a "list" of GIDs, and this function
returns a NEW numpy array of position-vectors of the
specified particles.
|
|
|||
box
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue May 2 06:33:09 2017 | http://epydoc.sourceforge.net |