OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
celnode2node.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 celnode2node_h
36 #define celnode2node_h
37 
38 #include "contact/contactelement.h"
39 
41 
42 //#define _IFT_ContactManager_Name "contactmanager"
43 
45 
46 namespace oofem {
47 class Domain;
48 class ContactManager;
49 class ContactDefinition;
50 class SparseMtrx;
51 class TimeStep;
52 class DofManager;
53 class GaussPoint;
54 class UnknownNumberingScheme;
55 class FloatMatrix;
56 class IntegrationRule;
57 class ContactElement;
58 
59 class OOFEM_EXPORT Node2NodeContact : public ContactElement
60 {
61 protected:
63 
64 private:
67 
68  // should be set by input:
69  double area; // The area associated with the node (default = 1)- in order to represent some physical dimension.
70  double epsN; // penalty stiffness
71 
73 public:
74 
76  Node2NodeContact(DofManager *master, DofManager *slave);
78  virtual ~Node2NodeContact(){};
79  virtual int instanciateYourself(DataReader &dr);
80  virtual void setupIntegrationPoints();
81 
82  virtual void computeGap(FloatArray &answer, TimeStep *tStep);
83  virtual void computeContactTractionAt(GaussPoint *gp, FloatArray &t, FloatArray &gap, TimeStep *tStep);
84  virtual void computeCmatrixAt(GaussPoint *gp, FloatArray &answer, TimeStep *TimeStep);
85  FloatArray &giveNormal() { return this->normal; }
86 
87 
88  // Necessary methods - pure virtual in base class
89  virtual void computeContactForces(FloatArray &answer, TimeStep *tStep, ValueModeType mode,
90  const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms);
91 
92  virtual void computeContactTangent(FloatMatrix &answer, TimeStep *tStep);
93 
94  virtual void giveLocationArray(IntArray &answer, const UnknownNumberingScheme &s);
95 };
96 
97 
98 class OOFEM_EXPORT Node2NodeContactL : public Node2NodeContact
99 {
100 protected:
102 
103 private:
106  int lagrangeId; // dof Id associated with the Lagrange multiplier
107 
108  // should be set by input:
109  double area; // The area associated with the node (default = 1)- in order to represent some physical dimension.
110 
111 public:
113  Node2NodeContactL(DofManager *master, DofManager *slave);
115  virtual ~Node2NodeContactL(){};
116  virtual void giveDofManagersToAppendTo(IntArray &answer);
117  virtual void computeContactTractionAt(GaussPoint *gp, FloatArray &t, FloatArray &gap, TimeStep *tStep);
118 
119  // Necessary methods - pure virtual in base class
120  virtual void computeContactForces(FloatArray &answer, TimeStep *tStep, ValueModeType mode,
121  const UnknownNumberingScheme &s, Domain *domain, FloatArray *eNorms);
122 
123  virtual void computeContactTangent(FloatMatrix &answer, TimeStep *tStep);
124 
125  virtual void giveLocationArray(IntArray &answer, const UnknownNumberingScheme &s);
126 };
127 
128 } // end namespace oofem
129 #endif // celnode2node_h
Class and object Domain.
Definition: domain.h:115
virtual ~Node2NodeContact()
Destructor.
Definition: celnode2node.h:78
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
Base class for dof managers.
Definition: dofmanager.h:113
Class representing the abstraction for input data source.
Definition: datareader.h:50
Class implementing an array of integers.
Definition: intarray.h:61
FloatArray & giveNormal()
Definition: celnode2node.h:85
DofManager * slaveNode
Definition: celnode2node.h:66
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
DofManager * masterNode
Definition: celnode2node.h:65
ContactDefinition * cDef
Definition: celnode2node.h:101
ContactDefinition * cDef
Definition: celnode2node.h:62
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual ~Node2NodeContactL()
Destructor.
Definition: celnode2node.h:115
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
This class manages a particular contact definition.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
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:27 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011