Jump to content

Adjoint equation: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
SavJ (talk | contribs)
mNo edit summary
SavJ (talk | contribs)
Made use of adjoint definition in the adjoint PDE derivation
Line 12: Line 12:
</math>
</math>


Let the output of interest be:
Let the output of interest be the following linear functional:


:<math>
:<math>
Line 36: Line 36:
</math>
</math>


Transform derivatives of <math>u</math> into derivatives of <math>w</math>.
Then, consider an infinitesimal perturbation to <math>L(w)</math> which produces an infinitesimal change in <math>u</math> as follows:


:<math>
:<math>
\begin{align}
\begin{align}
B(u + u', w) &= L(w) + L'(w) \\
\int_\Omega \psi \nabla \cdot \left(\vec{c} u - \mu \nabla u \right) dV &= 0 \\
B(u', w) &= L'(w).
\int_{\partial \Omega} \psi \left(\vec{c} u - \mu \nabla u \right) \cdot \vec{n} dA - \int_\Omega \nabla \psi \cdot \left(\vec{c} u - \mu \nabla u \right) dV &= 0 \qquad \text{(Integration by parts)} \\
\end{align}
</math>
Note that the solution perturbation <math>u'</math> must vanish at the boundary, since the Dirichlet boundary condition does not admit variations on <math>\partial \Omega</math>.

Using the weak form above and the definition of the adjoint <math>\psi(\vec{x})</math> given below:

:<math>
\begin{align}
L'(\psi) &= J(u') \\
B(u', \psi) &= J(u'),
\end{align}
</math>

we obtain:

:<math>
\begin{align}
\int_{\partial \Omega} \psi \left(\vec{c} u' - \mu \nabla u' \right) \cdot \vec{n} dA - \int_\Omega \nabla \psi \cdot \left(\vec{c} u' - \mu \nabla u' \right) dV &= \int_\Omega g u' \ dV
\end{align}
</math>


Next, transform derivatives of <math>u'</math> into derivatives of <math>\psi</math>:

:<math>
\begin{align}
\int_{\partial \Omega} \psi \left(\vec{c} u - \mu \nabla u \right) \cdot \vec{n} dA - \int_\Omega \nabla \psi \cdot \left(\vec{c} u - \mu \nabla u \right) dV - \int_\Omega g u' \ dV &= 0 \\
\int_{\partial \Omega} \psi \left(\vec{c} u - \mu \nabla u \right) \cdot \vec{n} dA + \int_\Omega u \left(-\vec{c} \cdot \nabla \psi \right) dV + \int_\Omega \nabla u \cdot \left( \mu \nabla \psi \right) dV &= 0 \\
\int_{\partial \Omega} \psi \left(\vec{c} u - \mu \nabla u \right) \cdot \vec{n} dA + \int_\Omega u \left(-\vec{c} \cdot \nabla \psi \right) dV + \int_\Omega \nabla u \cdot \left( \mu \nabla \psi \right) dV &= 0 \\
\int_{\partial \Omega} \psi \left(\vec{c} u - \mu \nabla u \right) \cdot \vec{n} dA + \int_\Omega u \nabla \cdot \left( - \vec{c} \psi \right) dV + \int_{\partial \Omega} u \left( \mu \nabla \psi \right) \cdot \vec{n} dA - \int_\Omega u \nabla \cdot \left( \mu \nabla \psi \right) dV &= 0 \qquad \text{(Repeat integration by parts on last volume term)} \\
\int_{\partial \Omega} \psi \left(\vec{c} u - \mu \nabla u \right) \cdot \vec{n} dA + \int_\Omega u \nabla \cdot \left( - \vec{c} \psi \right) dV + \int_{\partial \Omega} u \left( \mu \nabla \psi \right) \cdot \vec{n} dA - \int_\Omega u \nabla \cdot \left( \mu \nabla \psi \right) dV &= 0 \qquad \text{(Repeat integration by parts on last volume term)} \\

Revision as of 05:19, 8 March 2017

An adjoint equation is a linear differential equation, usually derived from its primal equation using integration by parts. Gradient values with respect to a particular quantity of interest can be efficiently calculated by solving the adjoint equation. Methods based on solution of adjoint equations are used in wing shape optimization, fluid flow control and uncertainty quantification. For example this is an Itō stochastic differential equation. Now by using Euler scheme, we integrate the parts of this equation and get another equation, , here is a random variable, later one is an adjoint equation.

Example: Advection-Diffusion PDE

Consider the following linear, scalar advection-diffusion equation for the primal solution , in the domain with Dirichlet boundary conditions:

Let the output of interest be the following linear functional:

Derive the weak form by multiplying the primal equation with a weighting function and performing integration by parts:

where,

Then, consider an infinitesimal perturbation to which produces an infinitesimal change in as follows:

Note that the solution perturbation must vanish at the boundary, since the Dirichlet boundary condition does not admit variations on .

Using the weak form above and the definition of the adjoint given below:

we obtain:


Next, transform derivatives of into derivatives of :

The adjoint PDE and its boundary conditions can be deduced from the last equation above. Since is generally non-zero within the domain , it is required that be zero in , in order for the volume term to vanish. Similarly, since the primal flux is generally non-zero at the boundary, we require to be zero there in order for the first boundary term to vanish. The second boundary term vanishes trivially since the primal boundary condition imposes at the boundary. Therefore, the adjoint problem is given by:

Note that the advection term has a reversed sign in the adjoint equation, whereas the diffusion term remains self-adjoint.

See also

References

  • Jameson, Antony (1988). "Aerodynamic Design via Control Theory". Journal of Scientific Computing. 3 (3).