PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
pbat::sim::vbd::multigrid::Level Struct Reference

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.
 

Constructor & Destructor Documentation

◆ Level()

pbat::sim::vbd::multigrid::Level::Level ( Data const & data,
VolumeMesh mesh )
Parameters
data
mesh

Member Function Documentation

◆ Prolong()

void pbat::sim::vbd::multigrid::Level::Prolong ( Data & data) const
Parameters
data

◆ Reduce()

void pbat::sim::vbd::multigrid::Level::Reduce ( Data const & data)
Parameters
data

◆ Smooth()

void pbat::sim::vbd::multigrid::Level::Smooth ( Scalar dt,
Index iters,
Data & data )
Parameters
dt
iters
data

Member Data Documentation

◆ bIsDirichletVertex

BoolVector pbat::sim::vbd::multigrid::Level::bIsDirichletVertex

Dirichlet energy

◆ ecK

IndexVectorX pbat::sim::vbd::multigrid::Level::ecK

|#fine vertices| coarse elements containing fine vertices

Kinetic energy

◆ ecVE

IndexMatrixX pbat::sim::vbd::multigrid::Level::ecVE

4x|#fine elems| coarse elements containing 4 vertices of fine elements

Elastic energy

◆ GCFptr

IndexVectorX pbat::sim::vbd::multigrid::Level::GCFptr

Energy hyper reduction

◆ ilocalE

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

◆ mesh

VolumeMesh pbat::sim::vbd::multigrid::Level::mesh

Coarse FEM mesh.

Coarse mesh discretization


The documentation for this struct was generated from the following files: