|
PolyFEM
|
#include <Parametrizations.hpp>
Public Member Functions | |
| PerBody2PerNode (const mesh::Mesh &mesh, const std::vector< basis::ElementBases > &bases, const int n_bases) | |
| int | size (const int x_size) const override |
| Compute DOF of y given DOF of x. | |
| Eigen::VectorXd | eval (const Eigen::VectorXd &x) const override |
| Eval y = f(x). | |
| Eigen::VectorXd | apply_jacobian (const Eigen::VectorXd &grad, const Eigen::VectorXd &x) const override |
| Apply jacobian for chain rule. | |
Public Member Functions inherited from polyfem::solver::Parametrization | |
| virtual | ~Parametrization ()=default |
| virtual Eigen::VectorXd | inverse_eval (const Eigen::VectorXd &y) |
| Eval x = f^-1 (y). | |
Private Attributes | |
| const mesh::Mesh & | mesh_ |
| const std::vector< basis::ElementBases > & | bases_ |
| int | full_size_ |
| int | reduced_size_ |
| Eigen::VectorXi | node_id_to_body_id_ |
Definition at line 82 of file Parametrizations.hpp.
| polyfem::solver::PerBody2PerNode::PerBody2PerNode | ( | const mesh::Mesh & | mesh, |
| const std::vector< basis::ElementBases > & | bases, | ||
| const int | n_bases | ||
| ) |
Definition at line 185 of file Parametrizations.cpp.
References full_size_, polyfem::mesh::Mesh::get_body_id(), polyfem::log_and_throw_adjoint_error(), polyfem::logger(), mesh_, polyfem::mesh::Mesh::n_elements(), node_id_to_body_id_, and reduced_size_.
|
overridevirtual |
Apply jacobian for chain rule.
Let g(y) = g(f(x)). Given ∂g/∂y, compute ∂g/∂x = ∂g/∂y * ∂y/∂x.
| [in] | grad_full | ∂g/∂y. |
| [in] | x | Where ∂g/∂x is evaluated. |
Implements polyfem::solver::Parametrization.
Definition at line 242 of file Parametrizations.cpp.
References full_size_, node_id_to_body_id_, reduced_size_, size(), and x.
|
overridevirtual |
Eval y = f(x).
| [in] | x | x. |
Implements polyfem::solver::Parametrization.
Definition at line 219 of file Parametrizations.cpp.
References full_size_, node_id_to_body_id_, reduced_size_, size(), x, and y.
|
overridevirtual |
Compute DOF of y given DOF of x.
| [in] | x_size | The DOF of x. |
Implements polyfem::solver::Parametrization.
Definition at line 236 of file Parametrizations.cpp.
References full_size_, and reduced_size_.
Referenced by apply_jacobian(), and eval().
|
private |
Definition at line 93 of file Parametrizations.hpp.
|
private |
Definition at line 94 of file Parametrizations.hpp.
Referenced by apply_jacobian(), eval(), PerBody2PerNode(), and size().
|
private |
Definition at line 92 of file Parametrizations.hpp.
Referenced by PerBody2PerNode().
|
private |
Definition at line 96 of file Parametrizations.hpp.
Referenced by apply_jacobian(), eval(), and PerBody2PerNode().
|
private |
Definition at line 95 of file Parametrizations.hpp.
Referenced by apply_jacobian(), eval(), PerBody2PerNode(), and size().