Variational structures for the Fokker--Planck equation with general Dirichlet boundary conditions | Synapse