Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
include
FEM
ExternalBoundary.h
Go to the documentation of this file.
1
/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2
*
3
*
4
* MoDELib is distributed without any warranty under the
5
* GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6
*/
7
8
#ifndef model_ExternalBoundary_H_
9
#define model_ExternalBoundary_H_
10
11
#include <deque>
12
#include <utility>
// std::pair, std::make_pair
13
#include <Eigen/Dense>
14
#include <
Simplex.h
>
15
#include <
IntegrationDomain.h
>
16
17
namespace
model
18
{
19
20
21
/**************************************************************************/
22
/**************************************************************************/
23
struct
ExternalBoundary
//: public IntegrationDomain<dim,1,qOrder,QuadratureRule>
24
{
25
26
template
<
typename
FiniteElementType,
int
qOrder,
template
<
short
unsigned
int
,
size_t
>
class
QuadratureRule>
27
static
IntegrationDomain<FiniteElementType,1,qOrder,QuadratureRule>
boundary
(
const
FiniteElementType
& fe)
28
{
29
IntegrationDomain<FiniteElementType,1,qOrder,QuadratureRule>
temp
;
30
31
for
(
const
auto
& eIter : fe.elements())
32
{
33
if
(eIter.second.isBoundaryElement())
34
{
35
const
std::vector<int> boundaryFaces=eIter.second.boundaryFaces();
36
for
(
size_t
f
=0;
f
<boundaryFaces.size();++
f
)
37
{
38
temp
.emplace_back(&eIter.second,boundaryFaces[
f
]);
39
}
40
}
41
}
42
43
temp
.bind(fe);
44
return
temp
;
45
}
46
47
};
48
49
}
// close namespace
50
#endif
IntegrationDomain.h
Simplex.h
f
function int_R syms a b c u real f
Definition
int_R.m:4
model
Definition
DD_converter.dox:2
model::ExternalBoundary
Definition
ExternalBoundary.h:24
model::ExternalBoundary::boundary
static IntegrationDomain< FiniteElementType, 1, qOrder, QuadratureRule > boundary(const FiniteElementType &fe)
Definition
ExternalBoundary.h:27
model::IntegrationDomain
Definition
IntegrationDomain.h:71
model::FiniteElementType
temp
vertex temp
Definition
triangle.cpp:9214
Generated by
1.15.0