For a smooth incompressible direct trajectory with total velocity field and active scalar , the negative-constraint Lagrangian function in constrained optimization convention gives
The transpose term is the formal adjoint of ; the two couplings transpose scalar transport by advection and buoyancy. For terminal cost , the terminal data are , . They are integrated backward along the stored direct trajectory. No-slip boundary conditions and Dirichlet boundary conditions for the adjoint velocity and homogeneous Neumann boundary conditions for the adjoint scalar remove the spatial boundary terms.
Use , , , and . Work along a sufficiently regular direct trajectory satisfying the given constraints. The zero spatial mean of the scalar field is conserved by incompressible flow, impermeable walls and zero scalar flux, so minimizing is equivalent to minimizing scalar variance, up to the fixed domain volume.
The printed functional fixes the initial state to a candidate ; it contains no term that enforces its kinetic energy. For the optimization over that candidate, add the real Lagrange multiplier constraint
Equivalently, one can restrict all control variations to the sphere in a normed vector space of fixed kinetic energy. This term changes the initial-control optimality condition, not the interior adjoint equations.
Let , and . Linearization of the momentum and scalar transport residuals gives
Both appearances of the perturbation velocity in the nonlinear momentum term have been differentiated. In particular, the coefficient is the gradient of the total velocity, not just the base shear.
For the negative-constraint convention of the functional, integration by parts gives the interior coefficients of as
Thus the adjoint equations for Boussinesq scalar mixing are
The transpose is essential: the th component of is . The coupling transposes advection of the scalar by a velocity perturbation; transposes buoyancy feedback. Dropping the latter would give a passive scalar adjoint, not the active scalar problem.
These equations are integrated backward, not forward. If , they read
with direct coefficients evaluated at . Both terms from the diffusion equation now have the usual forward sign in . A direct-adjoint looping method stores or reconstructs the forward trajectory, solves these equations backward, and uses the initial adjoint as the control gradient. The endpoint and fixed-energy conditions below give necessary conditions for a local optimizer, not a global optimality theorem.
Scalar transport 2026-10-06
Scalar transport follows a material quantity through advection and diffusion equation terms, for example . A passive scalar does not affect the velocity field; an active scalar feeds back through forces such as buoyancy. With incompressible flow bounded by impermeable walls and homogeneous Neumann boundary conditions, the spatial mean is conserved.