gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
HierarchicalBasisH1Point.cpp
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 //
6 // Contributed by Ismail Badia.
7 // Reference : "Higher-Order Finite Element Methods"; Pavel Solin, Karel
8 // Segeth ,
9 // Ivo Dolezel , Chapman and Hall/CRC; Edition : Har/Cdr (2003).
10 
12 
14 {
15  _nvertex = 1;
16  _nedge = 0;
17  _nfaceTri = 0;
18  _nfaceQuad = 0;
19  _nVertexFunction = 1;
20  _nEdgeFunction = 0;
23  _nBubbleFunction = 0;
24 }
25 
27 
29 {
30  return 1; // factorial 1
31 }
32 
33 void HierarchicalBasisH1Point::generateBasis(double const &u, double const &v,
34  double const &w,
35  std::vector<double> &vertexBasis,
36  std::vector<double> &edgeBasis,
37  std::vector<double> &faceBasis,
38  std::vector<double> &bubbleBasis)
39 {
40  vertexBasis[0] = 1;
41 }
42 
44  double const &u, double const &v, double const &w,
45  std::vector<std::vector<double> > &gradientVertex,
46  std::vector<std::vector<double> > &gradientEdge,
47  std::vector<std::vector<double> > &gradientFace,
48  std::vector<std::vector<double> > &gradientBubble)
49 {
50  gradientVertex[0][0] = 1;
51 }
52 
53 void HierarchicalBasisH1Point::getKeysInfo(std::vector<int> &functionTypeInfo,
54  std::vector<int> &orderInfo)
55 {
56  functionTypeInfo[0] = 0;
57  orderInfo[0] = 0;
58 }
HierarchicalBasis::_nTriFaceFunction
int _nTriFaceFunction
Definition: HierarchicalBasis.h:27
HierarchicalBasisH1Point::HierarchicalBasisH1Point
HierarchicalBasisH1Point()
Definition: HierarchicalBasisH1Point.cpp:13
HierarchicalBasisH1Point::~HierarchicalBasisH1Point
virtual ~HierarchicalBasisH1Point()
Definition: HierarchicalBasisH1Point.cpp:26
HierarchicalBasis::_nvertex
int _nvertex
Definition: HierarchicalBasis.h:20
HierarchicalBasis::_nBubbleFunction
int _nBubbleFunction
Definition: HierarchicalBasis.h:28
HierarchicalBasisH1Point.h
HierarchicalBasisH1Point::getKeysInfo
virtual void getKeysInfo(std::vector< int > &functionTypeInfo, std::vector< int > &orderInfo)
Definition: HierarchicalBasisH1Point.cpp:53
HierarchicalBasisH1Point::getNumberOfOrientations
virtual unsigned int getNumberOfOrientations() const
Definition: HierarchicalBasisH1Point.cpp:28
HierarchicalBasis::_nQuadFaceFunction
int _nQuadFaceFunction
Definition: HierarchicalBasis.h:26
HierarchicalBasis::_nfaceTri
int _nfaceTri
Definition: HierarchicalBasis.h:23
HierarchicalBasis::_nfaceQuad
int _nfaceQuad
Definition: HierarchicalBasis.h:22
HierarchicalBasis::_nVertexFunction
int _nVertexFunction
Definition: HierarchicalBasis.h:24
HierarchicalBasisH1Point::generateGradientBasis
void generateGradientBasis(double const &u, double const &v, double const &w, std::vector< std::vector< double > > &gradientVertex, std::vector< std::vector< double > > &gradientEdge, std::vector< std::vector< double > > &gradientFace, std::vector< std::vector< double > > &gradientBubble)
Definition: HierarchicalBasisH1Point.cpp:43
HierarchicalBasis::_nEdgeFunction
int _nEdgeFunction
Definition: HierarchicalBasis.h:25
HierarchicalBasisH1Point::generateBasis
virtual void generateBasis(double const &u, double const &v, double const &w, std::vector< double > &vertexBasis, std::vector< double > &edgeBasis, std::vector< double > &faceBasis, std::vector< double > &bubbleBasis)
Definition: HierarchicalBasisH1Point.cpp:33
HierarchicalBasis::_nedge
int _nedge
Definition: HierarchicalBasis.h:21