ITK
4.3.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Numerics
FEM
include
itkFEMElement1DStress.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 __itkFEMElement1DStress_h
20
#define __itkFEMElement1DStress_h
21
22
#include "
itkFEMElementBase.h
"
23
#include "
itkFEMMaterialLinearElasticity.h
"
24
25
namespace
itk
26
{
27
namespace
fem
28
{
44
template
<
class
TBaseClass = Element>
45
class
Element1DStress
:
public
TBaseClass
46
{
47
public
:
48
50
typedef
Element1DStress
Self
;
51
typedef
TBaseClass
Superclass
;
52
typedef
SmartPointer<Self>
Pointer
;
53
typedef
SmartPointer<const Self>
ConstPointer
;
54
56
itkTypeMacro(
Element1DStress
, TBaseClass);
57
58
// Repeat the required typedefs and enums from parent class
59
typedef
typename
Superclass::Float
Float
;
60
typedef
typename
Superclass::MatrixType
MatrixType
;
61
typedef
typename
Superclass::VectorType
VectorType
;
62
66
Element1DStress
();
67
68
// ////////////////////////////////////////////////////////////////////////
69
/*
70
* Methods related to the physics of the problem.
71
*/
72
76
virtual
void
GetStrainDisplacementMatrix
(
MatrixType
& B,
const
MatrixType
& shapeDgl)
const
;
77
81
virtual
void
GetMaterialMatrix
(
MatrixType
& D)
const
;
82
88
virtual
void
GetStiffnessMatrix
(
MatrixType
& Ke)
const
;
89
97
virtual
unsigned
int
GetNumberOfDegreesOfFreedomPerNode
(
void
)
const
98
{
99
return
2;
100
}
101
105
virtual
Material::ConstPointer
GetMaterial
(
void
)
const
106
{
107
return
m_mat
;
108
}
109
110
virtual
void
SetMaterial
(
Material::ConstPointer
mat_)
111
{
112
m_mat
=
dynamic_cast<
const
MaterialLinearElasticity
*
>
(mat_.
GetPointer
());
113
}
114
115
protected
:
116
117
virtual
void
PrintSelf
(std::ostream& os,
Indent
indent)
const
;
118
122
const
MaterialLinearElasticity
*
m_mat
;
123
124
};
// class Element1DStress
125
126
}
127
}
// end namespace itk::fem
128
129
#ifndef ITK_MANUAL_INSTANTIATION
130
#include "itkFEMElement1DStress.hxx"
131
#endif
132
133
#endif // #ifndef __itkFEMElement1DStress_h
134
Generated on Sun Dec 9 2012 00:58:35 for ITK by
1.8.2