PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Public Types | |
using | BoolVector = Eigen::Vector<bool, Eigen::Dynamic> |
Public Member Functions | |
Level (Data const &data, VolumeMesh mesh) | |
void | Prolong (Data &data) const |
void | Smooth (Scalar dt, Index iters, Data &data) |
void | Reduce (Data const &data) |
Public Attributes | |
VolumeMesh | mesh |
Coarse FEM mesh. | |
MatrixX | u |
3x|#cage verts| coarse displacement coefficients | |
IndexVectorX | colors |
Coarse vertex graph coloring. | |
IndexVectorX | Pptr |
IndexVectorX | Padj |
Parallel vertex partitions. | |
IndexMatrixX | ecVE |
4x|#fine elems| coarse elements containing 4 vertices of fine elements | |
MatrixX | NecVE |
4x|4*#fine elems| coarse element shape functions at 4 vertices of fine elements | |
IndexMatrixX | ilocalE |
IndexVectorX | GEptr |
IndexVectorX | GEadj |
Coarse vertex -> fine element adjacency graph. | |
IndexVectorX | ecK |
|#fine vertices| coarse elements containing fine vertices | |
MatrixX | NecK |
4x|#fine vertices| coarse element shape functions at fine vertices | |
IndexVectorX | GKptr |
IndexVectorX | GKadj |
IndexVectorX | GKilocal |
Coarse vertex -> fine vertex adjacency graph. | |
BoolVector | bIsDirichletVertex |
IndexVectorX | GCFptr |
IndexVectorX | GCFadj |
IndexVectorX | GCFrank |
IndexVectorX | GCFparent |
Coarse element -> fine element adjacency graph. | |
pbat::sim::vbd::multigrid::Level::Level | ( | Data const & | data, |
VolumeMesh | mesh ) |
data | |
mesh |
void pbat::sim::vbd::multigrid::Level::Prolong | ( | Data & | data | ) | const |
data |
void pbat::sim::vbd::multigrid::Level::Reduce | ( | Data const & | data | ) |
data |
dt | |
iters | |
data |
BoolVector pbat::sim::vbd::multigrid::Level::bIsDirichletVertex |
Dirichlet energy
IndexVectorX pbat::sim::vbd::multigrid::Level::ecK |
|#fine vertices| coarse elements containing fine vertices
Kinetic energy
IndexMatrixX pbat::sim::vbd::multigrid::Level::ecVE |
4x|#fine elems| coarse elements containing 4 vertices of fine elements
Elastic energy
IndexVectorX pbat::sim::vbd::multigrid::Level::GCFptr |
Energy hyper reduction
IndexMatrixX pbat::sim::vbd::multigrid::Level::ilocalE |
4x|#fine elems| coarse vertex local index w.r.t. coarse elements containing 4 vertices of fine elements
VolumeMesh pbat::sim::vbd::multigrid::Level::mesh |
Coarse FEM mesh.
Coarse mesh discretization