XC Open source finite element analysis program
Simple1GenBase.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 //Simple1GenBase.h
28 
29 #include <string>
30 #include <vector>
31 
32 
33 namespace XC {
35 //
38  {
39  protected:
40  // Variables used for reading input files:
41  int NumNodes, NumPileEle, NumLayer, NumLoad, NumSp, NumMat;
42  double b, depth, stress, ru;
43  int *NodeNum; // Arrays for Nodes File
44  double *Nodey, *Nodex;
45  int *PileEleNum, *PileNode1, *PileNode2; // Arrays for Pile Elements File
46  double *gamma_t, *gamma_b, *z_t, *z_b, *c_t, *c_b, // Arrays for Soil Properties File
47  *zLoad_t, *zLoad_b, *load_val_t, *load_val_b, *zSp_t, *zSp_b, *sp_val_t,
48  *sp_val_b, *zMp_t, *zMp_b, *mp_val_t, *mp_val_b, *ru_t, *ru_b;
49  std::vector<std::string> MatType;
50  std::string PatternInfo;
51 
52  void libera(void);
53  // Member functions for reading input files:
54  void GetNodes(const std::string &file);
55  void GetPileElements(const std::string &file);
56  int NumRows(const std::string &file, const std::string &begin);
57  double linterp(double x1, double x2, double y1, double y2, double x3);
58 
59 
60  // Member functions for generating output:
61 
62  public:
63  // Public member functions accessed from TclModelBuilder.cpp
64  Simple1GenBase(void);
65  ~Simple1GenBase(void);
66  };
67 } // end of XC namespace
void libera(void)
Libera la memoria reservada.
Definition: Simple1GenBase.cc:36
Simple1GenBase(void)
Constructor initializes global variables to zero.
Definition: Simple1GenBase.cc:171
??.
Definition: Simple1GenBase.h:37
================================================================================
Definition: ContinuaReprComponent.h:34
~Simple1GenBase(void)
Destructor deletes dynamically allocated arrays.
Definition: Simple1GenBase.cc:187