ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkFEMElement3DStrain.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef __itkFEMElement3DStrain_h
20 #define __itkFEMElement3DStrain_h
21 
22 #include "itkFEMElementBase.h"
24 
25 namespace itk
26 {
27 namespace fem
28 {
46 template <typename TBaseClass = Element>
47 class Element3DStrain : public TBaseClass
48 {
49 public:
50 
53  typedef TBaseClass Superclass;
56 
58  itkTypeMacro(Element3DStrain, TBaseClass);
59 
60  // Repeat the required typedefs and enums from parent class
61  typedef typename Superclass::Float Float;
64 
69 
70  // ////////////////////////////////////////////////////////////////////////
78  virtual void GetStrainDisplacementMatrix(MatrixType & B, const MatrixType & shapeDgl) const;
79 
83  virtual void GetMaterialMatrix(MatrixType & D) const;
84 
88  virtual unsigned int GetNumberOfDegreesOfFreedomPerNode(void) const
89  {
90  return 3;
91  }
92 
96  virtual Material::ConstPointer GetMaterial(void) const
97  {
98  return m_mat;
99  }
100 
102  {
103  m_mat =
104  dynamic_cast<const MaterialLinearElasticity *>( mat_.GetPointer() );
105  }
106 
107 protected:
108 
109  virtual void PrintSelf(std::ostream& os, Indent indent) const;
110 
115 
116 }; // class Element3DStrain
117 
118 }
119 } // end namespace itk::fem
120 
121 #ifndef ITK_MANUAL_INSTANTIATION
122 #include "itkFEMElement3DStrain.hxx"
123 #endif
124 
125 #endif // #ifndef __itkFEMElement3DStrain_h
virtual void SetMaterial(Material::ConstPointer mat_)
virtual Material::ConstPointer GetMaterial(void) const
Class that is used to define linear elasticity problem in 3D space.
Superclass::VectorType VectorType
Superclass::MatrixType MatrixType
ObjectType * GetPointer() const
virtual void GetStrainDisplacementMatrix(MatrixType &B, const MatrixType &shapeDgl) const
SmartPointer< Self > Pointer
vnl_matrix< Float > MatrixType
virtual void GetMaterialMatrix(MatrixType &D) const
Linear elasticity material class.
const MaterialLinearElasticity * m_mat
SmartPointer< const Self > ConstPointer
virtual unsigned int GetNumberOfDegreesOfFreedomPerNode(void) const
Superclass::VectorType VectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void PrintSelf(std::ostream &os, Indent indent) const
Superclass::MatrixType MatrixType