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

A boundary condition to enforce. More...

#include <containers.h>

Public Member Functions

 BC ()
 Default Constructor. More...
 
 BC (unsigned int _node, unsigned int _dof, double _value)
 Constructor. More...
 

Public Attributes

unsigned int node
 
unsigned int dof
 
double value
 

Detailed Description

A boundary condition to enforce.

Set by specifying the node to constrain, which degree of freedom, and the value to hold the node at.

// define the node number to constrain
unsigned int nn1 = 0;
// define the value to hold the nodal DOF at
double value = 0.0;

Constructor & Destructor Documentation

fea::BC::BC ( )
inline

Default Constructor.

All values are set to zero.

fea::BC::BC ( unsigned int  _node,
unsigned int  _dof,
double  _value 
)
inline

Constructor.

Parameters
[in]nodeunsigned int. The index of the node.
[in]dofunsigned int. Degree of freedom to constrain (See fea::DOF).
[in]valuedouble. The prescribed value for the boundary condition.

Member Data Documentation

unsigned int fea::BC::dof

The index of the dof to constrain. The fea::DOF enum can be used for specification or the integer values can be used directly 0==d_x, 1==d_y, ...

unsigned int fea::BC::node

The index of the node to constrain

double fea::BC::value

The value to hold the dof at.


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