step/stepcore
particle.h
Go to the documentation of this file.
ChargedParticle(Vector2d position=Vector2d::Zero(), Vector2d velocity=Vector2d::Zero(), double mass=1, double charge=0)
Constructs a charged particle.
Definition: particle.h:212
void setMomentumVariance(const Vector2d &momentumVariance)
Set momentum variance (will modify velocity variance)
Definition: particle.cc:82
void addForce(const double *force, const double *forceVariance)
Add force and (possibly) its variance to force accomulator.
Definition: particle.cc:154
void setVelocityVariance(const Vector2d &velocityVariance)
Set velocity variance.
Definition: particle.h:60
void applyForceVariance(const Vector2d &forceVariance)
Increment force variance.
Definition: particle.h:73
void resetForce(bool resetVariance)
Reset force accomulator and (possibly) its variance to zero.
Definition: particle.cc:165
ParticleErrors * particleErrors()
Get (and possibly create) ParticleErrors object.
Definition: particle.h:164
void setMomentum(const Vector2d &momentum)
Set momentum of the particle (will modify only velocity)
Definition: particle.h:145
Item, Body, Force and Tool interfaces, World class.
int variablesCount()
Get count of dynamic variables (not including velocities)
Definition: particle.h:152
ChargedParticleErrors * chargedParticleErrors()
Get (and possibly create) ChargedParticleErrors object.
Definition: particle.h:222
Vector2d accelerationVariance() const
Get acceleration variance.
Offset of particle position in variables array.
Definition: particle.h:109
void getVariables(double *position, double *velocity, double *positionVariance, double *velocityVariance)
Copy positions, velocities and (possibly) its variances to arrays.
Definition: particle.cc:115
Particle(Vector2d position=Vector2d::Zero(), Vector2d velocity=Vector2d::Zero(), double mass=1)
Constructs a particle.
Definition: particle.cc:110
void getAccelerations(double *acceleration, double *accelerationVariance)
Copy acceleration (forces left-multiplied by inverse mass) and (possibly) its variances to arrays...
Definition: particle.cc:141
Object, MetaObject and MetaProperty classes.
void getInverseMass(VectorXd *inverseMass, DynSparseRowMatrix *variance, int offset)
Get inverse mass and (possibly) its variance matrixes.
Definition: particle.cc:171
void setKineticEnergy(double kineticEnergy)
Set kinetic energy of the particle (will modify only velocity)
Definition: particle.cc:183
void setPositionVariance(const Vector2d &positionVariance)
Set position variance.
Definition: particle.h:54
Eigen::DynamicSparseMatrix< double, Eigen::RowMajor > DynSparseRowMatrix
Definition: types.h:38
ObjectErrors * createObjectErrors()
Definition: particle.h:226
void setVariables(const double *position, const double *velocity, const double *positionVariance, const double *velocityVariance)
Set positions, velocities and (possibly) its variances using values in arrays and also reset accelera...
Definition: particle.cc:127
void setKineticEnergyVariance(double kineticEnergyVariance)
Set kinetic energy variance (will modify velocity variance)
Definition: particle.cc:94
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.