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
8
namespace
polyfem
9
{
10
namespace
assembler
11
{
13
class
AssemblyValues
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
Basis.hpp
polyfem::assembler::AssemblyValues
stores per local bases evaluations
Definition
AssemblyValues.hpp:14
polyfem::assembler::AssemblyValues::global
std::vector< basis::Local2Global > global
Definition
AssemblyValues.hpp:20
polyfem::assembler::AssemblyValues::grad_t_m
Eigen::MatrixXd grad_t_m
Definition
AssemblyValues.hpp:30
polyfem::assembler::AssemblyValues::grad
Eigen::MatrixXd grad
Definition
AssemblyValues.hpp:26
polyfem::assembler::AssemblyValues::val
Eigen::MatrixXd val
Definition
AssemblyValues.hpp:23
polyfem::assembler::AssemblyValues::finalize
void finalize()
Definition
AssemblyValues.hpp:32
polyfem
Definition
AMIPSEnergy.cpp:6
src
polyfem
assembler
AssemblyValues.hpp
Generated by
1.9.8