XC Open source finite element analysis program
ZeroLengthContact.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 //ZeroLengthContact.h
28 
29 #ifndef ZeroLengthContact_h
30 #define ZeroLengthContact_h
31 
32 #include "domain/mesh/element/Element0D.h"
33 #include "utility/matrix/Matrix.h"
34 
35 namespace XC {
36 class Node;
37 class Channel;
38 class Response;
39 
41 //
44  {
45  protected:
46  // contact forces
47  mutable double pressure; // contact pressure at n+1
48  double t1;
49  double t2;
50 
51 
52 
53  // parameters
54  mutable double gap;
55  double gap_n;
56  double Kn;
57  double Kt;
58  double fs;
59 
60  // Normal and Tangental Vectors for Elemental Nodes, (4*1)
61  mutable Vector N;
62 
63  mutable int ContactFlag;
64 
65 
66  public:
67  ZeroLengthContact(int tag= 0,int classTag= 0, int dim= 2);
68  ZeroLengthContact(int tag, int classTag, int dim, int Nd1, int Nd2,double Kn, double Kt, double fRatio);
69 
70  int addLoad(ElementalLoad *theLoad, double loadFactor);
71  int addInertiaLoadToUnbalance(const Vector &);
72 
73  // public methods for element output
74  int sendSelf(CommParameters &);
75  int recvSelf(const CommParameters &);
76  void Print(std::ostream &os, int flag =0);
77  };
78 
79 } // end of XC namespace
80 
81 
82 #endif
83 
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
double gap_n
gap of time n step
Definition: ZeroLengthContact.h:55
Definition: Vector.h:82
double Kn
normal penalty
Definition: ZeroLengthContact.h:56
double t2
friction in local dir2
Definition: ZeroLengthContact.h:49
void Print(std::ostream &os, int flag=0)
Imprime el objeto.
Definition: ZeroLengthContact.cc:86
Base class for loads over elements.
Definition: ElementalLoad.h:73
double fs
friction ratio
Definition: ZeroLengthContact.h:58
double Kt
tangential penalty
Definition: ZeroLengthContact.h:57
Element of dimension 0 (both nodes have the same position).
Definition: Element0D.h:45
double t1
friction in local dir1
Definition: ZeroLengthContact.h:48
Zero length contact element.
Definition: ZeroLengthContact.h:43
ZeroLengthContact(int tag=0, int classTag=0, int dim=2)
Default constructor.
Definition: ZeroLengthContact.cc:52
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
double gap
gap of time n+1 step
Definition: ZeroLengthContact.h:54
int ContactFlag
0: not contact; 1: stick; 2: slide
Definition: ZeroLengthContact.h:63