Optimal Control of Poisson Equation #1050
Unanswered
MartinK-99
asked this question in
Q&A
Replies: 1 comment 3 replies
-
If I understand correctly you should be able to use 0th order discontinuous Lagrange elements ( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there, I'm working on an optimal control problem which minimizes some cost functional$J(y,u)$ under the constraint $\Delta y = u$ in the domain $Ω = (0,1) \times (0,1)$ with $y = 0$ on the boundary. Here $u$ denotes the control and $y$ the state variable. When discretizing the constraint equation using FEM, one typically defines piecewise linear basis functions $\lbrace \phi_i,\ldots,\phi_l \rbrace$ for the triangulation. The control variables are assumed to be constant on each triangle for which one defines trial functions $e_i$ , $i=1,\ldots,m$ which are equal to 1 within the triangle, 0 elsewhere. Therefore,
$y(x) = \sum_{i=1}^l y_i \phi_i(x), \quad u(x) = \sum_{i=1}^m u_i e_i(x)$ $y$ and $u$ are not the same! Inserting this in the weak formulation for the poisson equation leads to
$\int_\Omega \sum_{i=1}^l y_i \nabla \phi_i \cdot \nabla \phi_j dx = \int_\Omega \sum_{i=1}^m u_i e_i \phi_j dx$
$K y = Bu$ $K$ and another matrix $B \in \mathbb{R}^{l\times m}$ of elements $b_{ij} = \int_\Omega \phi_i e_j dx$ [1].
and notice, that the dimension of
such that in total the linear equation system is
with stiffness matrix
My question is, how do I define the trial functions$e_i$ using Ferrite and how do I assemble the matrix $B$ ? My attempts so far have failed at defining the functions and from there I'm not sure how to even use the DofHandler to create a sparsity pattern for a non square matrix.
I'm grateful for your help and suggestions.
[1] Tröltzsch, Fredi. Optimal Control of Partial Differential Equations : Theory, Methods, and Applications. American Mathematical Society, 2010.
Beta Was this translation helpful? Give feedback.
All reactions