Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Dual_connectivity.h
Go to the documentation of this file.
1 /* *******************************************************************
2  * Rocstar Simulation Suite *
3  * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4  * *
5  * Illinois Rocstar LLC *
6  * Champaign, IL *
7  * www.illinoisrocstar.com *
8  * sales@illinoisrocstar.com *
9  * *
10  * License: See LICENSE file in top level of distribution package or *
11  * http://opensource.org/licenses/NCSA *
12  *********************************************************************/
13 /* *******************************************************************
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17  * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21  * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22  *********************************************************************/
23 // $Id: Dual_connectivity.h,v 1.9 2008/12/06 08:43:20 mtcampbe Exp $
24 
25 #ifndef __DUAL_CONNECTIVITY_H
26 #define __DUAL_CONNECTIVITY_H
27 
28 #include "mapbasic.h"
29 #include "roccom_devel.h"
30 
32 
37 public:
39  explicit Pane_dual_connectivity( const COM::Pane *p, bool with_ghost=true);
40 
42  void incident_elements( int node_id, std::vector<int>& elists);
43 
44 protected:
49 
50 private:
51  const COM::Pane &_pane; // Pane object
52  bool _with_ghost;// Whether to include ghost nodes/elements
53  std::vector< int> _offsets; // The offsets in _eids for each node
54  std::vector< int> _eids; // The incident element ids for all nodes
55 };
56 
58 
59 #endif /* __DUAL_CONNECTIVITY_H */
60 
61 
62 
63 
64 
65 
#define MAP_END_NAMESPACE
Definition: mapbasic.h:29
void incident_elements(int node_id, std::vector< int > &elists)
Obtain the IDs of the elements incident on a given node.
std::vector< int > _eids
const COM::Pane & _pane
std::vector< int > _offsets
Pane_dual_connectivity(const COM::Pane *p, bool with_ghost=true)
Constructs the dual connectivity for a given pane.
#define MAP_BEGIN_NAMESPACE
Definition: mapbasic.h:28
Constructs the dual connectivity for the whole pane (including ghost nodes and elements), which contains information about incident elements for each node.
void construct_connectivity_unstr()
Construct dual connectivity for unstructured meshes.
void construct_connectivity_str_2()
Construct dual connectivity for 2-D structured meshes.