3D Beam Finite Element Code  1.0
Classes | Public Member Functions | Public Attributes | List of all members
fea::Equation Struct Reference

A linear multipoint constraint. More...

#include <containers.h>

Classes

struct  Term
 A single term in the equation constraint. More...
 

Public Member Functions

 Equation ()
 
 Equation (const std::vector< Term > &_terms)
 Constructor. More...
 

Public Attributes

std::vector< Termterms
 

Detailed Description

A linear multipoint constraint.

Equation constraints are defined by a series of terms that sum to zero, e.g. t1 + t2 + t3 ... = 0, where tn is the nth term. Each term specifies the node number, degree of freedom and coefficient. The node number and degree of freedom specify which nodal variable (either nodal displacement or rotation) is involved with the equation constraint, and coefficient is multiplied by the specified nodal variable when forming the equation. Note, the equation sums to zero, so in order to specify that 2 nodal degrees of freedom are equal their coefficients should be equal and opposite.

// Create an empty equation
// Stipulate that the x and y displacement for the first node must be equal
unsigned int node_number = 0;
eqn.terms.push_back(fea::Equation::Term(node_number, fea::DOF::DISPLACEMENT_X, 1.0));
eqn.terms.push_back(fea::Equation::Term(node_number, fea::DOF::DISPLACEMENT_Y, -1.0);

Constructor & Destructor Documentation

fea::Equation::Equation ( )
inline

Default constructor

fea::Equation::Equation ( const std::vector< Term > &  _terms)
inline

Constructor.

Parameters
terms.std::vector<Term>. A list of terms that sum to zero.k

Member Data Documentation

std::vector<Term> fea::Equation::terms

A list of terms that sum to zero.


The documentation for this struct was generated from the following file: