# PointSource¶

class dolfin.cpp.fem.PointSource(*args)

Bases: object

This class provides an easy mechanism for adding a point source (Dirac delta function) to the right-hand side vector in a variational problem. The associated function space must be scalar in order for the inner product with the (scalar) Dirac delta function to be well defined.

• PointSource(V, p, magnitude=1.0)

Create point source at given point of given magnitude

• PointSource(V, p, magnitude=1.0)

Create point source at given point of given magnitude

apply()

Apply (add) point source to right-hand side vector

thisown

The membership flag