  In this paper we consider the evolution of regular closed elastic curves
$\gamma$ immersed in $\R^n$. Equipping the ambient Euclidean space with a
vector field $\ca:\R^n\rightarrow\R^n$ and a function $f:\R^n\rightarrow\R$, we
assume the energy of $\gamma$ is smallest when the curvature $\k$ of $\gamma$
is parallel to $\c = (\ca \circ \gamma) + (f \circ \gamma) \tau$, where $\tau$
is the unit vector field spanning the tangent bundle of $\gamma$. This leads us
to consider a generalisation of the Helfrich functional $\SH$, defined as the
sum of the integral of $|\k-\c|^2$ and $\lambda$-weighted length. We primarily
consider the case where $f:\R^n\rightarrow\R$ is uniformly bounded in
$C^\infty(\R^n)$ and $\ca:\R^n\rightarrow\R^n$ is an affine transformation. Our
first theorem is that the steepest descent $L^2$-gradient flow of $\SH$ with
smooth initial data exists for all time and subconverges to a smooth solution
of the Euler-Lagrange equation for a limiting functional. We additionally
perform some asymptotic analysis. In the broad class of gradient flows for
which we obtain global existence and subconvergence, there exist many examples
for which full convergence of the flow does not hold. This may manifest in its
simplest form as solutions translating or spiralling off to infinity. We prove
that if either $\ca$ and $f$ are constant, the derivative of $\ca$ is
invertible and non-vanishing, or $(f,\gamma_0)$ satisfy a `properness'
condition, then one obtains full convergence of the flow and uniqueness of the
limit. This last result strengthens a well-known theorem of Kuwert, Sch\"atzle
and Dziuk on the elastic flow of closed curves in $\R^n$ where $f$ is constant
and $\ca$ vanishes.
