Opm::Elasticity::MPC::DOF Struct Reference

A struct for representing one term (DOF number and associated coefficient) in a MPC equation. More...

#include <mpc.hh>

Public Member Functions

 DOF ()
 Default constructor. More...
 
 DOF (int n, int d, double c=double(0))
 Convenience constructor creating a valid DOF object. More...
 

Public Attributes

int node
 Node number identifying this DOF. More...
 
int dof
 Local DOF number within node. More...
 
double coeff
 The constrained value, or master DOF scaling coefficient. More...
 

Friends

std::ostream & operator<< (std::ostream &s, const DOF &dof)
 Global stream operator printing a DOF instance. More...
 

Detailed Description

A struct for representing one term (DOF number and associated coefficient) in a MPC equation.

Constructor & Destructor Documentation

Opm::Elasticity::MPC::DOF::DOF ( )
inline

Default constructor.

Opm::Elasticity::MPC::DOF::DOF ( int  n,
int  d,
double  c = double(0) 
)
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

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const DOF dof 
)
friend

Global stream operator printing a DOF instance.

Member Data Documentation


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