OOFEM 3.0
Loading...
Searching...
No Matches
contactelement.C
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
36#include "intarray.h"
37#include "floatarray.h"
38#include "floatmatrix.h"
39
40#include "mathfem.h"
41#include "feinterpol.h"
42
43
44
45/*
46#include "entityrenumberingscheme.h"
47#include "contextioerr.h"
48#include "feinterpol1d.h"
49#include "feinterpol2d.h"
50#include "feinterpol3d.h"
51#include "dofmanager.h"
52#include "node.h"
53#include "gausspoint.h"
54#include "unknownnumberingscheme.h"
55#include "cltypes.h"
56#include <cstdio>
57*/
58namespace oofem {
59 ContactElement :: ContactElement(int n, Domain *aDomain) : Element(n, aDomain)
60{
61
62}
63
64
65ContactElement :: ~ContactElement()
66{
67}
68
69AABB
70ContactElement :: computeAABB()
71{
72 // TODO
73 AABB aabb;
74 int nnode = this->giveNumberOfNodes();
75 for (int i=1; i<=nnode; i++) {
76 Node *node = this->giveNode(i);
77 const auto& coords = node->giveCoordinates();
78 double x = coords.at(1);
79 double y = coords.at(2);
80 double z = ( coords.size() > 2 ) ? coords.at(3) : 0.0;
81 aabb.merge(x,y,z);
82 }
83 return aabb;
84}
85
86
87
88} // end namespace oofem
Axis-aligned bounding box.
Definition aabb.h:65
void merge(const Vector &v)
Expands the bounding box to include a given point.
Definition aabb.C:93
const FloatArray & giveCoordinates() const
Definition dofmanager.h:390
Node * giveNode(int i) const
Definition element.h:629
virtual int giveNumberOfNodes() const
Definition element.h:703
Element(int n, Domain *aDomain)
Definition element.C:86
double & at(Index i)
Definition floatarray.h:202

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