xc
QuadSurface.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 //QuadSurface.h
29 
30 #ifndef QUADSURFACE_H
31 #define QUADSURFACE_H
32 
33 #include "Face.h"
34 #include "preprocessor/multi_block_topology/matrices/PntPtrArray.h"
35 
36 namespace XC {
37 
41 class QuadSurface: public Face
42  {
43  protected:
44  Pos3dArray get_positions(void) const;
45  public:
46  QuadSurface(Preprocessor *m,const size_t &ndivI= 4, const size_t &ndivJ= 4);
47  virtual SetEstruct *getCopy(void) const;
48 
49  // Surface geometry.
50  void setPoints(const ID &);
51  void setPoints(const PntPtrArray &pntPtrs);
52  void setPoints(const m_int &);
53  void defGridPoints(const boost::python::list &);
54 
55  // Surface orientation.
56  Vector3d getIVector(void) const;
57  Vector3d getJVector(void) const;
58 
59  // Mesh generation.
60  void create_nodes(void);
61  void genMesh(meshing_dir dm);
62  };
63 
64 } //end of XC namespace
65 #endif
QuadSurface(Preprocessor *m, const size_t &ndivI=4, const size_t &ndivJ=4)
Constructor.
Definition: QuadSurface.cc:41
Vector3d getIVector(void) const
Returns a vector in the direction of the local X axis.
Definition: QuadSurface.cc:226
Finite element model generation tools.
Definition: Preprocessor.h:59
Array of positions in a three-dimensional space.
Definition: Pos3dArray.h:38
Matrix which element type has estructura de anillo respecto a las operaciones + y *...
Definition: ZMatrix.h:37
Vector of integers.
Definition: ID.h:95
Pointers to points in a matrix structure.
Definition: PntPtrArray.h:50
Vector3d getJVector(void) const
Returns a vector in the direction of the local Y axis.
Definition: QuadSurface.cc:239
void genMesh(meshing_dir dm)
Triggers mesh creation.
Definition: QuadSurface.cc:328
void create_nodes(void)
Creates surface nodes.
Definition: QuadSurface.cc:254
Quadrangle defined by its four vertices.
Definition: QuadSurface.h:41
structured set, i.
Definition: SetEstruct.h:47
void setPoints(const ID &)
Creates and inserts the lines from the points identified by the indexes being passed as parameter...
Definition: QuadSurface.cc:50
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Surface.
Definition: Face.h:45
Pos3dArray get_positions(void) const
Returns (ndivI+1)*(ndivJ+1) positions to place the nodes.
Definition: QuadSurface.cc:202
Vector en tres dimensiones.
Definition: Vector3d.h:39
virtual SetEstruct * getCopy(void) const
Virtual constructor.
Definition: QuadSurface.cc:45