I want to solve a (distributed) control problem, that is find an u \in U, such that a costfunctional \mathcal J(y(u),u) becomes minimal, where y and u are connected via a PDE:
-\Delta y(x) + y(x) = (bu)(x), \quad \text{for } x \in \Omega.
Let \Omega=[-1,1] be the computational domain and \Omega_c = [0,0.5] be the domain where the control acts.
I assume the control in U = L^2(0,1). Then the input operator b\colon U \to L^2(-1,1), that maps a u control into the right hand side of the equation, can be defined as
(bu)(x) = \begin{cases} u(2x), \text{ if } x\in \Omega_c=[0,0.5]
\\ 0, \quad \quad \text{ elsewhere } \end{cases}
The associated form will then look like
(bu,v) = \int_{\Omega_c} u(\theta x) v(x) \text{d}x,
where \theta=1/2 is an affine linear mapping, that adjusts the domain of u to \Omega_c.
Is there a built-in functionality for this in fenics?
This will require a (linear) mapping b
between the function spaces, so that one can define the product
B = v*b(w_u)*dx(1)
where v
is a test function (for y) on \Omega, dx(1)
is the measure for \Omega_c, and w_u
is the testfunction for the input space.