OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
bctracker.h
Go to the documentation of this file.
1 /*
2  *
3  * ##### ##### ###### ###### ### ###
4  * ## ## ## ## ## ## ## ### ##
5  * ## ## ## ## #### #### ## # ##
6  * ## ## ## ## ## ## ## ##
7  * ## ## ## ## ## ## ## ##
8  * ##### ##### ## ###### ## ##
9  *
10  *
11  * OOFEM : Object Oriented Finite Element Code
12  *
13  * Copyright (C) 1993 - 2013 Borek Patzak
14  *
15  *
16  *
17  * Czech Technical University, Faculty of Civil Engineering,
18  * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19  *
20  * This library is free software; you can redistribute it and/or
21  * modify it under the terms of the GNU Lesser General Public
22  * License as published by the Free Software Foundation; either
23  * version 2.1 of the License, or (at your option) any later version.
24  *
25  * This program is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28  * Lesser General Public License for more details.
29  *
30  * You should have received a copy of the GNU Lesser General Public
31  * License along with this library; if not, write to the Free Software
32  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33  */
34 
35 #ifndef bctracker_h
36 #define bctracker_h
37 
38 #include <list>
39 #include <vector>
40 
41 namespace oofem {
42 class Domain;
43 
53 class BCTracker {
54  public:
56  struct Entry {
58  int bcNumber;
61 
62  Entry (int bc, int bid) {bcNumber=bc; boundaryId = bid;}
63  };
64  typedef std::list<Entry> entryListType;
65 
66  private:
68  std::vector<entryListType> elemList;
71 
72  public:
73  BCTracker (Domain *d);
74 
75  void initialize ();
76  const entryListType& getElementRecords (int elem);
77 };
78 
79 } // end namespace oofem
80 #endif
81 
82 
83 
This class keeps track of applied boundary conditions on individual entities.
Definition: bctracker.h:53
Class and object Domain.
Definition: domain.h:115
void initialize()
Definition: bctracker.C:54
int boundaryId
boundari ID if required
Definition: bctracker.h:60
Helper class storing a sigle record for component (element, node, etc)
Definition: bctracker.h:56
const entryListType & getElementRecords(int elem)
Definition: bctracker.C:100
std::vector< entryListType > elemList
list keeping element entries
Definition: bctracker.h:68
int bcNumber
bc number
Definition: bctracker.h:58
std::list< Entry > entryListType
Definition: bctracker.h:64
BCTracker(Domain *d)
Definition: bctracker.C:48
Domain * domain
Domain link.
Definition: bctracker.h:70
the oofem namespace is to define a context or scope in which all oofem names are defined.
Entry(int bc, int bid)
Definition: bctracker.h:62

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:27 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011