The motion of dust particles in a cometary environment is a complex process, and a precise description of the trajectories of grains within the coma requires adavnced hydrodynamic models, taking into account the interaction between gas and dust released from the surface.
In the tail, dust and gas are decoupled and the only significant forces affecting the grain trajectories are the solar gravity and radiation pressure. Both forces depend on the square of the heliocentric distance but work in opposite directions. Their sum can be seen as a reduced solar gravity, and the equation of motion is simply m*a=(1-beta)*solar_gravity,
where beta is the ratio radiation_pressure/solar_gravity, and is inversely proportional to the size of the grains for particles larger than 1 micron.

From this relation, Finson & Probstein (1968) proposed a model which describes the full tail geometry with a grid of synchrones and syndynes; lines representing respectively the locations of particles released at a same time, or with the same beta. This model is simple because it considers only particles released in the orbital plane of the comet, and with zero initial velocity, but it provides a very good approximation of the shape of the tail, and has been used successfully to study many comets.
One of the many strengths of this model is the possibility to date events in the tail. For instance, one can understand if regions of higher density are related to outbursts of the nucleus, or are a result of fragmentation of large chunks of material within the trail. It can also be used to disentangle between continuous activity, short outbursts, or impacts, when all these events produce a feature which at first look like a normal cometary tail.

This webpage proposes a javascript inplementation of a FP-like model, using a new integration approach. A detailed description of the model can be found in Vincent et al (ACM, 2014).
Object name (optional):

Orbital elements (custom / HORIZONS)
e (eccentricity):
q (perihelion distance in AU):
i (inclination):
OM (longitude of ascending node):
w (argument of perihelion):
Tp (perihelion date in JD):

Simulation parameters
comma separated list of times
of emission, in days from Tobs:
comma separated list of beta:
integration step (days):
warning: unstable if < 0.5 day
Tobs (yyyy, mm, dd):


Output
Click on the images to load example simulations:

P/2013 P5, Hubble,
D. Jewitt et al,
2013-09-10

P/2013 P5, Hubble,
D. Jewitt et al,
2013-09-23

C/2006 P1,
G. Garrad,
2007-01-20

C/2011 L4,
S. Korotkiy,
2013-03-24T21:00

References

Diagrams are rendered with the Javascript library Flot.js.

Finson, M. L., Probstein, R. F., 1968, A theory of dust comets. I. Model and equations, AJ, 154, 353–380
Vincent, J.-B., Comet-toolbox: numerical simulations of cometary dust tails in your browser, Asteroids Comets Meteors conference, 2014, Helsinki, (pdf).