ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkFEMLoadBCMFC.h>
Classes | |
class | MFCTerm |
Class that holds information about one term in MFC constraint equation. More... |
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef std::vector< MFCTerm > | LhsType |
typedef SmartPointer< Self > | Pointer |
typedef LoadBCMFC | Self |
typedef Load | Superclass |
Public Types inherited from itk::fem::Load | |
typedef FEMPArray< Self > | ArrayType |
Public Types inherited from itk::fem::FEMLightObject | |
typedef Self | Baseclass |
Public Types inherited from itk::LightObject |
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::Float > | m_RightHandSide |
Protected Attributes inherited from itk::fem::Load | |
Element::ConstPointer | m_Element |
Protected Attributes inherited from itk::fem::FEMLightObject | |
int | m_GlobalNumber |
Protected Attributes inherited from itk::LightObject | |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
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.
typedef SmartPointer<const Self> itk::fem::LoadBCMFC::ConstPointer |
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.
typedef SmartPointer<Self> itk::fem::LoadBCMFC::Pointer |
Reimplemented from itk::fem::Load.
Definition at line 61 of file itkFEMLoadBCMFC.h.
typedef LoadBCMFC itk::fem::LoadBCMFC::Self |
Standard class typedefs.
Reimplemented from itk::fem::Load.
Definition at line 59 of file itkFEMLoadBCMFC.h.
typedef Load itk::fem::LoadBCMFC::Superclass |
Reimplemented from itk::fem::Load.
Definition at line 60 of file itkFEMLoadBCMFC.h.
|
inline |
Default constructor
Definition at line 114 of file itkFEMLoadBCMFC.h.
itk::fem::LoadBCMFC::LoadBCMFC | ( | Element::ConstPointer | element, |
int | dof, | ||
vnl_vector< Element::Float > | val | ||
) |
With this constructor, we can easy fix the global displacement dof given by node to a value val.
element | Pointer to an element, which holds a displacements that needs to be fixed. |
dof | Local DOF number in an element. |
val | The fixed value of a DOF. |
void itk::fem::LoadBCMFC::AddLeftHandSideTerm | ( | LoadBCMFC::MFCTerm | term | ) |
Add terms to the left hand side of multi freedom displacement constraint
void itk::fem::LoadBCMFC::AddRightHandSideTerm | ( | Element::Float | term | ) |
Add terms to the right hand side of multi freedom displacement constraint
|
virtual |
CreateAnother method will clone the existing instance of this type, including its internal member variables.
Reimplemented from itk::LightObject.
int itk::fem::LoadBCMFC::GetIndex | ( | ) |
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
std::vector<MFCTerm>& itk::fem::LoadBCMFC::GetLeftHandSideArray | ( | ) |
Returns the array containing the left hand side boundary condition values
const MFCTerm itk::fem::LoadBCMFC::GetLeftHandSideTerm | ( | int | lhs | ) | const |
Returns the specified left hand side term
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::fem::Load.
int itk::fem::LoadBCMFC::GetNumberOfLeftHandSideTerms | ( | ) | const |
Returns the number of terms used to define the left hand side
int itk::fem::LoadBCMFC::GetNumberOfRightHandSideTerms | ( | ) | const |
Returns the number of terms used to define the right hand side
vnl_vector<Element::Float>& itk::fem::LoadBCMFC::GetRightHandSideArray | ( | ) |
Returns the array containing the right hand side boundary condition values
Element::Float itk::fem::LoadBCMFC::GetRightHandSideTerm | ( | int | rhs | ) | const |
Returns the number of terms used to define the right hand side
|
static |
Method for creation through the object factory.
Reimplemented from itk::LightObject.
|
protectedvirtual |
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
|
protected |
used internally by the Solver class
Definition at line 171 of file itkFEMLoadBCMFC.h.
|
protected |
Definition at line 173 of file itkFEMLoadBCMFC.h.
|
protected |
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.