ScalarToDivergence #
Ported from scottnarmstrong/Superdiffusion at 7f20476385d4af418f110303085ad0740c9eba46. Module imports, support namespace and local option directives adapted for Lean Pool.
Smooth scalar forcing as divergence forcing #
A globally C¹ scalar field is converted into divergence forcing by placing
the negative of its one-coordinate primitive in one vector coordinate. The
resulting field is in L² on a bounded convex domain and has exactly the weak
pairing required by the literal divergence-right-hand-side predicate.
This module does not extend the construction to nonsmooth or merely almost everywhere bounded scalar forcing.
The coordinate primitive packaged as an H¹ function on a bounded convex
domain.
Equations
Instances For
The divergence field with selected coordinate equal to the negative coordinate primitive and every other coordinate equal to zero.
Equations
- DivergenceFormProcess.scalarToDivergenceField q i z x j = if j = i then -DivergenceFormProcess.coordinatePrimitive q i z x else 0
Instances For
The selected weak-gradient coordinate of the packaged primitive is the original scalar field.
The smooth scalar-to-divergence field belongs to vector L² on the
bounded domain.
The divergence field pairs with every zero-trace test exactly as the original scalar forcing.