xc
UniformGridMap.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 //UniformGridMap.h
29 
30 #ifndef MAPUniformGrids_H
31 #define MAPUniformGrids_H
32 
33 #include "EntityMap.h"
34 
35 class Line3d;
36 class Plane;
37 
38 namespace XC {
39 
40 class UniformGrid;
41 
43 //
45 class UniformGridMap: public EntityMap<UniformGrid>
46  {
47  private:
48  void updateSets(UniformGrid *) const;
49  protected:
50 
51 
52  UniformGrid *Crea(void);
53  public:
54  UniformGridMap(MultiBlockTopology *mbt= nullptr);
55 
56  Vector3d getVector(const Indice &i,const Indice &j) const;
57  Line3d getRecta(const Indice &i,const Indice &j) const;
58  Plane getPlane(const Indice &i,const Indice &j,const Indice &k) const;
59 
60  UniformGrid *New(void);
61  UniformGrid *New(const size_t &);
62 
63  boost::python::dict getPyDict(void) const;
64  void setPyDict(const boost::python::dict &);
65  };
66 
67 } //end of XC namespace
68 #endif
Geometric entities container (points, lines, surfaces,...).
Definition: EntityMap.h:43
Model geometry manager.
Definition: MultiBlockTopology.h:68
Plane in a three-dimensional space.
Definition: Plane.h:49
Uniform grid container.
Definition: UniformGridMap.h:45
Uniform mesh.
Definition: UniformGrid.h:41
boost::python::dict getPyDict(void) const
Return a Python dictionary with the object members values.
Definition: UniformGridMap.cc:94
Line in a three-dimensional space.
Definition: Line3d.h:62
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
void setPyDict(const boost::python::dict &)
Set the values of the object members from a Python dictionary.
Definition: UniformGridMap.cc:110
UniformGridMap(MultiBlockTopology *mbt=nullptr)
Constructor.
Definition: UniformGridMap.cc:41
UniformGrid * New(void)
New uniform grid.
Definition: UniformGridMap.cc:60
Vector en tres dimensiones.
Definition: Vector3d.h:39