OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
contactmanager.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 contactmanager_h
36 #define contactmanager_h
37 
38 #include "chartype.h"
39 #include "valuemodetype.h"
40 #include "oofemcfg.h"
41 #include "datareader.h"
42 #include "inputrecord.h"
43 
44 #include <vector>
45 #include <memory>
46 
48 
49 #define _IFT_ContactManager_Name "contactmanager"
50 #define _IFT_ContactManager_NumberOfContactDefinitions "numcontactdef"
51 
53 
54 namespace oofem {
55 class Domain;
56 class ContactDefinition;
57 class TimeStep;
58 class UnknownNumberingScheme;
59 class SparseMtrx;
65 class OOFEM_EXPORT ContactManager
66 {
67 protected:
69 
70 private:
71  std :: vector< std :: unique_ptr< ContactDefinition > > contactDefinitionList;
72 
73 public:
74 
76  ContactManager(Domain *domain);
78  virtual ~ContactManager();
79 
80  ContactManager(const ContactManager& src) = delete;
81  ContactManager &operator = (const ContactManager &src) = delete;
82 
83  void createContactDofs();
84 
86  virtual IRResultType initializeFrom(InputRecord *ir);
87 
88  virtual int instanciateYourself(DataReader &dr);
89  virtual const char *giveClassName() const { return "ContactManager"; }
90 
91  Domain *giveDomain() { return this->domain; }
93  ContactDefinition *giveContactDefinition(const int num) { return this->contactDefinitionList[num-1].get(); }
94  int giveNumberOfContactDefinitions() const { return (int)contactDefinitionList.size(); }
95 
96 
97  void assembleVectorFromContacts(FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode,
98  const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms = NULL);
99 
100 
101  void assembleTangentFromContacts(SparseMtrx &answer, TimeStep *tStep,
102  CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s);
103 
104 };
105 
106 } // end namespace oofem
107 #endif // contactmanager_h
Class and object Domain.
Definition: domain.h:115
virtual const char * giveClassName() const
Base class for all matrices stored in sparse format.
Definition: sparsemtrx.h:60
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
Class representing the abstraction for input data source.
Definition: datareader.h:50
std::vector< std::unique_ptr< ContactDefinition > > contactDefinitionList
int giveNumberOfContactDefinitions() const
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
This class manages all the contacts in a domain.
Class representing vector of real numbers.
Definition: floatarray.h:82
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
CharType
Definition: chartype.h:87
Class representing the general Input Record.
Definition: inputrecord.h:101
This class manages a particular contact definition.
ContactDefinition * giveContactDefinition(const int num)
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing solution step.
Definition: timestep.h:80

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:28 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011