ITK  4.1.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
itk::fem::LoadBCMFC Class Reference

#include <itkFEMLoadBCMFC.h>

+ Inheritance diagram for itk::fem::LoadBCMFC:
+ Collaboration diagram for itk::fem::LoadBCMFC:

List of all members.

Classes

class  MFCTerm
 Class that holds information about one term in MFC constraint equation. More...

Public Types

typedef SmartPointer< const SelfConstPointer
typedef std::vector< MFCTermLhsType
typedef SmartPointer< SelfPointer
typedef LoadBCMFC Self
typedef Load Superclass

Public Member Functions

void AddLeftHandSideTerm (LoadBCMFC::MFCTerm term)
void AddRightHandSideTerm (Element::Float term)
virtual ::itk::LightObject::Pointer CreateAnother (void) const
int GetIndex ()
const MFCTerm GetLeftHandSideTerm (int lhs) const
virtual const char * GetNameOfClass () const
int GetNumberOfLeftHandSideTerms () const
int GetNumberOfRightHandSideTerms () const
vnl_vector< Element::Float > & GetRightHandSideArray ()
Element::Float GetRightHandSideTerm (int rhs) const
 LoadBCMFC ()
 LoadBCMFC (Element::ConstPointer element, int dof, vnl_vector< Element::Float > val)
void SetIndex (int ind)
const std::vector< MFCTerm > & GetLeftHandSideArray () const
std::vector< MFCTerm > & GetLeftHandSideArray ()

Static Public Member Functions

static Pointer New ()

Protected Member Functions

virtual void PrintSelf (std::ostream &os, Indent indent) const

Protected Attributes

int m_Index
LhsType m_LeftHandSide
vnl_vector< Element::Floatm_RightHandSide

Detailed Description

Generic linear multi freedom displacement constraint in global coordinate system.

These constraints are implemented using the Lagrange multiplier method. We treat displacement constraints (or essential boundary conditions, which are exactly the same but with less functionality) as a special kind of load on the system.

How to store data in a LoadBCMFC object... Suppose you want to impose the following constraint to the system:

0.5*u1x + 2.1*u5y = 10.0

u1x is the first DOF in the element with global number 1, and u5y is the second DOF in an element with GN=5.

... then use the following lines of code itk::LoadBCMFC m; m.lhs.push_back( LoadBCMFC::MFCTerm( elements.Find(1), 0, 0.5 ) ); m.lhs.push_back( LoadBCMFC::MFCTerm( elements.Find(5), 1, 2.1 ) ); m.rhs=10.0;

Definition at line 55 of file itkFEMLoadBCMFC.h.


Member Typedef Documentation

Reimplemented from itk::fem::Load.

Definition at line 62 of file itkFEMLoadBCMFC.h.

typedef std::vector<MFCTerm> itk::fem::LoadBCMFC::LhsType

Left hand side of the MFC constraint equation

Definition at line 111 of file itkFEMLoadBCMFC.h.

Reimplemented from itk::fem::Load.

Definition at line 61 of file itkFEMLoadBCMFC.h.

Standard class typedefs.

Reimplemented from itk::fem::Load.

Definition at line 59 of file itkFEMLoadBCMFC.h.

Reimplemented from itk::fem::Load.

Definition at line 60 of file itkFEMLoadBCMFC.h.


Constructor & Destructor Documentation

Default constructor

Definition at line 114 of file itkFEMLoadBCMFC.h.

With this constructor, we can easy fix the global displacement dof given by node to a value val.

Parameters:
elementPointer to an element, which holds a displacements that needs to be fixed.
dofLocal DOF number in an element.
valThe fixed value of a DOF.

Member Function Documentation

Add terms to the left hand side of multi freedom displacement constraint

Add terms to the right hand side of multi freedom displacement constraint

virtual::itk::LightObject::Pointer itk::fem::LoadBCMFC::CreateAnother ( void  ) const [virtual]

CreateAnother method will clone the existing instance of this type, including its internal member variables.

Reimplemented from itk::LightObject.

Get the index variable for the multi freedom displacement constraint. This is used internally by itk::FEM::Solver

const std::vector<MFCTerm>& itk::fem::LoadBCMFC::GetLeftHandSideArray ( ) const

Returns the array containing the left hand side boundary condition values

Returns the array containing the left hand side boundary condition values

Returns the specified left hand side term

virtual const char* itk::fem::LoadBCMFC::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::fem::Load.

Returns the number of terms used to define the left hand side

Returns the number of terms used to define the right hand side

Returns the array containing the right hand side boundary condition values

Returns the number of terms used to define the right hand side

static Pointer itk::fem::LoadBCMFC::New ( ) [static]

Method for creation through the object factory.

Reimplemented from itk::LightObject.

virtual void itk::fem::LoadBCMFC::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::fem::Load.

void itk::fem::LoadBCMFC::SetIndex ( int  ind)

Set the index variable for the multi freedom displacement constraint. This is used internally by itk::FEM::Solver


Member Data Documentation

used internally by the Solver class

Definition at line 171 of file itkFEMLoadBCMFC.h.

Definition at line 173 of file itkFEMLoadBCMFC.h.

Right hand side of the linear equation that defines the constraints. It is a vector so that implementation of BC on isotropic elements is easy. Which value is applied to the master force vector is defined by optional dim parameter (defaults to 0) in AssembleF function in solver.

Definition at line 181 of file itkFEMLoadBCMFC.h.


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