I am trying to solve the following set of equations:
$$\frac{\partial P_x}{\partial t} + \frac{\partial D}{\partial x} = 0$$
$$\frac{\partial P_y}{\partial t} + \frac{\partial D}{\partial y} = 0$$
For P with some boundary conditions, where D is known.
The form I use with backward Euler is:
F3 = (1.0/dt)*dot(grad(p_)-grad(p_n), v)*dx + dot(grad(D), v)*dx
a3 = lhs(F3)
L3 = rhs(F3)
And then to apply the boundary conditions for P I use:
A3 = assemble(a3)
bcp.apply(A3)
When I try running this I get and error in the bcp line:
TypeError: in method 'DirichletBC_apply', argument 2 of type 'dolfin::GenericVector &'
What does the error mean? How could I apply the boundary conditions properly?