OOFEM 3.0
Loading...
Searching...
No Matches
contactsearch.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 contactsearch_h
36#define contactsearch_h
37
38#include "intarray.h"
39#include <memory>
40
41namespace oofem {
42class FloatArray;
43class ContactPair;
45class Domain;
46class TimeStep;
47
66
68{
69protected:
71 std::vector<std::unique_ptr<ContactPair>> contactPairs;
72
73public:
82 virtual void createContactPairs() = 0;
91 virtual void updateContactPairs(TimeStep *tStep) = 0;
96 std::vector<std::unique_ptr<ContactPair>>& getContactPairs() { return contactPairs; }
100 const std::vector<std::unique_ptr<ContactPair>>& getContactPairs() const { return contactPairs; }
101};
102
103
116
117
118
127
136
137
138
139
140
141
142
143} // end namespace oofem
144#endif //contactsearch_h
Represents a contact interaction between a master and a slave contact point.
Definition contactpair.h:68
ContactSearchAlgorithm_Surface2FESurface_2d(FEContactSurface *scs, FEContactSurface *mcs, Domain *d)
void updateContactPairs(TimeStep *tStep) override
Updates previously created contact pairs for the current time step.
void updateContactPairs(TimeStep *tStep) override
Updates previously created contact pairs for the current time step.
ContactSearchAlgorithm_Surface2FESurface_3d(FEContactSurface *scs, FEContactSurface *mcs, Domain *d)
ContactSearchAlgorithm_Surface2FESurface(FEContactSurface *scs, FEContactSurface *mcs, Domain *d, int sd)
void createContactPairs() override
Creates initial contact pairs based on the current configuration.
void updateContactPairs(TimeStep *tStep) override
Updates previously created contact pairs for the current time step.
std::vector< std::unique_ptr< ContactPair > > & getContactPairs()
Returns the internally stored list of contact pairs.
const std::vector< std::unique_ptr< ContactPair > > & getContactPairs() const
Returns the internally stored list of contact pairs (const overload).
virtual void updateContactPairs(TimeStep *tStep)=0
Updates previously created contact pairs for the current time step.
virtual void createContactPairs()=0
Creates initial contact pairs based on the current configuration.
std::vector< std::unique_ptr< ContactPair > > contactPairs
Abstract representation of a finite element contact surface.

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