XC Open source finite element analysis program
ConstraintHandler.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 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.3 $
48 // $Date: 2005/08/31 17:28:10 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/handler/ConstraintHandler.h,v $
50 
51 
52 #ifndef ConstraintHandler_h
53 #define ConstraintHandler_h
54 
55 // Written: fmk
56 // Created: 11/96
57 // Revision: A
58 //
59 // Description: This file contains the class definition for ConstraintHandler.
60 // ConstraintHandler is an abstract base class, i.e. no objects of it's
61 // type can be created. ConstraintHandlers enforce the single and multi point
62 // constraints that exist in the domain by creating the appropriate FE_Element
63 // and DOF_Group objects.
64 //
65 // What: "@(#) ConstraintHandler.h, revA"
66 
67 #include <utility/actor/actor/MovableObject.h>
68 #include "xc_utils/src/nucleo/EntCmd.h"
69 
70 namespace XC {
71 class AnalysisMethod;
72 class ID;
73 class Domain;
74 class AnalysisModel;
75 class Integrator;
76 class FEM_ObjectBroker;
77 class ModelWrapper;
78 
94 class ConstraintHandler: public MovableObject, public EntCmd
95  {
96  ModelWrapper *getModelWrapper(void);
97  const ModelWrapper *getModelWrapper(void) const;
98  protected:
99  const Domain *getDomainPtr(void) const;
100  const AnalysisModel *getAnalysisModelPtr(void) const;
101  const Integrator *getIntegratorPtr(void) const;
102  Domain *getDomainPtr(void);
105 
106  int sendData(CommParameters &);
107  int recvData(const CommParameters &);
108 
109  friend class ModelWrapper;
110  ConstraintHandler(ModelWrapper *,int classTag);
111  virtual ConstraintHandler *getCopy(void) const= 0;
112  public:
113  inline virtual ~ConstraintHandler(void) {}
114  // pure virtual functions
115  virtual int handle(const ID *nodesNumberedLast =0) =0;
116  virtual int update(void);
117  virtual int applyLoad(void);
118  virtual int doneNumberingDOF(void);
119  virtual void clearAll(void);
120  };
121 } // end of XC namespace
122 
123 #endif
124 
int sendData(CommParameters &)
Send object members through the channel passed as parameter.
Definition: ConstraintHandler.cpp:159
virtual int doneNumberingDOF(void)
Numbering of degrees of freedom.
Definition: ConstraintHandler.cpp:74
const Integrator * getIntegratorPtr(void) const
Return a pointer to the Integrator object associated with the ConstraintHandler.
Definition: ConstraintHandler.cpp:135
ConstraintHandler(ModelWrapper *, int classTag)
Constructor.
Definition: ConstraintHandler.cpp:70
virtual void clearAll(void)
Reset the DOF_Group pointers to nullptr for all the nodes.
Definition: ConstraintHandler.cpp:151
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
virtual int update(void)
Update the state of the constraints.
Definition: ConstraintHandler.cpp:87
Object that can move between processes.
Definition: MovableObject.h:91
Definition: ID.h:77
const Domain * getDomainPtr(void) const
Return a const pointer to the domain object associated with the ConstraintHandler.
Definition: ConstraintHandler.cpp:111
int recvData(const CommParameters &)
Receive object members through the channel passed as parameter.
Definition: ConstraintHandler.cpp:165
Wrapper for the finite element model "seen" from the solver. The model wrapper is definied by: ...
Definition: ModelWrapper.h:55
const AnalysisModel * getAnalysisModelPtr(void) const
Return a const pointer to the analysis model object associated with the ConstraintHandler.
Definition: ConstraintHandler.cpp:119
Los objetos de esta clase, dan acceso a los objetos FE_Element y DOF_Group creados por el Constraint ...
Definition: AnalysisModel.h:113
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
Base class for the object that performs the integration of physical properties over the domain to for...
Definition: Integrator.h:91
virtual int applyLoad(void)
??
Definition: ConstraintHandler.cpp:91