Skip to content

Bilinear Form to find the inner product of a scalar trial function and a vector field test function? #3698

Answered by mlstowell
TheBEllis asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @TheBEllis,

I believe we have two different bilinear form integrators which are equivalent to this although neither is written in quite that manner. The first is called GradientIntegrator and it implements $(\lambda\nabla u, \vec{v})\approx-\left(u, \nabla\cdot(\lambda \vec{v})\right)$. The second is called VectorDivergenceIntegrator and it implements $(\lambda\nabla\cdot\vec{u},v)$ which is equivalent to the transpose of $(\lambda u,\nabla\cdot\vec{v})$. One main difference is the location of the optional $\lambda$ coefficient. If you have a non-constant coefficient then you must be careful to pick the correct integrator. If your coefficient is spatially constant either of these will…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TheBEllis
Comment options

Answer selected by TheBEllis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants