|
PolyFEM
|
Namespaces | |
| namespace | io |
Classes | |
| class | InitialConditionOverride |
| Runtime override for initial-condition histories. More... | |
| class | State |
| main class that contains the polyfem solver and all its state More... | |
Typedefs | |
| using | UserPostStepCallback = std::function< void(int step, State &state, const Eigen::MatrixXd &sol, const Eigen::MatrixXd *disp_grad, const Eigen::MatrixXd *pressure)> |
| User callback at the end of every solver step. | |
Functions | |
| void | compute_integral_constraints (const Mesh3D &mesh, const int n_bases, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, Eigen::MatrixXd &basis_integrals) |
| using polyfem::legacy::UserPostStepCallback = typedef std::function<void(int step, State &state, const Eigen::MatrixXd &sol, const Eigen::MatrixXd *disp_grad, const Eigen::MatrixXd *pressure)> |
User callback at the end of every solver step.
| step[in] | The current step. |
| state[in] | The state of current step. |
| sol[in] | The solution of current step. |
| disp_grad[in] | du/dX where u is the displacement and X is the material coordinate. Optional, pass nullptr if not applicable. |
| pressure[in] | Optional. The pressure of current step. Optional, pass nullptr if not applicable. |
| void polyfem::legacy::compute_integral_constraints | ( | const Mesh3D & | mesh, |
| const int | n_bases, | ||
| const std::vector< basis::ElementBases > & | bases, | ||
| const std::vector< basis::ElementBases > & | gbases, | ||
| Eigen::MatrixXd & | basis_integrals | ||
| ) |
Definition at line 393 of file State.cpp.
References polyfem::assembler::ElementAssemblyValues::basis_values, polyfem::assembler::ElementAssemblyValues::compute(), polyfem::assembler::ElementAssemblyValues::det, polyfem::assembler::AssemblyValues::global, polyfem::assembler::AssemblyValues::grad_t_m, polyfem::mesh::Mesh3D::is_volume(), polyfem::logger(), polyfem::mesh::Mesh::n_elements(), polyfem::assembler::ElementAssemblyValues::quadrature, polyfem::assembler::AssemblyValues::val, polyfem::assembler::ElementAssemblyValues::val, vals, and polyfem::quadrature::Quadrature::weights.