Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
NonPeriodicExternalBoundary.h
Go to the documentation of this file.
1/* This file is part of MoDELib, distributed under the GNU GPL v2. */
2#ifndef model_NonPeriodicExternalBoundary_H_
3#define model_NonPeriodicExternalBoundary_H_
4#include <ExternalBoundary.h>
5namespace model
6{
7 // Paired faces have natural periodic traction balance, not free-surface loads.
9 {
10 template<class FE,int order,template<unsigned short,size_t> class Rule>
11 static auto boundary(const FE& fe)
12 {
14 for(const auto& face : ExternalBoundary::boundary<FE,order,Rule>(fe))
15 {
16 if(!fe.mesh.periodicSimplexPairs().count(&face.first->simplex.child(face.second)))
17 {
18 domain.emplace_back(face.first,face.second);
19 }
20 }
21 domain.bind(fe);
22 return domain;
23 }
24 };
25}
26#endif
static IntegrationDomain< FiniteElementType, 1, qOrder, QuadratureRule > boundary(const FiniteElementType &fe)