Skip to content

shape function evaluation, higher derivatives #573

Answered by edljk
edljk asked this question in Q&A
Discussion options

You must be logged in to vote

Here is a very first tentative tested on a simple interpolation example.

test_hessian(nel = 50, degcurve = 1, degfem = 3)
  2.912276 seconds (21.54 M allocations: 2.121 GiB, 22.54% gc time)
error_eval = norm(uq - qeval, Inf) = 1.6045110484697034e-6
error_eval∂x = norm(∇uq - q∇eval, Inf) = 0.0006354386768165307
error_evalH = norm(Huq - qHeval, Inf) = 0.1489596236421943
errormean_evalH = mean(norm.(Huq - qHeval, Inf)) = 0.029545458888939925

The code is still very slow with too much allocations. Any suggestions are welcome..

using LinearAlgebra, SparseArrays, StaticArrays
using Ferrite, ForwardDiff
"""
    test_hessian(;              
                 nel::Int64 = 20, degfem::Int64 = 3, degc…

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by edljk
Comment options

You must be logged in to vote
2 replies
@termi-official
Comment options

@edljk
Comment options

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