32 #ifndef _CONSTRAINT_HPP_ 33 #define _CONSTRAINT_HPP_ 56 Constraint(
unsigned int slave, std::vector<unsigned int> master, std::vector<double> factors);
void SetMasterInformation(std::vector< unsigned int > master)
Sets the master's free degree-of-freedom list numbering.
std::vector< double > Coefficients
The combination coefficient vector.
Definition: Constraint.hpp:108
void SetCombinationFactors(std::vector< double > factors)
Sets the master's combinational factors applied to degree-of-freedom list numbering.
Class for creating a linear kinematic relations between degree-of-freedom in the model.
Definition: Constraint.hpp:44
const std::vector< double > GetCombinationFactors() const
Gets the combinational factor list for each degree-of-freedom.
void SetSlaveInformation(unsigned int slave)
Sets the slave's node degree-of-freedom.
unsigned int GetSlaveInformation() const
Gets the slave free degree-of-freedom of this constraint.
unsigned int GetNumberOfConstraints() const
Gets the number of combinations applied to this slave degree-of-freedom.
Constraint()
Creates a empty Constraint to a degree-of-freedom.
unsigned int Slave
The slave total degree-of-freedom.
Definition: Constraint.hpp:102
~Constraint()
Destroys this Constraint.
std::vector< unsigned int > Master
The list of master free degree-of-freedom.
Definition: Constraint.hpp:105
const std::vector< unsigned int > GetMasterInformation() const
Gets the master list of total degree-of-freedom to be combined.