XC Open source finite element analysis program
PySimple1Gen.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 //$Revision: 1.4 $
28 //$Date: 2004/06/30 00:27:40 $
29 //$Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/PY/PySimple1Gen.h,v $
30 
31 #include <string>
32 #include <vector>
33 
34 #include "Simple1GenBase.h"
35 
36 namespace XC {
38 //
41  {
42  std::vector<std::string> pTest;
43  // Variables used for reading input files:
44  int NumPyEle, NumMpLoadSp, NumMp;
45  double pult, y50, maxz, minz, cu, e50, phi, sr, PULT, Y50;
46  int *PyEleNum, *PyNode1, *PyNode2, *PyMat, *PyDir; // Arrays for Py Elements File
47  int *pyType, stype;
48  double *gamma_t, *b_t, *b_b, *Cd_t, *Cd_b, // Arrays for Soil Properties File
49  *cu_t, *cu_b, *e50_t, *e50_b, *phi_t, *phi_b, *Sr_t, *Sr_b, *pult_t, *pult_b,
50  *y50_t, *y50_b, tribcoord[2];
51  std::vector<std::string> MatType;
52  std::string PatternInfo;
53 
54  // Member functions for reading input files:
55  void GetPyElements(const std::string &file);
56  void GetSoilProperties(const std::string &file);
57 
58 
59  // Member functions for generating output:
60  void GetPySimple1(const std::string &file1, const std::string &file2, const std::string &file3, const std::string &file4, const std::string &file5);
61  void GetPattern(const std::string &file6);
62 
63  void libera(void);
64  // Member functions for calculating pult:
65  double GetPult(const std::string &type);
66  double GetY50(const std::string &type);
67  double GetVStress(double z);
68  double GetMp(double *vx, double *vy, double x, int length);
69  void GetTributaryCoordsPy(int nodenum1);
70  void GetTributaryCoordsPile(int nodenum1);
71 
72 public:
73  // Public member functions accessed from TclModelBuilder.cpp
74  void WritePySimple1(const std::string &file1, const std::string &file2, const std::string &file3, const std::string &file4, const std::string &file5);
75  void WritePySimple1(const std::string &file1, const std::string &file2, const std::string &file3, const std::string &file4, const std::string &file5, const std::string &file6);
76  PySimple1Gen(void);
77  ~PySimple1Gen(void);
78  };
79 } // end of XC namespace
??.
Definition: PySimple1Gen.h:40
??.
Definition: Simple1GenBase.h:37
================================================================================
Definition: ContinuaReprComponent.h:34