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

Add vtk Biquadratic element #11704

Merged
merged 2 commits into from
Oct 27, 2023
Merged

Add vtk Biquadratic element #11704

merged 2 commits into from
Oct 27, 2023

Conversation

jginternational
Copy link
Member

📝 Description
Add 9 noded quadrilaterals to VTK output

Implements #11703

@jginternational jginternational requested a review from a team as a code owner October 20, 2023 15:12
@jginternational jginternational changed the title Add vtk 9nodesquads Add vtk Biquadratic element Oct 20, 2023
@philbucher
Copy link
Member

is the nodal ordering the same in kratos and vtk?

@jginternational
Copy link
Member Author

jginternational commented Oct 20, 2023

In Kratos:
https://github.com/KratosMultiphysics/Kratos/blob/master/kratos/geometries/quadrilateral_3d_9.h

 * The node ordering corresponds with:
 *      3-----6-----2
 *      |           |
 *      |           |
 *      7     8     5
 *      |           |
 *      |           |
 *      0-----4-----1

In VTK
https://vtk.org/doc/nightly/html/classvtkBiQuadraticQuad.html
image
source: https://raw.githubusercontent.com/Kitware/vtk-examples/gh-pages/src/Testing/Baseline/Cxx/GeometricObjects/TestIsoparametricCellsDemo.png

The ordering of the eight points defining the cell are point ids (0-3,4-8) where ids 0-3 define the four corner vertices of the quad; ids 4-7 define the midedge nodes (0,1), (1,2), (2,3), (3,0) and 8 define the face center node.

is the nodal ordering the same in kratos and vtk?

@philbucher it seems to be the same

@jginternational
Copy link
Member Author

jginternational commented Oct 20, 2023

In GiD, just imagine that we start from 0, like real computer science engineers
image

https://gidsimulation.atlassian.net/wiki/spaces/GRM/pages/2385547733/Element+type

Copy link
Member

@philbucher philbucher left a comment

Choose a reason for hiding this comment

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

nice!

@jginternational
Copy link
Member Author

jginternational commented Oct 23, 2023

@AlejandroCornejo

Cuando tus alumnos intenten mallar con malla de cuadrilateros de 9 nodos, les dará un fallo.
Tan solo tienes que decirles que en el arbol de datos vayan a Results > VTK y deshabiliten la escritura de resultados para VTK

image

@jginternational jginternational merged commit 6d5d8e1 into master Oct 27, 2023
11 checks passed
@jginternational jginternational deleted the add-vtk-9nodesquads branch October 27, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants