Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Integrate Laplace of unknown

More
3 years 5 months ago #3310 by carinab
Hi,

I am trying to solve a very modified Stokes flow which contains the term [tex]\int_{V_f} -\nabla p + \nabla^2 u dV[/tex] for (scalar) unknown p and vectorial unknown u. This means I need the Laplacian of u as I cannot reduce the order of derivatives through the weak form. In practice the weak form of this term is simply [tex](\int_{V_f} -\nabla p + \nabla^2 u dV,v)[/tex].
Initially I tried having u,p trial functions from VectorH1 and H1.
My various attempt to express this term includes the very naive "div(grad(u))", which gives the message that "div" cannot be formed.

I tried constructing the second order derivatives through "hesse" as in this example: ngsolve.org/docu/nightly/i-tutorials/uni...der/fourthorder.html
Then I need to apply it to every component of the vector u, which gives problems when I try to reassemble again. I here create u1,u2,u3 (each coming from H1), and tried then for the weak form constructions like
grad(CoefficientFunction((u1,u2,u3)))
for when I make the weak form of my problem. But apparently this is also not possible.

Am I simply using the CoefficientFunction wrong?
Is there a simpler way to include these second order derivatives of a vector function?

Thank you in advance.

Kind regards,
Carina
Time to create page: 0.148 seconds