xc
BoundaryCondHandler.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 //BoundaryCondHandler.h
29 
30 #ifndef CONSTRAINTLOADER_H
31 #define CONSTRAINTLOADER_H
32 
33 #include "PrepHandler.h"
34 
35 namespace XC {
36 
37 class SFreedom_Constraint;
38 class MFreedom_Constraint;
39 class MRMFreedom_Constraint;
40 
46  {
47  int tag_sp_constraint;
48  int tag_mp_constraint;
49  int tag_mrmp_constraint;
50  protected:
51 
52  friend class Node;
53  friend class SetMeshComp;
55  SFreedom_Constraint *addSFreedom_Constraint(const int &,const int &,const double &);
56  public:
58  virtual ~BoundaryCondHandler(void);
59  inline const int &getTagNextSPConstraint(void) const
60  { return tag_sp_constraint; }
61  inline const int &getTagNextMPConstraint(void) const
62  { return tag_mp_constraint; }
63  inline const int &getTagNextMRMPConstraint(void) const
64  { return tag_mrmp_constraint; }
65  int getNumSPs(void) const;
66  int getNumMPs(void) const;
67  int getNumMRMPs(void) const;
68  int getNumLPs(void) const;
69  SFreedom_Constraint *newSPConstraint(const int &,const int &,const double &);
70  void removeSPConstraint(const int &tagC);
71  MFreedom_Constraint *newMPConstraint(const int &, const int &, const ID &, const ID &);
72  MFreedom_Constraint *newEqualDOF(const int &, const int &, const ID &);
73  MFreedom_Constraint *newRigidBeam(const int &, const int &);
74  MFreedom_Constraint *newRigidRod(const int &, const int &);
75  //MFreedom_Constraint *newRigidDiaphragm(void);
76  MRMFreedom_Constraint *newMRMPConstraint(const ID &, const int &, const ID &);
77  MRMFreedom_Constraint *newGlueNodeToElement(const Node &, const Element &, const ID &);
78  void clearAll(void);
79  };
80 
81 } // end of XC namespace
82 
83 #endif
int getNumMPs(void) const
returns numbr of multiple node constraints.
Definition: BoundaryCondHandler.cc:212
void removeSPConstraint(const int &tagC)
Removes the constraint from domain.
Definition: BoundaryCondHandler.cc:189
SFreedom_Constraint * newSPConstraint(const int &, const int &, const double &)
Defines a single freedom constraint.
Definition: BoundaryCondHandler.cc:84
MFreedom_Constraint * newMPConstraint(const int &, const int &, const ID &, const ID &)
Appends a multi-freedom constraint to the model.
Definition: BoundaryCondHandler.cc:88
MRMFreedom_Constraint * newMRMPConstraint(const ID &, const int &, const ID &)
Appends a multi-row, multi-freedom constraint to the model.
Definition: BoundaryCondHandler.cc:157
int getNumSPs(void) const
returns number of single node constraints.
Definition: BoundaryCondHandler.cc:208
SFreedom_Constraint * addSFreedom_Constraint(const int &, const SFreedom_Constraint &)
Appends a single freedom constraint to the model.
Definition: BoundaryCondHandler.cc:51
Finite element model generation tools.
Definition: Preprocessor.h:59
Vector of integers.
Definition: ID.h:95
Constraint cration tools.
Definition: BoundaryCondHandler.h:45
BoundaryCondHandler(Preprocessor *owr)
Default constructor.
Definition: BoundaryCondHandler.cc:47
Base class for the preprocessor objects that create model entities: nodes, elements, loads, etc.
Definition: PrepHandler.h:47
MFreedom_Constraint * newEqualDOF(const int &, const int &, const ID &)
Imposes the same displacements on both nodes for the components specified in the argument.
Definition: BoundaryCondHandler.cc:108
Base class for the finite elements.
Definition: Element.h:112
Set of mesh components (nodes, elements and constraints).
Definition: SetMeshComp.h:59
Single freedom constraint.
Definition: SFreedom_Constraint.h:85
Multiple retained nodes constraint.
Definition: MRMFreedom_Constraint.h:59
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int getNumLPs(void) const
returns number of load patterns.
Definition: BoundaryCondHandler.cc:220
Multi-freedom constraint.
Definition: MFreedom_Constraint.h:113
int getNumMRMPs(void) const
returns numbr of multiple retained node constraints.
Definition: BoundaryCondHandler.cc:216
Mesh node.
Definition: Node.h:111
void clearAll(void)
Clears all the objects.
Definition: BoundaryCondHandler.cc:201