xc
FactorsConstraintHandler.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 //FactorsConstraintHandler.h
29 
30 #ifndef FactorsConstraintHandler_h
31 #define FactorsConstraintHandler_h
32 
33 #include <solution/analysis/handler/ConstraintHandler.h>
34 
35 namespace XC {
36 class FE_Element;
37 class DOF_Group;
38 
45  {
46  protected:
47  double alphaSP;
48  double alphaMP;
49 
50  int sendData(Communicator &);
51  int recvData(const Communicator &);
52  FactorsConstraintHandler(ModelWrapper *,int classTag,const double &alphaSP,const double &alphaMP);
53  public:
55  inline void setAlphaSP(const double &a)
56  { alphaSP= a; }
58  double getAlphaSP(void) const
59  { return alphaSP; }
61  inline void setAlphaMP(const double &a)
62  { alphaMP= a; }
64  double getAlphaMP(void) const
65  { return alphaMP; }
66 
67  virtual int sendSelf(Communicator &);
68  virtual int recvSelf(const Communicator &);
69  };
70 } // end of XC namespace
71 
72 #endif
73 
74 
75 
76 
void setAlphaSP(const double &a)
Set the factor used with single freedom constraints.
Definition: FactorsConstraintHandler.h:55
FactorsConstraintHandler(ModelWrapper *, int classTag, const double &alphaSP, const double &alphaMP)
Constructor.
Definition: FactorsConstraintHandler.cc:66
ConstraintHandlers enforce the single and multi freedom constraints that exist in the domain by creat...
Definition: ConstraintHandler.h:93
Communication parameters between processes.
Definition: Communicator.h:66
virtual int recvSelf(const Communicator &)
Receive object through the communicator argument.
Definition: FactorsConstraintHandler.cc:101
double getAlphaMP(void) const
Return the factor used with multi-freedom constraints.
Definition: FactorsConstraintHandler.h:64
Wrapper for the finite element model "as seen" from the solver.
Definition: ModelWrapper.h:59
double alphaMP
Factor used with the multi-freedom constraints.
Definition: FactorsConstraintHandler.h:48
double alphaSP
Factor used with the single freedom constraints.
Definition: FactorsConstraintHandler.h:47
int recvData(const Communicator &)
Receive object members through the communicator argument.
Definition: FactorsConstraintHandler.cc:78
void setAlphaMP(const double &a)
Set the factor used with multi-freedom constraints.
Definition: FactorsConstraintHandler.h:61
double getAlphaSP(void) const
Return the factor used with single freedom constraints.
Definition: FactorsConstraintHandler.h:58
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: FactorsConstraintHandler.cc:70
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
virtual int sendSelf(Communicator &)
Send object through the communicator argument.
Definition: FactorsConstraintHandler.cc:86
Base class for penalty and Lagrange constraints handlers.
Definition: FactorsConstraintHandler.h:44