Solving 1d problem with numerically specified source

Hello everyone
I am trying to solve a Poisson like problem in 1d, which looks like this:

d/dx^2(T) = f with Dirichlet on the left 
and V.Neumann BCs on the right

I need to specify f using interpolating functions on the mesh, is this possible?

Thanks a lot.

I would suggest getting familiar with the demos: Poisson equation — DOLFIN documentation

1 Like