OOFEM 3.0
Loading...
Searching...
No Matches
set.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 - 2025 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 set_h
36#define set_h
37
38#include "femcmpnn.h"
39#include "intarray.h"
40
41#include <list>
42#ifdef _OPENMP
43#include <omp.h>
44#endif
45
46
47namespace oofem {
49
50#define _IFT_Set_Name "set"
51#define _IFT_Set_nodes "nodes"
52#define _IFT_Set_allNodes "allnodes"
53#define _IFT_Set_nodeRanges "noderanges"
54#define _IFT_Set_elements "elements"
55#define _IFT_Set_allElements "allelements"
56#define _IFT_Set_elementRanges "elementranges"
57#define _IFT_Set_elementBoundaries "elementboundaries"
58#define _IFT_Set_elementEdges "elementedges"
59#define _IFT_Set_elementSurfaces "elementsurfaces"
60#define _IFT_Set_internalElementNodes "internalelementnodes"
61#define _IFT_Set_elementprops "elemprops"
62#define _IFT_Set_dofmanprops "dofmanprops"
64
65class EntityRenumberingFunction;
66class Range;
67
82{
83protected:
93 std::string elementprops;
94 std::string dofmanprops;
95#if 0
97 std::unique_ptr<InputRecord> inputRec;
98#endif
100#ifdef _OPENMP
101 omp_lock_t initLock;
102#endif
103public:
109 Set(int n, Domain * d) ;
110 virtual ~Set() { }
111
112 void initializeFrom(InputRecord &ir) override;
113 void giveInputRecord(DynamicInputRecord &input) override;
118 const IntArray &giveElementList();
124 const IntArray &giveBoundaryList();
129 const IntArray &giveEdgeList();
134 const IntArray &giveSurfaceList();
139 const IntArray &giveInternalElementDofManagerList();
145 const IntArray &giveNodeList();
152 const IntArray &giveSpecifiedNodeList();
156 void setElementList(IntArray newElements);
160 void setBoundaryList(IntArray newBoundaries);
164 void setEdgeList(IntArray newEdges);
168 void setNodeList(IntArray newNodes);
169
173 void clear();
177 void addAllElements();
179 bool hasElement(int elem) const;
180
181 std::string giveElementProperties() const { return this->elementprops; }
182 std::string giveDofManProperties() const { return this->dofmanprops; }
183
184
185 void updateLocalNumbering(EntityRenumberingFunctor &f) override;
189 void updateLocalNodeNumbering(EntityRenumberingFunctor &f);
193 void updateLocalElementNumbering(EntityRenumberingFunctor &f);
194
195 void saveContext(DataStream &stream, ContextMode mode) override;
196 void restoreContext(DataStream &stream, ContextMode mode) override;
197
198 const char *giveClassName() const override { return "Set"; }
199 const char *giveInputRecordName() const override { return _IFT_Set_Name; }
200
201protected:
205 void computeIntArray(IntArray &answer, const IntArray &specified, std :: list< Range >ranges);
206};
207
209
210} // end namespace oofem
211#endif // set_h
FEMComponent(int n, Domain *d)
Definition femcmpnn.h:88
Set(int n, Domain *d)
Definition set.C:52
std::string giveElementProperties() const
Definition set.h:181
IntArray elementEdges
Element numbers + boundary numbers (interleaved).
Definition set.h:88
bool nodalListInitialized
Definition set.h:99
IntArray mElementsSorted
Definition set.h:86
std::string dofmanprops
Dof manager properties.
Definition set.h:94
IntArray totalNodes
Unique set of nodes (computed).
Definition set.h:92
IntArray nodes
Element numbers + internal dof manager numbers (interleaved).
Definition set.h:91
IntArray elements
Element numbers.
Definition set.h:84
std::string giveDofManProperties() const
Definition set.h:182
IntArray elementSurfaces
Element numbers + edge numbers (interleaved).
Definition set.h:89
std::string elementprops
Element properties.
Definition set.h:93
bool mElementListIsSorted
Definition set.h:85
const char * giveInputRecordName() const override
Definition set.h:199
const char * giveClassName() const override
Definition set.h:198
virtual ~Set()
Definition set.h:110
IntArray elementBoundaries
Definition set.h:87
IntArray elementInternalNodes
Element numbers + surface numbers (interleaved).
Definition set.h:90
long ContextMode
Definition contextmode.h:43
Set dummySet(0, nullptr)
Definition set.h:208
#define OOFEM_EXPORT
Definition oofemcfg.h:7
#define _IFT_Set_Name
Definition set.h:50

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011