Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfixes, ntriangles for higher order triangle and introduction of new kwarg copy_fields in interpolategradient() #83

Merged
merged 9 commits into from
May 24, 2023

Conversation

JanM12
Copy link
Contributor

@JanM12 JanM12 commented May 5, 2023

  • fixed some bugs in src/makieploting.jl
  • changed parametrization for ntriangles for higher order triangle (ntriangles(cell::Ferrite.AbstractCell{2,3,3}) = 1 -> ntriangles(cell::Ferrite.AbstractCell{2,N,3}) where {N} = 1)
  • introduced kwarg copy_fields to interpolategradient() which copies all selected fields of the DofHandler and all values of the node vector passed to the function to the returned DofHandler and and node vector. This way one can plot a gradient field in deformed state for example.

src/utils.jl Outdated Show resolved Hide resolved
JanM12 and others added 3 commits May 17, 2023 11:29
…r mit im neuen dh und kontenvektor zu übernehmen. Dadurch z.b. solutionplot des gradientenfeldes im deformierten zustand möglich.
Co-authored-by: Maximilian Köhler <maximilian.koehler@ruhr-uni-bochum.de>
@JanM12 JanM12 changed the title ntriangles for higher order triangles bus, ntriangles for higher order triangles and introduction of new kwarg copy_fields in interpolategradient() May 17, 2023
@JanM12 JanM12 changed the title bus, ntriangles for higher order triangles and introduction of new kwarg copy_fields in interpolategradient() bugfixes, ntriangles for higher order triangles and introduction of new kwarg copy_fields in interpolategradient() May 17, 2023
@JanM12 JanM12 changed the title bugfixes, ntriangles for higher order triangles and introduction of new kwarg copy_fields in interpolategradient() bugfixes, ntriangles for higher order triangle and introduction of new kwarg copy_fields in interpolategradient() May 17, 2023
Copy link
Member

@termi-official termi-official left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I cannot find the ntriangles for higher order part. Is it missing? See below.

src/makieplotting.jl Show resolved Hide resolved
src/utils.jl Outdated Show resolved Hide resolved
@koehlerson koehlerson merged commit af7c960 into Ferrite-FEM:master May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: MethodError: no method matching ntriangles(::QuadraticTriangle)
3 participants