SheafSystem  0.0.0.0
tetra_connectivity.h
1 
2 //
3 // Copyright (c) 2014 Limit Point Systems, Inc.
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
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 // Interface for class tetra_connectivity
19 
20 #ifndef TETRA_CONNECTIVITY_H
21 #define TETRA_CONNECTIVITY_H
22 
23 #ifndef SHEAF_DLL_SPEC_H
24 #include "SheafSystem/sheaf_dll_spec.h"
25 #endif
26 
27 #ifndef BASE_CONNECTIVITY_H
28 #include "SheafSystem/block_connectivity.h"
29 #endif
30 
31 namespace fiber_bundle
32 {
33 
34  using namespace sheaf;
35 
39 class SHEAF_DLL_SPEC tetra_connectivity : public block_connectivity
40 {
41 
42 public:
43 
44  // ===========================================================
46  // ===========================================================
48 
49 public:
55 
60 
64  virtual ~tetra_connectivity();
65 
73  tetra_connectivity(const pod_index_type* xnode_ids, size_type xnode_id_ct, size_type xnode_ct);
74 
83  size_type xj_size,
84  size_type xk_size,
85  pod_index_type xstart_id = 0);
86 
92  enum static_const_int {NODES_PER_ELEMENT = 4};
93 
94 protected:
95 
99  void create_connectivity(size_type xi_size,
100  size_type xj_size,
101  size_type xk_size,
102  pod_index_type xstart_id = 0);
103 
108 
113 
118 
122  size_type node_id(size_type xi, size_type xj, size_type xk) const;
123 
124 
125 private:
126 
128 
129  // ===========================================================
131  // ===========================================================
133 
134 public:
138  virtual cell_type element_type() const;
139 
140 protected:
141 
142 private:
143 
145 
146  // ===========================================================
148  // ===========================================================
150 
151 public:
156  virtual tetra_connectivity* clone() const;
157 
161  virtual bool invariant() const;
162 
166  virtual bool is_ancestor_of(const any* other) const;
167 
168 protected:
169 
170 private:
171 
173 
174 };
175 
176 } // namespace fiber_bundle
177 
178 #endif // ifndef TETRA_CONNECTIVITY_H
Zone to node connectivity relation for a block of zones of a given type.
Nodal connectivity for a block containing zones of type tetra.
Abstract base class with useful features for all objects.
Definition: any.h:39
unsigned long size_type
An unsigned integral type used to represent sizes and capacities.
Definition: sheaf.h:52
int_type pod_index_type
The plain old data index type.
Definition: pod_types.h:49
size_type _k_vertex_size
The number of vertices in the k-direction.
Namespace for the sheaves component of the sheaf system.
static_const_int
Static const integral data members.
size_type _j_vertex_size
The number of vertices in the j-direction.
Namespace for the fiber_bundles component of the sheaf system.
size_type _i_vertex_size
The number of vertices in the i-direction.