Skip to content

opSEM::grad and opSEM::strongGrad #583

Answered by stgeke
yslan asked this question in Q&A
Discussion options

You must be logged in to vote

strongGrad(u) corresponds to gradm1(dudx, dudy, dudz, u)
Note: nek's opgrad computes the strong gradient (like gradm1) but the result is weighted.

grad(u) corresponds {cdtp(dudx, u, rxm, ..., 1), cdtp(dudy, u, rym, ..., 2), cdtp(dudz, u, rzm, ..., 3)}
Note: nek's wgradm1 actually computes the weighted strong gradient - the name might be misleading as w stands for weighted not weak.

In CG the input to any spatial operator has to be in C0. That's why we call QQt in opSEM::strongLaplacian after computing the strongGradient. That's missing (hence incorrect) in your example of a strong Laplacian.

In case of the weak Laplacian, the operator is computed directly (like in the Helmholtz operator) …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yslan
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