NuTo
Numerics Tool
|
stores constraint equations, separated by their dof type More...
#include <Constraints.h>
Public Member Functions | |
void | Add (DofType dof, Equation equation) |
adds an equation More... | |
void | Add (DofType dof, std::vector< Equation > equations) |
adds multiple equations More... | |
Eigen::VectorXd | GetRhs (DofType dof, double time) const |
builds the time dependent constraint rhs vector for a specific dof type More... | |
Eigen::SparseVector< double > | GetSparseGlobalRhs (DofType dof, int numDofs, double time) const |
builds the rhs of the constraint equations in a sparse global vector More... | |
JKNumbering | GetJKNumbering (DofType dof, int numDofs) const |
builds a numbering where first the independent dofs are consecutively numbered leaving out the dependent ones and then the dependent dof numbers are appended. More... | |
Eigen::SparseMatrix< double > | BuildUnitConstraintMatrix (DofType dof, int numDofs) const |
builds a sparse matrix containing the constraint terms for a specific dof type and a unit matrix for the independent dofs More... | |
int | GetNumEquations (DofType dof) const |
calculates the number of constraint equations for a specific dof type More... | |
const Equation & | GetEquation (DofType dof, int equationNumber) const |
gets the specified equation More... | |
stores constraint equations, separated by their dof type
adds an equation
dof | dof type |
equation | constraint equation |
adds multiple equations
dof | dof type |
equations | constraint equations |
Eigen::SparseMatrix< double > Constraints::BuildUnitConstraintMatrix | ( | DofType | dof, |
int | numDofs | ||
) | const |
builds a sparse matrix containing the constraint terms for a specific dof type and a unit matrix for the independent dofs
dof | dof type |
numDofs | number dofs for the dof type, required for a proper resize of the sparse matrix |
gets the specified equation
dof | doftype of the equation |
equationNumber | number of the equation |
JKNumbering Constraints::GetJKNumbering | ( | DofType | dof, |
int | numDofs | ||
) | const |
builds a numbering where first the independent dofs are consecutively numbered leaving out the dependent ones and then the dependent dof numbers are appended.
The order of the dependent dofs is given by the order of the constraint equations
This numbering is used in BuildUnitConstraintMatrix
dof | dof type |
numDofs | number dofs for the dof type |
int Constraints::GetNumEquations | ( | DofType | dof | ) | const |
calculates the number of constraint equations for a specific dof type
dof | dof type |
Eigen::VectorXd Constraints::GetRhs | ( | DofType | dof, |
double | time | ||
) | const |
builds the time dependent constraint rhs vector for a specific dof type
dof | dof type |
time | global time |
Eigen::SparseVector< double > Constraints::GetSparseGlobalRhs | ( | DofType | dof, |
int | numDofs, | ||
double | time | ||
) | const |
builds the rhs of the constraint equations in a sparse global vector
dof | dof type |
numDofs | total number of dofs for a specfic dof type |
time | time at which the rhs vector should be evaluated |