4template <
typename Particle>
9 double timeStepSize = Particle::getSpecies().getMinTimeStepSize();
12 particle.setX( particle.getX() + timeStepSize * particle.getV() );
13 particle.setV( particle.getV() + timeStepSize * particle.getA() );
14 particle.setMoveState(Particle::MoveState::Moved);
19template <
typename Particle>
24 double timeStepSize = Particle::getSpecies().getMinTimeStepSize();
27 particle.setV( particle.getV() + timeStepSize * particle.getA() );
28 particle.setX( particle.getX() + timeStepSize * particle.getV() );
29 particle.setMoveState(Particle::MoveState::Moved);
bool localParticleCanBeUpdatedAndMovedInVertexKernel(const peano4::datamanagement::VertexMarker &marker, const Particle &localParticle)
Can we move (drift) this particle?
void computeExplicitEulerWithGlobalTimeStepSize(const peano4::datamanagement::VertexMarker &marker, Particle &particle)
Update a particle with the explicit Euler.
void computeExplicitEulerCromerWithGlobalTimeStepSize(const peano4::datamanagement::VertexMarker &marker, Particle &particle)
Vertex marker to provide information about selected vertex.