PolyFEM
Loading...
Searching...
No Matches
polyfem::legacy Namespace Reference

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)
 

Typedef Documentation

◆ UserPostStepCallback

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.

Parameters
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.

Definition at line 87 of file State.hpp.

Function Documentation

◆ compute_integral_constraints()

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 
)