This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Making a Lagrangian time dependent

0 votes

Hey everyone,

Just curious,

L = (y - d)**2 * dx + Constant(alpha) * u**2 * dx \
  + inner(grad(y), grad(p)) * dx - u * p * dx

If I wanted to make it so that this also is defined on a time interval [0,T], how would I go about that. For my problem, my Lagrangian has a L^2[0,T] norm, so I'm curious how we incorporate this. I would like to solve the problem like was done here, just time dependent. I would value someones input very much.

https://fenicsproject.org/qa/9936/problem-constraint-optimization-nonlinearvariationalsolver

asked May 13, 2017 by rvogt2 FEniCS Novice (270 points)
...