xc
SolidMech4N.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 /* ****************************************************************** **
29 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 1999, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** Developed by: **
42 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
43 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
44 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
45 ** **
46 ** ****************************************************************** */
47 
48 // $Revision: 1.10 $
49 // $Date: 2003/10/07 21:18:50 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/element/fourNodeQuad/SolidMech4N.h,v $
51 
52 // Written: MHS
53 // Created: Feb 2000
54 // Revised: Dec 2000 for efficiency
55 //
56 // Description: This file contains the class definition for SolidMech4N.
57 
58 #ifndef SolidMech4N_h
59 #define SolidMech4N_h
60 
61 #include "domain/mesh/element/plane/QuadBase4N.h"
62 #include "domain/mesh/element/utils/physical_properties/SolidMech2D.h"
63 #include "domain/mesh/element/utils/body_forces/BodyForces2D.h"
64 #include "domain/mesh/element/utils/ParticlePos2d.h"
65 
66 namespace XC {
67 class NDMaterial;
68 class Material;
69 class Response;
70 class GaussPoint;
71 class QuadRawLoad;
72 
74 //
76 class SolidMech4N: public QuadBase4N<SolidMech2D>
77  {
78  protected:
79  std::vector<ParticlePos2d> xl= {ParticlePos2d(-1,-1), ParticlePos2d(1, -1), ParticlePos2d(1,1), ParticlePos2d(-1,1)};
80  mutable Matrix Ki;
81 
82  int sendData(Communicator &);
83  int recvData(const Communicator &);
84  bool check_material_type(const std::string &type) const;
85  public:
86  SolidMech4N(int tag, int classTag, const SolidMech2D &);
87  SolidMech4N(int tag, int classTag, int nd1, int nd2, int nd3, int nd4, const SolidMech2D &);
88 
89  const QuadRawLoad *vector2dRawLoadLocal(const std::vector<Vector> &);
90  const QuadRawLoad *vector2dRawLoadGlobal(const std::vector<Vector> &);
91  void strainLoad(const Matrix &);
92 
93  void checkElem(void);
94 
95  inline ParticlePos2d getLocalCoordinatesOfNode(const int &i) const
96  { return xl[i % 4]; }
97  double getMeanInternalForce(const std::string &) const;
98  double getMeanInternalDeformation(const std::string &) const;
99  };
100 } // end of XC namespace
101 
102 #endif
103 
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: SolidMech4N.cc:220
bool check_material_type(const std::string &type) const
Checks the material type.
Definition: SolidMech4N.cc:86
Communication parameters between processes.
Definition: Communicator.h:66
Uniform load over quad elements.
Definition: QuadRawLoad.h:40
const QuadRawLoad * vector2dRawLoadGlobal(const std::vector< Vector > &)
Defines a load over the element from a vector of nodal loads in global coordinates.
Definition: SolidMech4N.cc:148
const QuadRawLoad * vector2dRawLoadLocal(const std::vector< Vector > &)
Defines a load over the element from a vector of nodal loads in local coordinates.
Definition: SolidMech4N.cc:106
Base class for 4 node quads.
Definition: QuadBase4N.h:45
SolidMech4N(int tag, int classTag, const SolidMech2D &)
Default constructor.
Definition: SolidMech4N.cc:68
Natural coordinates of an element&#39;s particle.
Definition: ParticlePos2d.h:40
void checkElem(void)
Check the element.
Definition: SolidMech4N.cc:90
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
Four node quadrilateral element for two-dimensional problems.
Definition: SolidMech4N.h:76
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: SolidMech4N.cc:212
Physical properties for solid mechanics.
Definition: SolidMech2D.h:39
void strainLoad(const Matrix &)
Defines a strain load on this element.
Definition: SolidMech4N.cc:172