XC Open source finite element analysis program
FactorsConstraintHandler.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 //FactorsConstraintHandler.h
28 
29 #ifndef FactorsConstraintHandler_h
30 #define FactorsConstraintHandler_h
31 
32 #include <solution/analysis/handler/ConstraintHandler.h>
33 
34 namespace XC {
35 class FE_Element;
36 class DOF_Group;
37 
44  {
45  protected:
46  double alphaSP;
47  double alphaMP;
48 
49  int sendData(CommParameters &);
50  int recvData(const CommParameters &);
51  FactorsConstraintHandler(ModelWrapper *,int classTag,const double &alphaSP,const double &alphaMP);
52  public:
54  inline void setAlphaSP(const double &a)
55  { alphaSP= a; }
57  double getAlphaSP(void) const
58  { return alphaSP; }
60  inline void setAlphaMP(const double &a)
61  { alphaMP= a; }
63  double getAlphaMP(void) const
64  { return alphaMP; }
65 
66  virtual int sendSelf(CommParameters &);
67  virtual int recvSelf(const CommParameters &);
68  };
69 } // end of XC namespace
70 
71 #endif
72 
73 
74 
75 
int sendData(CommParameters &)
Send object members through the channel passed as parameter.
Definition: FactorsConstraintHandler.cc:70
int recvData(const CommParameters &)
Receive object members through the channel passed as parameter.
Definition: FactorsConstraintHandler.cc:78
double alphaMP
Factor used with the multi-freedom constraints.
Definition: FactorsConstraintHandler.h:47
virtual int recvSelf(const CommParameters &)
Receive object through the channel passed as parameter.
Definition: FactorsConstraintHandler.cc:101
void setAlphaMP(const double &a)
Set the factor used with multi-freedom constraints.
Definition: FactorsConstraintHandler.h:60
Base class for penalty and Lagrange constraints handlers.
Definition: FactorsConstraintHandler.h:43
double getAlphaMP(void) const
Return the factor used with multi-freedom constraints.
Definition: FactorsConstraintHandler.h:63
Wrapper for the finite element model "seen" from the solver. The model wrapper is definied by: ...
Definition: ModelWrapper.h:55
double getAlphaSP(void) const
Return the factor used with single freedom constraints.
Definition: FactorsConstraintHandler.h:57
ConstraintHandlers enforce the single and multi freedom constraints that exist in the domain by creat...
Definition: ConstraintHandler.h:94
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
double alphaSP
Factor used with the single freedom constraints.
Definition: FactorsConstraintHandler.h:46
virtual int sendSelf(CommParameters &)
Send object through the channel passed as parameter.
Definition: FactorsConstraintHandler.cc:86
void setAlphaSP(const double &a)
Set the factor used with single freedom constraints.
Definition: FactorsConstraintHandler.h:54
FactorsConstraintHandler(ModelWrapper *, int classTag, const double &alphaSP, const double &alphaMP)
Constructor.
Definition: FactorsConstraintHandler.cc:66