public class SettlingRungeKuttaIntegrator extends RungeKuttaIntegrator
Integrator.METHOD
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SETTLING_AGE
Default settling age (50).
|
s
Constructor and Description |
---|
SettlingRungeKuttaIntegrator(ParticleSystem s)
Sets up the integrator to be used by the given particle system.
|
SettlingRungeKuttaIntegrator(ParticleSystem s,
int settlingAge)
Creates the integrator to be applied to the given particle system with the given settling age.
|
Modifier and Type | Method and Description |
---|---|
protected Function<Particle,?> |
updater(java.util.Map<Particle,Vector3D> k1f,
java.util.Map<Particle,Vector3D> k1v,
java.util.Map<Particle,Vector3D> k2f,
java.util.Map<Particle,Vector3D> k2v,
java.util.Map<Particle,Vector3D> k3f,
java.util.Map<Particle,Vector3D> k3v,
java.util.Map<Particle,Vector3D> k4f,
java.util.Map<Particle,Vector3D> k4v,
java.util.Map<Particle,Vector3D> oPos,
java.util.Map<Particle,Vector3D> oVel,
float deltaT)
Provides the function that updates the particles in the system.
|
allocateParticles, kApplier, kFunctor, step
public static final int DEFAULT_SETTLING_AGE
public SettlingRungeKuttaIntegrator(ParticleSystem s, int settlingAge)
s
- Particle system to be associated with this integrator.settlingAge
- Age in timestep units over which the system is to stabalise.public SettlingRungeKuttaIntegrator(ParticleSystem s)
s
- Particle system upon which to perform the integration.protected Function<Particle,?> updater(java.util.Map<Particle,Vector3D> k1f, java.util.Map<Particle,Vector3D> k1v, java.util.Map<Particle,Vector3D> k2f, java.util.Map<Particle,Vector3D> k2v, java.util.Map<Particle,Vector3D> k3f, java.util.Map<Particle,Vector3D> k3v, java.util.Map<Particle,Vector3D> k4f, java.util.Map<Particle,Vector3D> k4v, java.util.Map<Particle,Vector3D> oPos, java.util.Map<Particle,Vector3D> oVel, float deltaT)
updater
in class RungeKuttaIntegrator
k1f
- K1 forces.k1v
- K1 velocities.k2f
- K2 forces.k2v
- K2 velocities.k3f
- K3 forces.k3v
- K3 velocities.k4f
- K4 forces.k4v
- K4 velocities.oPos
- Original position.oVel
- Original velocity.deltaT
- Change in time units.