PolyFEM
Loading...
Searching...
No Matches
AssemblyValues.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <Eigen/Dense>
6
7namespace polyfem
8{
9 namespace assembler
10 {
13 {
14 public:
15 // m = number of quadrature points
16
17 // Weighted sum to express the current ("virtual") node as a linear-combination
18 // of the real (unknown) nodes
19 std::vector<basis::Local2Global> global;
20
21 // Evaluation of the basis over the quadrature points of the element
22 Eigen::MatrixXd val; // R^m
23
24 // Gradient of the basis over the quadrature points
25 Eigen::MatrixXd grad; // R^{m x dim}
26
27 // Gradient of the basis pre-multiplied by the inverse transpose of the
28 // Jacobian of the geometric mapping of the element
29 Eigen::MatrixXd grad_t_m; // J^{-T}*∇φi per row R^{m x dim}
30
31 void finalize()
32 {
33 grad_t_m.resize(grad.rows(), grad.cols());
34 }
35 };
36 } // namespace assembler
37} // namespace polyfem
stores per local bases evaluations
std::vector< basis::Local2Global > global