Skip to content

Calculating stiffness matrix for specific cells in mesh #3031

Discussion options

You must be logged in to vote

Arbitrary weights are in some sense harder than depending on length and shape regularity since you need to be able to associate them with the correct edges and then pull them out again (which is not trivial because if you store them as a Function they will be evaluated at quadrature points whereas you want to "see" the basis vector).

On the other hand, the length of each relevant edge can be computed with sqrt(dot(cev[0, :], cev[0, :])) (for edge 0, say). I do not think there is a symbolic expression for the shape regularity coefficient of a given cell, however, this is easier. If you have some way of computing it, you can store it in a shape_regularity = Function(FunctionSpace(mesh, "DG"…

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@jmm1828
Comment options

@wence-
Comment options

@jmm1828
Comment options

@wence-
Comment options

Answer selected by jmm1828
@wence-
Comment options

@jmm1828
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants