PolyFEM
Loading...
Searching...
No Matches
AssemblyValues.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
polyfem/basis/Basis.hpp
>
4
5
#include <Eigen/Dense>
6
7
namespace
polyfem
8
{
9
namespace
assembler
10
{
12
class
AssemblyValues
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
Basis.hpp
polyfem::assembler::AssemblyValues
stores per local bases evaluations
Definition
AssemblyValues.hpp:13
polyfem::assembler::AssemblyValues::global
std::vector< basis::Local2Global > global
Definition
AssemblyValues.hpp:19
polyfem::assembler::AssemblyValues::grad_t_m
Eigen::MatrixXd grad_t_m
Definition
AssemblyValues.hpp:29
polyfem::assembler::AssemblyValues::grad
Eigen::MatrixXd grad
Definition
AssemblyValues.hpp:25
polyfem::assembler::AssemblyValues::val
Eigen::MatrixXd val
Definition
AssemblyValues.hpp:22
polyfem::assembler::AssemblyValues::finalize
void finalize()
Definition
AssemblyValues.hpp:31
polyfem
Definition
AMIPSEnergy.cpp:6
src
polyfem
assembler
AssemblyValues.hpp
Generated by
1.9.8