DMSwarmSetVelocityFunction#

Set the function setting initial particle velocities

Synopsis#

#include "petscdmswarm.h"   
PetscErrorCode DMSwarmSetVelocityFunction(DM sw, PetscSimplePointFunc velFunc)

Not Collective

Input parameters#

  • dm - the DMSWARM

  • coordFunc - the function setting initial particle velocities

See Also#

DMSWARM, DMSwarmGetVelocityFunction(), DMSwarmSetCoordinateFunction(), DMSwarmInitializeVelocities()

Level#

intermediate

Location#

src/dm/impls/swarm/swarmpic.c


Edit on GitLab

Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages