OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
contactdefinition.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 contactdefinition_h
36 #define contactdefinition_h
37 
38 #include "oofemcfg.h"
39 #include "datareader.h"
40 #include "inputrecord.h"
41 #include "contact/contactmanager.h"
42 
44 
45 #define _IFT_ContactDefinition_Name "contactdefinition"
46 
47 
48 namespace oofem {
49 class Domain;
50 class ContactManager;
51 class ContactObject;
52 class ContactElement;
53 class TimeStep;
54 
55 class ContactMaterial; // write this
56 
57 
64 class OOFEM_EXPORT ContactDefinition
65 {
66 private:
68 
69  std :: vector< ContactElement *> masterElementList;
70  int numberOfConstraintEq; // used when creating new dofs
71 
72  //ContactMaterial *contactMaterial;
73 
74 public:
78  virtual ~ContactDefinition();
79 
80  ContactDefinition(const ContactDefinition& src) = delete;
81  ContactDefinition &operator = (const ContactDefinition &src) = delete;
82 
83  virtual void createContactDofs();
84 
86 
87  virtual int instanciateYourself(DataReader &dr);
88  virtual const char *giveClassName() const { return "ContactDefinition"; }
89  //virtual const char *giveInputRecordName() const { return _IFT_ContactDefinition_Name; }
90  ContactManager *giveContactManager() { return this->cMan; }
91  virtual int giveNumberOfConstraintEqToAdd() { return this->numberOfConstraintEq; }
92  virtual void setNumberOfConstraintEqToAdd(const int number) { this->numberOfConstraintEq = number; }
93  virtual void computeContactForces(FloatArray &answer, TimeStep *tStep, ValueModeType mode,
94  const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms);
95 
96  virtual void computeContactTangent(SparseMtrx &answer, TimeStep *tStep,
97  const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s);
98 
99  ContactElement *giveContactElement(const int num) { return this->masterElementList[num-1]; }
100  int giveNumbertOfContactElements() { return this->masterElementList.size(); }
101  void addContactElement(ContactElement *cEl) { this->masterElementList.push_back(cEl); }
102  // objects can be of different kinds
103  // nodes, segments, surfaces, analytical functions
104 
105  /* Each contact definition has several master objects that each keep track of generally several slave objects
106  * Ex:
107  * -Master can be a node and only keep track of another node -> node2node
108  * -Master can be a node and keep track of several other nodes -> for larger displacements
109  * -Master can be a segment and only keep track of another segment -> segment2segment
110  * -etc.
111  *
112  * how should they be stored?
113  */
114  //MasterObjects
115  //SlaveObjects
116  // assembleVectorOf...
117  // assembleTangentOf...
118 
119 
120 
121  //ConstrainType - How should the contact constraints be fulfilled
122  // Penalty, Lagrange multiplier, Augmented (mix), Mortar (weakly fulfilled)
123 
124  // InterfaceModel - a constitutive model for the contact - depends on the physics
125  // linear/nonlinear for stresses, thermal conductance, etc.
126  // Normal/tangential
127 };
128 
129 
130 } // end namespace oofem
131 #endif // contactdefinition_h
ContactManager * giveContactManager()
Class and object Domain.
Definition: domain.h:115
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
void addContactElement(ContactElement *cEl)
Class representing the abstraction for input data source.
Definition: datareader.h:50
virtual IRResultType initializeFrom(InputRecord *ir)
std::vector< ContactElement * > masterElementList
virtual const char * giveClassName() 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
Class representing the general Input Record.
Definition: inputrecord.h:101
ContactElement * giveContactElement(const int num)
This class manages a particular contact definition.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void setNumberOfConstraintEqToAdd(const int number)
virtual int giveNumberOfConstraintEqToAdd()
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