projectchrono / chrono

High-performance C++ library for multiphysics and multibody dynamics simulations
http://projectchrono.org
BSD 3-Clause "New" or "Revised" License
2.18k stars 456 forks source link

Pychrono: ChElementTetra_4 not implemented #519

Open MRiabov opened 1 week ago

MRiabov commented 1 week ago

Sup Chrono, I'm trying to create my first project in which I mesh an existing part and sim it.

It seems Pychrono does not have ChElementTetra_4 class implemented. There is a class of chrono.Tetrahedron, but it is a more general one and I can't even create mesh.


Additionally, I would also like to point out that there are no FEA tutorials in which we mesh a custom part, not that I've found them at least, both in C++ and in Python.

I could create mesh manually from nodes (from gmsh export), but should I? To my knowledge of FEA theory, math changes significantly as shapes change, so they should be all standardized. In this case, how to create tetrahedron mesh? Is ChElementTetra_4 even meant to be used?

Cheers.

rserban commented 6 days ago

The correct class name for the tetrahedral element available in Chrono is ChElementTetraCorot_4. This is properly wrapped and available in PyChrono. I just added a simple demo illustrating this. Note that this demo is not available in a PyChrono conda package yet.

Chrono does not provide meshing capabilities. You will have to do this with a third-party package.