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