StencilPrimitiveCoordinates

A - B - C - D - E - F - G - H - I - K - L - M - N - O - P - Q - R - S - T - U - V - W - X

StencilPrimitiveCoordinates

Section Mesh::Derivatives
Type logical

This variable controls the method for generating the stencil weights for the Laplacian. For the gradient, the weights are always computed for primitive coordinates. If set to yes, primitive coordinates are used for the polynomials and the right-hand side of the Laplacian is computed using the metric tensor and the trace of the Hessian. If set to no, Cartesian coordinates are used for the polynomials and the right-hand side of the Laplacian reduces to the Cartesian case. For some non-orthogonal grids, using primitve coordinates is necessary becasuse the polynomials become linearly dependent, thus the corresponding matrix cannot be inverted. For some curvilinear coordinate systems, using Cartesian coordinates is more accurate.

By default, use primitve coordinates except for curvilinear meshes.


Source information