IFEM 90A354
Public Member Functions | Public Attributes | Friends | List of all members
MPC::DOF Struct Reference

A struct representing one term in a multi-point constraint equation. More...

#include <MPC.h>

Collaboration diagram for MPC::DOF:
Collaboration graph
[legend]

Public Member Functions

 DOF ()
 Default constructor.
 
 DOF (int n, int d, Real c)
 Convenience constructor creating a valid DOF object.
 

Public Attributes

int node
 Node number identifying this DOF.
 
int dof
 Local DOF number within node.
 
Real coeff
 The constrained value, or master DOF scaling coefficient.
 
MPC * nextc
 Points to another MPC object in case of chained constraints.
 

Friends

std::ostream & operator<< (std::ostream &s, const DOF &dof)
 Global stream operator printing a DOF instance.
 
bool operator== (const DOF &a, const DOF &b)
 Global equality operator.
 

Detailed Description

A struct representing one term in a multi-point constraint equation.

Each term consists of the DOF index and an associated coefficient.

Constructor & Destructor Documentation

◆ DOF()

MPC::DOF::DOF ( int  n,
int  d,
Real  c 
)
inline

Convenience constructor creating a valid DOF object.

Parameters
[in]nNode number (1...NNOD)
[in]dThe local DOF number (1...3)
[in]cAssociated coefficient or constrained value

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