PolyFEM
Loading...
Searching...
No Matches
InertiaForceDerivative.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4#include <Eigen/Core>
9
10namespace polyfem::solver
11{
13 {
14 public:
15 static void force_shape_derivative(
16 const InertiaForm &form,
17 bool is_volume,
18 const int n_geom_bases,
19 const double t,
20 const std::vector<basis::ElementBases> &bases,
21 const std::vector<basis::ElementBases> &geom_bases,
22 const assembler::Mass &assembler,
23 const assembler::AssemblyValsCache &ass_vals_cache,
24 const Eigen::MatrixXd &velocity,
25 const Eigen::MatrixXd &adjoint,
26 Eigen::VectorXd &term);
27 };
28} // namespace polyfem::solver
Caches basis evaluation and geometric mapping at every element.
static void force_shape_derivative(const InertiaForm &form, bool is_volume, const int n_geom_bases, const double t, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &geom_bases, const assembler::Mass &assembler, const assembler::AssemblyValsCache &ass_vals_cache, const Eigen::MatrixXd &velocity, const Eigen::MatrixXd &adjoint, Eigen::VectorXd &term)
Form of the inertia.