![]() |
#include <ParticleSystem.h>
Inheritance diagram for dolfin::ParticleSystem:


Public Member Functions | |
| ParticleSystem (unsigned int n, unsigned int dim=3) | |
| Constructor. | |
| ~ParticleSystem () | |
| Destructor. | |
| virtual real | x0 (unsigned int i) |
| Return x-component of initial position for particle i. | |
| virtual real | y0 (unsigned int i) |
| Return y-component of initial position for particle i. | |
| virtual real | z0 (unsigned int i) |
| Return z-component of initial position for particle i. | |
| virtual real | vx0 (unsigned int i) |
| Return x-component of initial velocity for particle i. | |
| virtual real | vy0 (unsigned int i) |
| Return x-component of initial velocity for particle i. | |
| virtual real | vz0 (unsigned int i) |
| Return x-component of initial velocity for particle i. | |
| virtual real | Fx (unsigned int i, real t) |
| Return x-component of the force on particle i at time t. | |
| virtual real | Fy (unsigned int i, real t) |
| Return y-component of the force on particle i at time t. | |
| virtual real | Fz (unsigned int i, real t) |
| Return z-component of the force on particle i at time t. | |
| virtual real | mass (unsigned int i, real t) |
| Return mass of particle i at time t. | |
| real | u0 (unsigned int i) |
| Return initial value for ODE. | |
| real | f (const Vector &u, real t, unsigned int i) |
| Return right-hand side for ODE. | |
Protected Member Functions | |
| real | x (unsigned int i) const |
| real | y (unsigned int i) const |
| real | z (unsigned int i) const |
| real | vx (unsigned int i) const |
| real | vy (unsigned int i) const |
| real | vz (unsigned int i) const |
| real | dist (unsigned int i, unsigned int j) const |
Protected Attributes | |
| unsigned int | n |
| unsigned int | dim |
| unsigned int | offset |
| const Vector * | u |
F = m * a
where F is the force, m is the mass, and a is the acceleration.
Positions and velocities are stored in the following order in the solution vector u(t):
u = (x_0, y_0, z_0, ... , x_n, y_n, z_n, x_0', y_0', z_0', ... , x_n', y_n', z_n')
|
||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
||||||||||||
|
|
|
||||||||||||||||
|
Return right-hand side for ODE.
Implements dolfin::ODE. |
|
||||||||||||
|
Return x-component of the force on particle i at time t.
Reimplemented in Benchmark, Spring, Lattice, Simple, and Benchmark. |
|
||||||||||||
|
Return y-component of the force on particle i at time t.
Reimplemented in Lattice. |
|
||||||||||||
|
Return z-component of the force on particle i at time t.
|
|
||||||||||||
|
Return mass of particle i at time t.
Reimplemented in Lattice. |
|
|
Return initial value for ODE.
Implements dolfin::ODE. |
|
|
|
|
|
Return x-component of initial velocity for particle i.
Reimplemented in Benchmark. |
|
|
|
|
|
Return x-component of initial velocity for particle i.
|
|
|
|
|
|
Return x-component of initial velocity for particle i.
|
|
|
|
|
|
Return x-component of initial position for particle i.
Reimplemented in Benchmark, Spring, Lattice, Simple, and Benchmark. |
|
|
|
|
|
Return y-component of initial position for particle i.
Reimplemented in Lattice. |
|
|
|
|
|
Return z-component of initial position for particle i.
|
|
|
|
|
|
|
|
|
|
|
|
|
![]()
Documentation automatically generated with Doxygen on 10 Sep 2004.